diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index db2d8ad1..00000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,13 +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 - -* @googleapis/yoshi-java - -# The java-samples-reviewers team is the default owner for samples changes -samples/**/*.java @googleapis/java-samples-reviewers - -# Generated snippets should not be owned by samples reviewers -samples/snippets/generated/ @googleapis/yoshi-java diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index b8f9817a..00000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,56 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve - ---- - -:bus: This library has moved to -[google-cloud-java/java-domains]( -https://github.com/googleapis/google-cloud-java/tree/main/java-domains). -This repository will be archived in the future. - -Thanks for stopping by to let us know something could be better! - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. - -Please run down the following list and make sure you've tried the usual "quick fixes": - - - Search the issues already opened: https://github.com/googleapis/java-domains/issues - - Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform - -If you are still having issues, please include as much information as possible: - -#### Environment details - -1. Specify the API at the beginning of the title. For example, "BigQuery: ..."). - General, Core, and Other are also allowed as types -2. OS type and version: -3. Java version: -4. version(s): - -#### Steps to reproduce - - 1. ? - 2. ? - -#### Code example - -```java -// example -``` - -#### Stack trace -``` -Any relevant stacktrace here. -``` - -#### External references such as API reference guides - -- ? - -#### Any additional information below - - -Following these steps guarantees the quickest resolution possible. - -Thanks! diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 9876099c..00000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this library - ---- - -:bus: This library has moved to -[google-cloud-java/java-domains]( -https://github.com/googleapis/google-cloud-java/tree/main/java-domains). -This repository will be archived in the future. - -Thanks for stopping by to let us know something could be better! - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. - -**Is your feature request related to a problem? Please describe.** -What the problem is. Example: I'm always frustrated when [...] - -**Describe the solution you'd like** -What you want to happen. - -**Describe alternatives you've considered** -Any alternative solutions or features you've considered. - -**Additional context** -Any other context or screenshots about the feature request. diff --git a/.github/ISSUE_TEMPLATE/support_request.md b/.github/ISSUE_TEMPLATE/support_request.md deleted file mode 100644 index 99586903..00000000 --- a/.github/ISSUE_TEMPLATE/support_request.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: Support request -about: If you have a support contract with Google, please create an issue in the Google Cloud Support console. - ---- - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 54b99b72..00000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,10 +0,0 @@ -Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: -- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-domains/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea -- [ ] Ensure the tests and linter pass -- [ ] Code coverage does not decrease (if any source code was changed) -- [ ] Appropriate docs were updated (if necessary) - -Fixes # ☕️ - -If you write sample code, please follow the [samples format]( -https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md). diff --git a/.github/auto-label.yaml b/.github/auto-label.yaml deleted file mode 100644 index 4caef688..00000000 --- a/.github/auto-label.yaml +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -requestsize: - enabled: true diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml deleted file mode 100644 index 2176b054..00000000 --- a/.github/blunderbuss.yml +++ /dev/null @@ -1,7 +0,0 @@ -# Configuration for the Blunderbuss GitHub app. For more info see -# https://github.com/googleapis/repo-automation-bots/tree/main/packages/blunderbuss -assign_prs_by: -- labels: - - samples - to: - - googleapis/java-samples-reviewers \ No newline at end of file diff --git a/.github/generated-files-bot.yml b/.github/generated-files-bot.yml deleted file mode 100644 index c644a24e..00000000 --- a/.github/generated-files-bot.yml +++ /dev/null @@ -1,12 +0,0 @@ -externalManifests: -- type: json - file: 'synth.metadata' - jsonpath: '$.generatedFiles[*]' -- type: json - file: '.github/readme/synth.metadata/synth.metadata' - jsonpath: '$.generatedFiles[*]' -ignoreAuthors: -- 'renovate-bot' -- 'yoshi-automation' -- 'release-please[bot]' -- 'gcf-owl-bot[bot]' diff --git a/.github/snippet-bot.yml b/.github/snippet-bot.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml deleted file mode 100644 index 0181fcd5..00000000 --- a/.github/sync-repo-settings.yaml +++ /dev/null @@ -1,44 +0,0 @@ -rebaseMergeAllowed: false -squashMergeAllowed: true -mergeCommitAllowed: false -branchProtectionRules: - - pattern: main - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - clirr - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - OwlBot Post Processor - - 'Kokoro - Test: Java GraalVM Native Image' - - 'Kokoro - Test: Java 17 GraalVM Native Image' - - pattern: java7 - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - clirr - - units (7) - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - OwlBot Post Processor -permissionRules: - - team: yoshi-admins - permission: admin - - team: yoshi-java-admins - permission: admin - - team: yoshi-java - permission: push diff --git a/.github/trusted-contribution.yml b/.github/trusted-contribution.yml deleted file mode 100644 index a0ba1f7d..00000000 --- a/.github/trusted-contribution.yml +++ /dev/null @@ -1,3 +0,0 @@ -trustedContributors: -- renovate-bot -- gcf-owl-bot[bot] diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml deleted file mode 100644 index f5fc7d51..00000000 --- a/.github/workflows/approve-readme.yaml +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: auto-merge-readme -jobs: - approve: - runs-on: ubuntu-latest - if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' - steps: - - uses: actions/github-script@v6 - with: - github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} - script: | - // only approve PRs from yoshi-automation - if (context.payload.pull_request.user.login !== "yoshi-automation") { - return; - } - - // only approve PRs like "chore: release " - if (!context.payload.pull_request.title === "chore: regenerate README") { - return; - } - - // only approve PRs with README.md and synth.metadata changes - const files = new Set( - ( - await github.paginate( - github.pulls.listFiles.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - }) - ) - ).map(file => file.filename) - ); - if (files.size != 2 || !files.has("README.md") || !files.has(".github/readme/synth.metadata/synth.metadata")) { - return; - } - - // approve README regeneration PR - await github.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Rubber stamped PR!', - pull_number: context.payload.pull_request.number, - event: 'APPROVE' - }); - - // attach automerge label - await github.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - labels: ['automerge'] - }); diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml deleted file mode 100644 index 7a106d00..00000000 --- a/.github/workflows/auto-release.yaml +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: auto-release -jobs: - approve: - runs-on: ubuntu-latest - if: contains(github.head_ref, 'release-please') - steps: - - uses: actions/github-script@v6 - with: - github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} - debug: true - script: | - // only approve PRs from release-please[bot] - if (context.payload.pull_request.user.login !== "release-please[bot]") { - return; - } - - // only approve PRs like "chore(main): release " - if ( !context.payload.pull_request.title.startsWith("chore(main): release") ) { - return; - } - - // only approve PRs with pom.xml and versions.txt changes - const filesPromise = github.rest.pulls.listFiles.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - }); - const changed_files = await github.paginate(filesPromise) - - if ( changed_files.length < 1 ) { - console.log( "Not proceeding since PR is empty!" ) - return; - } - - if ( !changed_files.some(v => v.filename.includes("pom")) || !changed_files.some(v => v.filename.includes("versions.txt")) ) { - console.log( "PR file changes do not have pom.xml or versions.txt -- something is wrong. PTAL!" ) - return; - } - - // trigger auto-release when - // 1) it is a SNAPSHOT release (auto-generated post regular release) - // 2) there are dependency updates only - // 3) there are no open dependency update PRs in this repo (to avoid multiple releases) - if ( - context.payload.pull_request.body.includes("Fix") || - context.payload.pull_request.body.includes("Build") || - context.payload.pull_request.body.includes("Documentation") || - context.payload.pull_request.body.includes("BREAKING CHANGES") || - context.payload.pull_request.body.includes("Features") - ) { - console.log( "Not auto-releasing since it is not a dependency-update-only release." ); - return; - } - - const promise = github.rest.pulls.list.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - state: 'open' - }); - const open_pulls = await github.paginate(promise) - - if ( open_pulls.length > 1 && !context.payload.pull_request.title.includes("SNAPSHOT") ) { - for ( const pull of open_pulls ) { - if ( pull.title.startsWith("deps: update dependency") ) { - console.log( "Not auto-releasing yet since there are dependency update PRs open in this repo." ); - return; - } - } - } - - // approve release PR - await github.rest.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Rubber stamped release!', - pull_number: context.payload.pull_request.number, - event: 'APPROVE' - }); - - // attach kokoro:force-run and automerge labels - await github.rest.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - labels: ['kokoro:force-run', 'automerge'] - }); diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index e3bb26e3..00000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,89 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - push: - branches: - - main - pull_request: -name: ci -jobs: - units: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - java: [8, 11, 17] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: ${{matrix.java}} - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: test - windows: - runs-on: windows-latest - steps: - - name: Support longpaths - run: git config --system core.longpaths true - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 8 - - run: java -version - - run: .kokoro/build.bat - env: - JOB_TYPE: test - dependencies: - runs-on: ubuntu-latest - strategy: - matrix: - java: [8, 11, 17] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: ${{matrix.java}} - - run: java -version - - run: .kokoro/dependencies.sh - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 11 - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: lint - clirr: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 8 - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: clirr diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml deleted file mode 100644 index 912ed8b2..00000000 --- a/.github/workflows/samples.yaml +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: samples -jobs: - checkstyle: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 8 - - name: Run checkstyle - run: mvn -P lint --quiet --batch-mode checkstyle:check - working-directory: samples/snippets diff --git a/.gitignore b/.gitignore deleted file mode 100644 index cc0bc34a..00000000 --- a/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# Maven -target/ - -# Eclipse -.classpath -.project -.settings - -# Intellij -*.iml -.idea/ - -# python utilities -*.pyc -__pycache__ - -.flattened-pom.xml \ No newline at end of file diff --git a/.kokoro/build.bat b/.kokoro/build.bat deleted file mode 100644 index 067cf4a4..00000000 --- a/.kokoro/build.bat +++ /dev/null @@ -1,18 +0,0 @@ -:: Copyright 2022 Google LLC -:: -:: Licensed under the Apache License, Version 2.0 (the "License"); -:: you may not use this file except in compliance with the License. -:: You may obtain a copy of the License at -:: -:: http://www.apache.org/licenses/LICENSE-2.0 -:: -:: Unless required by applicable law or agreed to in writing, software -:: distributed under the License is distributed on an "AS IS" BASIS, -:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -:: See the License for the specific language governing permissions and -:: limitations under the License. -:: Github action job to test core java library features on -:: downstream client libraries before they are released. -:: See documentation in type-shell-output.bat - -"C:\Program Files\Git\bin\bash.exe" %~dp0build.sh diff --git a/.kokoro/build.sh b/.kokoro/build.sh deleted file mode 100755 index 6a17d914..00000000 --- a/.kokoro/build.sh +++ /dev/null @@ -1,134 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -# include common functions -source ${scriptDir}/common.sh - -# Print out Maven & Java version -mvn -version -echo ${JOB_TYPE} - -# attempt to install 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn install -B -V -ntp \ - -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true \ - -T 1C - -# if GOOGLE_APPLICATION_CREDENTIALS is specified as a relative path, prepend Kokoro root directory onto it -if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then - export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS}) -fi - -RETURN_CODE=0 -set +e - -case ${JOB_TYPE} in -test) - mvn test -B -ntp -Dclirr.skip=true -Denforcer.skip=true - RETURN_CODE=$? - ;; -lint) - mvn com.coveo:fmt-maven-plugin:check -B -ntp - RETURN_CODE=$? - ;; -javadoc) - mvn javadoc:javadoc javadoc:test-javadoc -B -ntp - RETURN_CODE=$? - ;; -integration) - mvn -B ${INTEGRATION_TEST_ARGS} \ - -ntp \ - -Penable-integration-tests \ - -DtrimStackTrace=false \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -fae \ - verify - RETURN_CODE=$? - ;; -graalvm) - # Run Unit and Integration Tests with Native Image - mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test - RETURN_CODE=$? - ;; -graalvm17) - # Run Unit and Integration Tests with Native Image - mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test - RETURN_CODE=$? - ;; -samples) - SAMPLES_DIR=samples - # only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise. - if [[ ! -z ${KOKORO_GITHUB_PULL_REQUEST_NUMBER} ]] - then - SAMPLES_DIR=samples/snapshot - fi - - if [[ -f ${SAMPLES_DIR}/pom.xml ]] - then - for FILE in ${KOKORO_GFILE_DIR}/secret_manager/*-samples-secrets; do - [[ -f "$FILE" ]] || continue - source "$FILE" - done - - pushd ${SAMPLES_DIR} - mvn -B \ - -ntp \ - -DtrimStackTrace=false \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -fae \ - verify - RETURN_CODE=$? - popd - else - echo "no sample pom.xml found - skipping sample tests" - fi - ;; -clirr) - mvn -B -ntp -Denforcer.skip=true clirr:check - RETURN_CODE=$? - ;; -*) - ;; -esac - -if [ "${REPORT_COVERAGE}" == "true" ] -then - bash ${KOKORO_GFILE_DIR}/codecov.sh -fi - -# fix output location of logs -bash .kokoro/coerce_logs.sh - -if [[ "${ENABLE_FLAKYBOT}" == "true" ]] -then - chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/flakybot - ${KOKORO_GFILE_DIR}/linux_amd64/flakybot -repo=googleapis/java-domains -fi - -echo "exiting with ${RETURN_CODE}" -exit ${RETURN_CODE} diff --git a/.kokoro/coerce_logs.sh b/.kokoro/coerce_logs.sh deleted file mode 100755 index 46edbf7f..00000000 --- a/.kokoro/coerce_logs.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# This script finds and moves sponge logs so that they can be found by placer -# and are not flagged as flaky by sponge. - -set -eo pipefail - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -job=$(basename ${KOKORO_JOB_NAME}) - -echo "coercing sponge logs..." -for xml in `find . -name *-sponge_log.xml` -do - class=$(basename ${xml} | cut -d- -f2) - dir=$(dirname ${xml})/${job}/${class} - text=$(dirname ${xml})/${class}-sponge_log.txt - mkdir -p ${dir} - mv ${xml} ${dir}/sponge_log.xml - mv ${text} ${dir}/sponge_log.txt -done diff --git a/.kokoro/common.cfg b/.kokoro/common.cfg deleted file mode 100644 index 1d709ff1..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-domains/.kokoro/trampoline.sh" - -# Tell the trampoline which build file to use. -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-domains/.kokoro/build.sh" -} diff --git a/.kokoro/common.sh b/.kokoro/common.sh deleted file mode 100644 index f8f957af..00000000 --- a/.kokoro/common.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -function retry_with_backoff { - attempts_left=$1 - sleep_seconds=$2 - shift 2 - command=$@ - - - # store current flag state - flags=$- - - # allow a failures to continue - set +e - ${command} - exit_code=$? - - # restore "e" flag - if [[ ${flags} =~ e ]] - then set -e - else set +e - fi - - if [[ $exit_code == 0 ]] - then - return 0 - fi - - # failure - if [[ ${attempts_left} > 0 ]] - then - echo "failure (${exit_code}), sleeping ${sleep_seconds}..." - sleep ${sleep_seconds} - new_attempts=$((${attempts_left} - 1)) - new_sleep=$((${sleep_seconds} * 2)) - retry_with_backoff ${new_attempts} ${new_sleep} ${command} - fi - - return $exit_code -} - -## Helper functionss -function now() { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n'; } -function msg() { println "$*" >&2; } -function println() { printf '%s\n' "$(now) $*"; } - -## Helper comment to trigger updated repo dependency release \ No newline at end of file diff --git a/.kokoro/continuous/common.cfg b/.kokoro/continuous/common.cfg deleted file mode 100644 index a4d54ff0..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-domains/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-domains/.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/dependencies.sh b/.kokoro/dependencies.sh deleted file mode 100755 index bd896024..00000000 --- a/.kokoro/dependencies.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail -shopt -s nullglob - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -# include common functions -source ${scriptDir}/common.sh - -# Print out Java -java -version -echo $JOB_TYPE - -function determineMavenOpts() { - local javaVersion=$( - # filter down to the version line, then pull out the version between quotes, - # then trim the version number down to its minimal number (removing any - # update or suffix number). - java -version 2>&1 | grep "version" \ - | sed -E 's/^.*"(.*?)".*$/\1/g' \ - | sed -E 's/^(1\.[0-9]\.0).*$/\1/g' - ) - - if [[ $javaVersion == 17* ]] - then - # MaxPermSize is no longer supported as of jdk 17 - echo -n "-Xmx1024m" - else - echo -n "-Xmx1024m -XX:MaxPermSize=128m" - fi -} - -export MAVEN_OPTS=$(determineMavenOpts) - -# this should run maven enforcer -retry_with_backoff 3 10 \ - mvn install -B -V -ntp \ - -DskipTests=true \ - -Dmaven.javadoc.skip=true \ - -Dclirr.skip=true - -mvn -B dependency:analyze -DfailOnWarning=true diff --git a/.kokoro/nightly/common.cfg b/.kokoro/nightly/common.cfg deleted file mode 100644 index a4d54ff0..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-domains/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-domains/.kokoro/build.sh" -} - -env_vars: { - key: "JOB_TYPE" - value: "test" -} diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg deleted file mode 100644 index bd0297a3..00000000 --- a/.kokoro/nightly/integration.cfg +++ /dev/null @@ -1,37 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "false" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} diff --git a/.kokoro/nightly/java11-integration.cfg b/.kokoro/nightly/java11-integration.cfg deleted file mode 100644 index dc51b65e..00000000 --- a/.kokoro/nightly/java11-integration.cfg +++ /dev/null @@ -1,37 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/java11014" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "false" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} diff --git a/.kokoro/nightly/java11.cfg b/.kokoro/nightly/java11.cfg deleted file mode 100644 index 709f2b4c..00000000 --- a/.kokoro/nightly/java11.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} diff --git a/.kokoro/nightly/java7.cfg b/.kokoro/nightly/java7.cfg deleted file mode 100644 index cb24f44e..00000000 --- a/.kokoro/nightly/java7.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java7" -} diff --git a/.kokoro/nightly/java8-osx.cfg b/.kokoro/nightly/java8-osx.cfg deleted file mode 100644 index 5af90df8..00000000 --- a/.kokoro/nightly/java8-osx.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-domains/.kokoro/build.sh" diff --git a/.kokoro/nightly/java8-win.cfg b/.kokoro/nightly/java8-win.cfg deleted file mode 100644 index d28bf620..00000000 --- a/.kokoro/nightly/java8-win.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-domains/.kokoro/build.bat" diff --git a/.kokoro/nightly/java8.cfg b/.kokoro/nightly/java8.cfg deleted file mode 100644 index 495cc7ba..00000000 --- a/.kokoro/nightly/java8.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "REPORT_COVERAGE" - value: "true" -} diff --git a/.kokoro/nightly/samples.cfg b/.kokoro/nightly/samples.cfg deleted file mode 100644 index fee6a838..00000000 --- a/.kokoro/nightly/samples.cfg +++ /dev/null @@ -1,38 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "samples" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-docs-samples-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-docs-samples-service-account" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "false" -} diff --git a/.kokoro/populate-secrets.sh b/.kokoro/populate-secrets.sh deleted file mode 100755 index f5251425..00000000 --- a/.kokoro/populate-secrets.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -# Copyright 2020 Google LLC. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -function now { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n' ;} -function msg { println "$*" >&2 ;} -function println { printf '%s\n' "$(now) $*" ;} - - -# Populates requested secrets set in SECRET_MANAGER_KEYS from service account: -# kokoro-trampoline@cloud-devrel-kokoro-resources.iam.gserviceaccount.com -SECRET_LOCATION="${KOKORO_GFILE_DIR}/secret_manager" -msg "Creating folder on disk for secrets: ${SECRET_LOCATION}" -mkdir -p ${SECRET_LOCATION} -for key in $(echo ${SECRET_MANAGER_KEYS} | sed "s/,/ /g") -do - msg "Retrieving secret ${key}" - docker run --entrypoint=gcloud \ - --volume=${KOKORO_GFILE_DIR}:${KOKORO_GFILE_DIR} \ - gcr.io/google.com/cloudsdktool/cloud-sdk \ - secrets versions access latest \ - --project cloud-devrel-kokoro-resources \ - --secret ${key} > \ - "${SECRET_LOCATION}/${key}" - if [[ $? == 0 ]]; then - msg "Secret written to ${SECRET_LOCATION}/${key}" - else - msg "Error retrieving secret ${key}" - fi -done diff --git a/.kokoro/presubmit/clirr.cfg b/.kokoro/presubmit/clirr.cfg deleted file mode 100644 index ec572442..00000000 --- a/.kokoro/presubmit/clirr.cfg +++ /dev/null @@ -1,13 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. - -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "clirr" -} \ No newline at end of file diff --git a/.kokoro/presubmit/common.cfg b/.kokoro/presubmit/common.cfg deleted file mode 100644 index 70f9485a..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-domains/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-domains/.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 b1819c19..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-domains/.kokoro/dependencies.sh" -} diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg deleted file mode 100644 index a3f7fb9d..00000000 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17" -} - -env_vars: { - key: "JOB_TYPE" - value: "graalvm17" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} \ No newline at end of file diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg deleted file mode 100644 index 4c7225ec..00000000 --- a/.kokoro/presubmit/graalvm-native.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm" -} - -env_vars: { - key: "JOB_TYPE" - value: "graalvm" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} diff --git a/.kokoro/presubmit/integration.cfg b/.kokoro/presubmit/integration.cfg deleted file mode 100644 index dded67a9..00000000 --- a/.kokoro/presubmit/integration.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} diff --git a/.kokoro/presubmit/java11.cfg b/.kokoro/presubmit/java11.cfg deleted file mode 100644 index 709f2b4c..00000000 --- a/.kokoro/presubmit/java11.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} diff --git a/.kokoro/presubmit/java7.cfg b/.kokoro/presubmit/java7.cfg deleted file mode 100644 index cb24f44e..00000000 --- a/.kokoro/presubmit/java7.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java7" -} diff --git a/.kokoro/presubmit/java8-osx.cfg b/.kokoro/presubmit/java8-osx.cfg deleted file mode 100644 index 5af90df8..00000000 --- a/.kokoro/presubmit/java8-osx.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-domains/.kokoro/build.sh" diff --git a/.kokoro/presubmit/java8-win.cfg b/.kokoro/presubmit/java8-win.cfg deleted file mode 100644 index d28bf620..00000000 --- a/.kokoro/presubmit/java8-win.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-domains/.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 0afc1fc9..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-domains/.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 d6a9f675..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-domains - -# 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-domains \ - --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 0b7a250a..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-domains/.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-domains/.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/common.cfg b/.kokoro/release/common.cfg deleted file mode 100644 index dbd5e13b..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-domains/.kokoro/trampoline.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-keyring" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-passphrase" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-pubkeyring" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "sonatype-credentials" - } - } -} diff --git a/.kokoro/release/common.sh b/.kokoro/release/common.sh deleted file mode 100755 index 7f78ee41..00000000 --- a/.kokoro/release/common.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# Get secrets from keystore and set and environment variables -setup_environment_secrets() { - export GPG_PASSPHRASE=$(cat ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-passphrase) - export GPG_TTY=$(tty) - export GPG_HOMEDIR=/gpg - mkdir $GPG_HOMEDIR - mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-pubkeyring $GPG_HOMEDIR/pubring.gpg - mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-keyring $GPG_HOMEDIR/secring.gpg - export SONATYPE_USERNAME=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f1 -d'|') - export SONATYPE_PASSWORD=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f2 -d'|') -} - -create_settings_xml_file() { - echo " - - - ossrh - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - - sonatype-nexus-staging - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - - sonatype-nexus-snapshots - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - -" > $1 -} \ No newline at end of file diff --git a/.kokoro/release/drop.cfg b/.kokoro/release/drop.cfg deleted file mode 100644 index d1d1898d..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-domains/.kokoro/release/drop.sh" -} diff --git a/.kokoro/release/drop.sh b/.kokoro/release/drop.sh deleted file mode 100755 index 742ec1a8..00000000 --- a/.kokoro/release/drop.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# STAGING_REPOSITORY_ID must be set -if [ -z "${STAGING_REPOSITORY_ID}" ]; then - echo "Missing STAGING_REPOSITORY_ID environment variable" - exit 1 -fi - -source $(dirname "$0")/common.sh -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn nexus-staging:drop -B \ - --settings=settings.xml \ - -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/.kokoro/release/promote.cfg b/.kokoro/release/promote.cfg deleted file mode 100644 index 3fb27d63..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-domains/.kokoro/release/promote.sh" -} diff --git a/.kokoro/release/promote.sh b/.kokoro/release/promote.sh deleted file mode 100755 index 3cac3d8a..00000000 --- a/.kokoro/release/promote.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# STAGING_REPOSITORY_ID must be set -if [ -z "${STAGING_REPOSITORY_ID}" ]; then - echo "Missing STAGING_REPOSITORY_ID environment variable" - exit 1 -fi - -source $(dirname "$0")/common.sh - -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn nexus-staging:release -B \ - -DperformRelease=true \ - --settings=settings.xml \ - -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg deleted file mode 100644 index f1881b86..00000000 --- a/.kokoro/release/publish_javadoc.cfg +++ /dev/null @@ -1,23 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/doc-templates/" - -env_vars: { - key: "STAGING_BUCKET" - value: "docs-staging" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-domains/.kokoro/release/publish_javadoc.sh" -} - - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "docuploader_service_account" - } - } -} diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh deleted file mode 100755 index d19f474d..00000000 --- a/.kokoro/release/publish_javadoc.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -if [[ -z "${CREDENTIALS}" ]]; then - CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account -fi - -if [[ -z "${STAGING_BUCKET}" ]]; then - echo "Need to set STAGING_BUCKET environment variable" - exit 1 -fi - -# work from the git root directory -pushd $(dirname "$0")/../../ - -# install docuploader package -python3 -m pip install --require-hashes -r .kokoro/requirements.txt - -# compile all packages -mvn clean install -B -q -DskipTests=true - -export NAME=google-cloud-domains -export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) - -# build the docs -mvn site -B -q - -pushd target/site/apidocs - -# create metadata -python3 -m docuploader create-metadata \ - --name ${NAME} \ - --version ${VERSION} \ - --language java - -# upload docs -python3 -m docuploader upload . \ - --credentials ${CREDENTIALS} \ - --staging-bucket ${STAGING_BUCKET} diff --git a/.kokoro/release/publish_javadoc11.cfg b/.kokoro/release/publish_javadoc11.cfg deleted file mode 100644 index 1b0f83a7..00000000 --- a/.kokoro/release/publish_javadoc11.cfg +++ /dev/null @@ -1,30 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# cloud-rad production -env_vars: { - key: "STAGING_BUCKET_V2" - value: "docs-staging-v2" -} - -# Configure the docker image for kokoro-trampoline -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-domains/.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 f35f434c..00000000 --- a/.kokoro/release/publish_javadoc11.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -if [[ -z "${CREDENTIALS}" ]]; then - CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account -fi - -if [[ -z "${STAGING_BUCKET_V2}" ]]; then - echo "Need to set STAGING_BUCKET_V2 environment variable" - exit 1 -fi - -# work from the git root directory -pushd $(dirname "$0")/../../ - -# install docuploader package -python3 -m pip install --require-hashes -r .kokoro/requirements.txt - -# compile all packages -mvn clean install -B -q -DskipTests=true - -export NAME=google-cloud-domains -export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) - -# cloud RAD generation -mvn clean javadoc:aggregate -B -q -P docFX -# include CHANGELOG -cp CHANGELOG.md target/docfx-yml/history.md - -pushd target/docfx-yml - -# create metadata -python3 -m docuploader create-metadata \ - --name ${NAME} \ - --version ${VERSION} \ - --xrefs devsite://java/gax \ - --xrefs devsite://java/google-cloud-core \ - --xrefs devsite://java/api-common \ - --xrefs devsite://java/proto-google-common-protos \ - --xrefs devsite://java/google-api-client \ - --xrefs devsite://java/google-http-client \ - --xrefs devsite://java/protobuf \ - --language java - -# upload yml to production bucket -python3 -m docuploader upload . \ - --credentials ${CREDENTIALS} \ - --staging-bucket ${STAGING_BUCKET_V2} \ - --destination-prefix docfx diff --git a/.kokoro/release/snapshot.cfg b/.kokoro/release/snapshot.cfg deleted file mode 100644 index ae12b3a5..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-domains/.kokoro/release/snapshot.sh" -} \ No newline at end of file diff --git a/.kokoro/release/snapshot.sh b/.kokoro/release/snapshot.sh deleted file mode 100755 index 1f55b770..00000000 --- a/.kokoro/release/snapshot.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -source $(dirname "$0")/common.sh -MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml -pushd $(dirname "$0")/../../ - -# ensure we're trying to push a snapshot (no-result returns non-zero exit code) -grep SNAPSHOT versions.txt - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn clean deploy -B \ - --settings ${MAVEN_SETTINGS_FILE} \ - -DperformRelease=true \ - -Dgpg.executable=gpg \ - -Dgpg.passphrase=${GPG_PASSPHRASE} \ - -Dgpg.homedir=${GPG_HOMEDIR} diff --git a/.kokoro/release/stage.cfg b/.kokoro/release/stage.cfg deleted file mode 100644 index 67a5821d..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-domains/.kokoro/release/stage.sh" -} - -# Need to save the properties file -action { - define_artifacts { - regex: "github/java-domains/target/nexus-staging/staging/*.properties" - strip_prefix: "github/java-domains" - } -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem" -} diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh deleted file mode 100755 index 61e714d6..00000000 --- a/.kokoro/release/stage.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# Start the releasetool reporter -requirementsFile=$(realpath $(dirname "${BASH_SOURCE[0]}")/../requirements.txt) -python3 -m pip install --require-hashes -r $requirementsFile -python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script - -source $(dirname "$0")/common.sh -source $(dirname "$0")/../common.sh -MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -# attempt to stage 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn clean deploy -B \ - --settings ${MAVEN_SETTINGS_FILE} \ - -DskipTests=true \ - -Dclirr.skip=true \ - -DperformRelease=true \ - -Dgpg.executable=gpg \ - -Dgpg.passphrase=${GPG_PASSPHRASE} \ - -Dgpg.homedir=${GPG_HOMEDIR} - -if [[ -n "${AUTORELEASE_PR}" ]] -then - mvn nexus-staging:release -B \ - -DperformRelease=true \ - --settings=settings.xml -fi diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in deleted file mode 100644 index 6aa7cf2b..00000000 --- a/.kokoro/requirements.in +++ /dev/null @@ -1,33 +0,0 @@ -gcp-docuploader==0.6.3 -google-crc32c==1.3.0 -googleapis-common-protos==1.56.3 -gcp-releasetool==1.8.7 -cachetools==4.2.4 -cffi==1.15.1 -jeepney==0.7.1 -jinja2==3.0.3 -markupsafe==2.0.1 -keyring==23.4.1 -packaging==21.3 -protobuf==3.19.5 -pyjwt==2.4.0 -pyparsing==3.0.9 -pycparser==2.21 -pyperclip==1.8.2 -python-dateutil==2.8.2 -requests==2.27.1 -certifi==2022.9.24 -importlib-metadata==4.8.3 -zipp==3.6.0 -google_api_core==2.8.2 -google-cloud-storage==2.0.0 -google-resumable-media==2.3.3 -google-cloud-core==2.3.1 -typing-extensions==4.1.1 -urllib3==1.26.12 -zipp==3.6.0 -rsa==4.9 -six==1.16.0 -attrs==22.1.0 -google-auth==2.11.0 -idna==3.4 \ No newline at end of file diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt deleted file mode 100644 index 02ae42bb..00000000 --- a/.kokoro/requirements.txt +++ /dev/null @@ -1,456 +0,0 @@ -# -# This file is autogenerated by pip-compile with python 3.10 -# To update, run: -# -# pip-compile --allow-unsafe --generate-hashes requirements.in -# -attrs==22.1.0 \ - --hash=sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 \ - --hash=sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c - # via - # -r requirements.in - # gcp-releasetool -cachetools==4.2.4 \ - --hash=sha256:89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693 \ - --hash=sha256:92971d3cb7d2a97efff7c7bb1657f21a8f5fb309a37530537c71b1774189f2d1 - # via - # -r requirements.in - # google-auth -certifi==2022.9.24 \ - --hash=sha256:0d9c601124e5a6ba9712dbc60d9c53c21e34f5f641fe83002317394311bdce14 \ - --hash=sha256:90c1a32f1d68f940488354e36370f6cca89f0f106db09518524c88d6ed83f382 - # via - # -r requirements.in - # requests -cffi==1.15.1 \ - --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ - --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ - --hash=sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104 \ - --hash=sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426 \ - --hash=sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405 \ - --hash=sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375 \ - --hash=sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a \ - --hash=sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e \ - --hash=sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc \ - --hash=sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf \ - --hash=sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185 \ - --hash=sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497 \ - --hash=sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3 \ - --hash=sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35 \ - --hash=sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c \ - --hash=sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83 \ - --hash=sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21 \ - --hash=sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca \ - --hash=sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984 \ - --hash=sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac \ - --hash=sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd \ - --hash=sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee \ - --hash=sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a \ - --hash=sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2 \ - --hash=sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192 \ - --hash=sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7 \ - --hash=sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585 \ - --hash=sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f \ - --hash=sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e \ - --hash=sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27 \ - --hash=sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b \ - --hash=sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e \ - --hash=sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e \ - --hash=sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d \ - --hash=sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c \ - --hash=sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415 \ - --hash=sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82 \ - --hash=sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02 \ - --hash=sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314 \ - --hash=sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325 \ - --hash=sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c \ - --hash=sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3 \ - --hash=sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914 \ - --hash=sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045 \ - --hash=sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d \ - --hash=sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9 \ - --hash=sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5 \ - --hash=sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2 \ - --hash=sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c \ - --hash=sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3 \ - --hash=sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2 \ - --hash=sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8 \ - --hash=sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d \ - --hash=sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d \ - --hash=sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9 \ - --hash=sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162 \ - --hash=sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76 \ - --hash=sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4 \ - --hash=sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e \ - --hash=sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9 \ - --hash=sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6 \ - --hash=sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b \ - --hash=sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01 \ - --hash=sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0 - # via - # -r requirements.in - # cryptography -charset-normalizer==2.0.12 \ - --hash=sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597 \ - --hash=sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df - # via requests -click==8.0.4 \ - --hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \ - --hash=sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb - # via - # gcp-docuploader - # gcp-releasetool -colorlog==6.7.0 \ - --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ - --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 - # via gcp-docuploader -cryptography==38.0.1 \ - --hash=sha256:0297ffc478bdd237f5ca3a7dc96fc0d315670bfa099c04dc3a4a2172008a405a \ - --hash=sha256:10d1f29d6292fc95acb597bacefd5b9e812099d75a6469004fd38ba5471a977f \ - --hash=sha256:16fa61e7481f4b77ef53991075de29fc5bacb582a1244046d2e8b4bb72ef66d0 \ - --hash=sha256:194044c6b89a2f9f169df475cc167f6157eb9151cc69af8a2a163481d45cc407 \ - --hash=sha256:1db3d807a14931fa317f96435695d9ec386be7b84b618cc61cfa5d08b0ae33d7 \ - --hash=sha256:3261725c0ef84e7592597606f6583385fed2a5ec3909f43bc475ade9729a41d6 \ - --hash=sha256:3b72c360427889b40f36dc214630e688c2fe03e16c162ef0aa41da7ab1455153 \ - --hash=sha256:3e3a2599e640927089f932295a9a247fc40a5bdf69b0484532f530471a382750 \ - --hash=sha256:3fc26e22840b77326a764ceb5f02ca2d342305fba08f002a8c1f139540cdfaad \ - --hash=sha256:5067ee7f2bce36b11d0e334abcd1ccf8c541fc0bbdaf57cdd511fdee53e879b6 \ - --hash=sha256:52e7bee800ec869b4031093875279f1ff2ed12c1e2f74923e8f49c916afd1d3b \ - --hash=sha256:64760ba5331e3f1794d0bcaabc0d0c39e8c60bf67d09c93dc0e54189dfd7cfe5 \ - --hash=sha256:765fa194a0f3372d83005ab83ab35d7c5526c4e22951e46059b8ac678b44fa5a \ - --hash=sha256:79473cf8a5cbc471979bd9378c9f425384980fcf2ab6534b18ed7d0d9843987d \ - --hash=sha256:896dd3a66959d3a5ddcfc140a53391f69ff1e8f25d93f0e2e7830c6de90ceb9d \ - --hash=sha256:89ed49784ba88c221756ff4d4755dbc03b3c8d2c5103f6d6b4f83a0fb1e85294 \ - --hash=sha256:ac7e48f7e7261207d750fa7e55eac2d45f720027d5703cd9007e9b37bbb59ac0 \ - --hash=sha256:ad7353f6ddf285aeadfaf79e5a6829110106ff8189391704c1d8801aa0bae45a \ - --hash=sha256:b0163a849b6f315bf52815e238bc2b2346604413fa7c1601eea84bcddb5fb9ac \ - --hash=sha256:b6c9b706316d7b5a137c35e14f4103e2115b088c412140fdbd5f87c73284df61 \ - --hash=sha256:c2e5856248a416767322c8668ef1845ad46ee62629266f84a8f007a317141013 \ - --hash=sha256:ca9f6784ea96b55ff41708b92c3f6aeaebde4c560308e5fbbd3173fbc466e94e \ - --hash=sha256:d1a5bd52d684e49a36582193e0b89ff267704cd4025abefb9e26803adeb3e5fb \ - --hash=sha256:d3971e2749a723e9084dd507584e2a2761f78ad2c638aa31e80bc7a15c9db4f9 \ - --hash=sha256:d4ef6cc305394ed669d4d9eebf10d3a101059bdcf2669c366ec1d14e4fb227bd \ - --hash=sha256:d9e69ae01f99abe6ad646947bba8941e896cb3aa805be2597a0400e0764b5818 - # via - # gcp-releasetool - # secretstorage -gcp-docuploader==0.6.3 \ - --hash=sha256:ba8c9d76b3bbac54b0311c503a373b00edc2dc02d6d54ea9507045adb8e870f7 \ - --hash=sha256:c0f5aaa82ce1854a386197e4e359b120ad6d4e57ae2c812fce42219a3288026b - # via -r requirements.in -gcp-releasetool==1.8.7 \ - --hash=sha256:3d2a67c9db39322194afb3b427e9cb0476ce8f2a04033695f0aeb63979fc2b37 \ - --hash=sha256:5e4d28f66e90780d77f3ecf1e9155852b0c3b13cbccb08ab07e66b2357c8da8d - # via -r requirements.in -google-api-core==2.8.2 \ - --hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \ - --hash=sha256:93c6a91ccac79079ac6bbf8b74ee75db970cc899278b97d53bc012f35908cf50 - # via - # -r requirements.in - # google-cloud-core - # google-cloud-storage -google-auth==2.11.0 \ - --hash=sha256:be62acaae38d0049c21ca90f27a23847245c9f161ff54ede13af2cb6afecbac9 \ - --hash=sha256:ed65ecf9f681832298e29328e1ef0a3676e3732b2e56f41532d45f70a22de0fb - # via - # -r requirements.in - # gcp-releasetool - # google-api-core - # google-cloud-core - # google-cloud-storage -google-cloud-core==2.3.1 \ - --hash=sha256:113ba4f492467d5bd442c8d724c1a25ad7384045c3178369038840ecdd19346c \ - --hash=sha256:34334359cb04187bdc80ddcf613e462dfd7a3aabbc3fe4d118517ab4b9303d53 - # via - # -r requirements.in - # google-cloud-storage -google-cloud-storage==2.0.0 \ - --hash=sha256:a57a15aead0f9dfbd4381f1bfdbe8bf89818a4bd75bab846cafcefb2db846c47 \ - --hash=sha256:ec4be60bb223a3a960f0d01697d849b86d91cad815a84915a32ed3635e93a5e7 - # via - # -r requirements.in - # gcp-docuploader -google-crc32c==1.3.0 \ - --hash=sha256:04e7c220798a72fd0f08242bc8d7a05986b2a08a0573396187fd32c1dcdd58b3 \ - --hash=sha256:05340b60bf05b574159e9bd940152a47d38af3fb43803ffe71f11d704b7696a6 \ - --hash=sha256:12674a4c3b56b706153a358eaa1018c4137a5a04635b92b4652440d3d7386206 \ - --hash=sha256:127f9cc3ac41b6a859bd9dc4321097b1a4f6aa7fdf71b4f9227b9e3ebffb4422 \ - --hash=sha256:13af315c3a0eec8bb8b8d80b8b128cb3fcd17d7e4edafc39647846345a3f003a \ - --hash=sha256:1926fd8de0acb9d15ee757175ce7242e235482a783cd4ec711cc999fc103c24e \ - --hash=sha256:226f2f9b8e128a6ca6a9af9b9e8384f7b53a801907425c9a292553a3a7218ce0 \ - --hash=sha256:276de6273eb074a35bc598f8efbc00c7869c5cf2e29c90748fccc8c898c244df \ - --hash=sha256:318f73f5484b5671f0c7f5f63741ab020a599504ed81d209b5c7129ee4667407 \ - --hash=sha256:3bbce1be3687bbfebe29abdb7631b83e6b25da3f4e1856a1611eb21854b689ea \ - --hash=sha256:42ae4781333e331a1743445931b08ebdad73e188fd554259e772556fc4937c48 \ - --hash=sha256:58be56ae0529c664cc04a9c76e68bb92b091e0194d6e3c50bea7e0f266f73713 \ - --hash=sha256:5da2c81575cc3ccf05d9830f9e8d3c70954819ca9a63828210498c0774fda1a3 \ - --hash=sha256:6311853aa2bba4064d0c28ca54e7b50c4d48e3de04f6770f6c60ebda1e975267 \ - --hash=sha256:650e2917660e696041ab3dcd7abac160b4121cd9a484c08406f24c5964099829 \ - --hash=sha256:6a4db36f9721fdf391646685ecffa404eb986cbe007a3289499020daf72e88a2 \ - --hash=sha256:779cbf1ce375b96111db98fca913c1f5ec11b1d870e529b1dc7354b2681a8c3a \ - --hash=sha256:7f6fe42536d9dcd3e2ffb9d3053f5d05221ae3bbcefbe472bdf2c71c793e3183 \ - --hash=sha256:891f712ce54e0d631370e1f4997b3f182f3368179198efc30d477c75d1f44942 \ - --hash=sha256:95c68a4b9b7828ba0428f8f7e3109c5d476ca44996ed9a5f8aac6269296e2d59 \ - --hash=sha256:96a8918a78d5d64e07c8ea4ed2bc44354e3f93f46a4866a40e8db934e4c0d74b \ - --hash=sha256:9c3cf890c3c0ecfe1510a452a165431b5831e24160c5fcf2071f0f85ca5a47cd \ - --hash=sha256:9f58099ad7affc0754ae42e6d87443299f15d739b0ce03c76f515153a5cda06c \ - --hash=sha256:a0b9e622c3b2b8d0ce32f77eba617ab0d6768b82836391e4f8f9e2074582bf02 \ - --hash=sha256:a7f9cbea4245ee36190f85fe1814e2d7b1e5f2186381b082f5d59f99b7f11328 \ - --hash=sha256:bab4aebd525218bab4ee615786c4581952eadc16b1ff031813a2fd51f0cc7b08 \ - --hash=sha256:c124b8c8779bf2d35d9b721e52d4adb41c9bfbde45e6a3f25f0820caa9aba73f \ - --hash=sha256:c9da0a39b53d2fab3e5467329ed50e951eb91386e9d0d5b12daf593973c3b168 \ - --hash=sha256:ca60076c388728d3b6ac3846842474f4250c91efbfe5afa872d3ffd69dd4b318 \ - --hash=sha256:cb6994fff247987c66a8a4e550ef374671c2b82e3c0d2115e689d21e511a652d \ - --hash=sha256:d1c1d6236feab51200272d79b3d3e0f12cf2cbb12b208c835b175a21efdb0a73 \ - --hash=sha256:dd7760a88a8d3d705ff562aa93f8445ead54f58fd482e4f9e2bafb7e177375d4 \ - --hash=sha256:dda4d8a3bb0b50f540f6ff4b6033f3a74e8bf0bd5320b70fab2c03e512a62812 \ - --hash=sha256:e0f1ff55dde0ebcfbef027edc21f71c205845585fffe30d4ec4979416613e9b3 \ - --hash=sha256:e7a539b9be7b9c00f11ef16b55486141bc2cdb0c54762f84e3c6fc091917436d \ - --hash=sha256:eb0b14523758e37802f27b7f8cd973f5f3d33be7613952c0df904b68c4842f0e \ - --hash=sha256:ed447680ff21c14aaceb6a9f99a5f639f583ccfe4ce1a5e1d48eb41c3d6b3217 \ - --hash=sha256:f52a4ad2568314ee713715b1e2d79ab55fab11e8b304fd1462ff5cccf4264b3e \ - --hash=sha256:fbd60c6aaa07c31d7754edbc2334aef50601b7f1ada67a96eb1eb57c7c72378f \ - --hash=sha256:fc28e0db232c62ca0c3600884933178f0825c99be4474cdd645e378a10588125 \ - --hash=sha256:fe31de3002e7b08eb20823b3735b97c86c5926dd0581c7710a680b418a8709d4 \ - --hash=sha256:fec221a051150eeddfdfcff162e6db92c65ecf46cb0f7bb1bf812a1520ec026b \ - --hash=sha256:ff71073ebf0e42258a42a0b34f2c09ec384977e7f6808999102eedd5b49920e3 - # via - # -r requirements.in - # google-resumable-media -google-resumable-media==2.3.3 \ - --hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \ - --hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5 - # via - # -r requirements.in - # google-cloud-storage -googleapis-common-protos==1.56.3 \ - --hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \ - --hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461 - # via - # -r requirements.in - # google-api-core -idna==3.4 \ - --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 \ - --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2 - # via - # -r requirements.in - # requests -importlib-metadata==4.8.3 \ - --hash=sha256:65a9576a5b2d58ca44d133c42a241905cc45e34d2c06fd5ba2bafa221e5d7b5e \ - --hash=sha256:766abffff765960fcc18003801f7044eb6755ffae4521c8e8ce8e83b9c9b0668 - # via - # -r requirements.in - # keyring -jeepney==0.7.1 \ - --hash=sha256:1b5a0ea5c0e7b166b2f5895b91a08c14de8915afda4407fb5022a195224958ac \ - --hash=sha256:fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f - # via - # -r requirements.in - # keyring - # secretstorage -jinja2==3.0.3 \ - --hash=sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8 \ - --hash=sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7 - # via - # -r requirements.in - # gcp-releasetool -keyring==23.4.1 \ - --hash=sha256:17e49fb0d6883c2b4445359434dba95aad84aabb29bbff044ad0ed7100232eca \ - --hash=sha256:89cbd74d4683ed164c8082fb38619341097741323b3786905c6dac04d6915a55 - # via - # -r requirements.in - # gcp-releasetool -markupsafe==2.0.1 \ - --hash=sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298 \ - --hash=sha256:023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64 \ - --hash=sha256:0446679737af14f45767963a1a9ef7620189912317d095f2d9ffa183a4d25d2b \ - --hash=sha256:04635854b943835a6ea959e948d19dcd311762c5c0c6e1f0e16ee57022669194 \ - --hash=sha256:0717a7390a68be14b8c793ba258e075c6f4ca819f15edfc2a3a027c823718567 \ - --hash=sha256:0955295dd5eec6cb6cc2fe1698f4c6d84af2e92de33fbcac4111913cd100a6ff \ - --hash=sha256:0d4b31cc67ab36e3392bbf3862cfbadac3db12bdd8b02a2731f509ed5b829724 \ - --hash=sha256:10f82115e21dc0dfec9ab5c0223652f7197feb168c940f3ef61563fc2d6beb74 \ - --hash=sha256:168cd0a3642de83558a5153c8bd34f175a9a6e7f6dc6384b9655d2697312a646 \ - --hash=sha256:1d609f577dc6e1aa17d746f8bd3c31aa4d258f4070d61b2aa5c4166c1539de35 \ - --hash=sha256:1f2ade76b9903f39aa442b4aadd2177decb66525062db244b35d71d0ee8599b6 \ - --hash=sha256:20dca64a3ef2d6e4d5d615a3fd418ad3bde77a47ec8a23d984a12b5b4c74491a \ - --hash=sha256:2a7d351cbd8cfeb19ca00de495e224dea7e7d919659c2841bbb7f420ad03e2d6 \ - --hash=sha256:2d7d807855b419fc2ed3e631034685db6079889a1f01d5d9dac950f764da3dad \ - --hash=sha256:2ef54abee730b502252bcdf31b10dacb0a416229b72c18b19e24a4509f273d26 \ - --hash=sha256:36bc903cbb393720fad60fc28c10de6acf10dc6cc883f3e24ee4012371399a38 \ - --hash=sha256:37205cac2a79194e3750b0af2a5720d95f786a55ce7df90c3af697bfa100eaac \ - --hash=sha256:3c112550557578c26af18a1ccc9e090bfe03832ae994343cfdacd287db6a6ae7 \ - --hash=sha256:3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6 \ - --hash=sha256:4296f2b1ce8c86a6aea78613c34bb1a672ea0e3de9c6ba08a960efe0b0a09047 \ - --hash=sha256:47ab1e7b91c098ab893b828deafa1203de86d0bc6ab587b160f78fe6c4011f75 \ - --hash=sha256:49e3ceeabbfb9d66c3aef5af3a60cc43b85c33df25ce03d0031a608b0a8b2e3f \ - --hash=sha256:4dc8f9fb58f7364b63fd9f85013b780ef83c11857ae79f2feda41e270468dd9b \ - --hash=sha256:4efca8f86c54b22348a5467704e3fec767b2db12fc39c6d963168ab1d3fc9135 \ - --hash=sha256:53edb4da6925ad13c07b6d26c2a852bd81e364f95301c66e930ab2aef5b5ddd8 \ - --hash=sha256:5855f8438a7d1d458206a2466bf82b0f104a3724bf96a1c781ab731e4201731a \ - --hash=sha256:594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a \ - --hash=sha256:5b6d930f030f8ed98e3e6c98ffa0652bdb82601e7a016ec2ab5d7ff23baa78d1 \ - --hash=sha256:5bb28c636d87e840583ee3adeb78172efc47c8b26127267f54a9c0ec251d41a9 \ - --hash=sha256:60bf42e36abfaf9aff1f50f52644b336d4f0a3fd6d8a60ca0d054ac9f713a864 \ - --hash=sha256:611d1ad9a4288cf3e3c16014564df047fe08410e628f89805e475368bd304914 \ - --hash=sha256:6300b8454aa6930a24b9618fbb54b5a68135092bc666f7b06901f897fa5c2fee \ - --hash=sha256:63f3268ba69ace99cab4e3e3b5840b03340efed0948ab8f78d2fd87ee5442a4f \ - --hash=sha256:6557b31b5e2c9ddf0de32a691f2312a32f77cd7681d8af66c2692efdbef84c18 \ - --hash=sha256:693ce3f9e70a6cf7d2fb9e6c9d8b204b6b39897a2c4a1aa65728d5ac97dcc1d8 \ - --hash=sha256:6a7fae0dd14cf60ad5ff42baa2e95727c3d81ded453457771d02b7d2b3f9c0c2 \ - --hash=sha256:6c4ca60fa24e85fe25b912b01e62cb969d69a23a5d5867682dd3e80b5b02581d \ - --hash=sha256:6fcf051089389abe060c9cd7caa212c707e58153afa2c649f00346ce6d260f1b \ - --hash=sha256:7d91275b0245b1da4d4cfa07e0faedd5b0812efc15b702576d103293e252af1b \ - --hash=sha256:89c687013cb1cd489a0f0ac24febe8c7a666e6e221b783e53ac50ebf68e45d86 \ - --hash=sha256:8d206346619592c6200148b01a2142798c989edcb9c896f9ac9722a99d4e77e6 \ - --hash=sha256:905fec760bd2fa1388bb5b489ee8ee5f7291d692638ea5f67982d968366bef9f \ - --hash=sha256:97383d78eb34da7e1fa37dd273c20ad4320929af65d156e35a5e2d89566d9dfb \ - --hash=sha256:984d76483eb32f1bcb536dc27e4ad56bba4baa70be32fa87152832cdd9db0833 \ - --hash=sha256:99df47edb6bda1249d3e80fdabb1dab8c08ef3975f69aed437cb69d0a5de1e28 \ - --hash=sha256:9f02365d4e99430a12647f09b6cc8bab61a6564363f313126f775eb4f6ef798e \ - --hash=sha256:a30e67a65b53ea0a5e62fe23682cfe22712e01f453b95233b25502f7c61cb415 \ - --hash=sha256:ab3ef638ace319fa26553db0624c4699e31a28bb2a835c5faca8f8acf6a5a902 \ - --hash=sha256:aca6377c0cb8a8253e493c6b451565ac77e98c2951c45f913e0b52facdcff83f \ - --hash=sha256:add36cb2dbb8b736611303cd3bfcee00afd96471b09cda130da3581cbdc56a6d \ - --hash=sha256:b2f4bf27480f5e5e8ce285a8c8fd176c0b03e93dcc6646477d4630e83440c6a9 \ - --hash=sha256:b7f2d075102dc8c794cbde1947378051c4e5180d52d276987b8d28a3bd58c17d \ - --hash=sha256:baa1a4e8f868845af802979fcdbf0bb11f94f1cb7ced4c4b8a351bb60d108145 \ - --hash=sha256:be98f628055368795d818ebf93da628541e10b75b41c559fdf36d104c5787066 \ - --hash=sha256:bf5d821ffabf0ef3533c39c518f3357b171a1651c1ff6827325e4489b0e46c3c \ - --hash=sha256:c47adbc92fc1bb2b3274c4b3a43ae0e4573d9fbff4f54cd484555edbf030baf1 \ - --hash=sha256:cdfba22ea2f0029c9261a4bd07e830a8da012291fbe44dc794e488b6c9bb353a \ - --hash=sha256:d6c7ebd4e944c85e2c3421e612a7057a2f48d478d79e61800d81468a8d842207 \ - --hash=sha256:d7f9850398e85aba693bb640262d3611788b1f29a79f0c93c565694658f4071f \ - --hash=sha256:d8446c54dc28c01e5a2dbac5a25f071f6653e6e40f3a8818e8b45d790fe6ef53 \ - --hash=sha256:deb993cacb280823246a026e3b2d81c493c53de6acfd5e6bfe31ab3402bb37dd \ - --hash=sha256:e0f138900af21926a02425cf736db95be9f4af72ba1bb21453432a07f6082134 \ - --hash=sha256:e9936f0b261d4df76ad22f8fee3ae83b60d7c3e871292cd42f40b81b70afae85 \ - --hash=sha256:f0567c4dc99f264f49fe27da5f735f414c4e7e7dd850cfd8e69f0862d7c74ea9 \ - --hash=sha256:f5653a225f31e113b152e56f154ccbe59eeb1c7487b39b9d9f9cdb58e6c79dc5 \ - --hash=sha256:f826e31d18b516f653fe296d967d700fddad5901ae07c622bb3705955e1faa94 \ - --hash=sha256:f8ba0e8349a38d3001fae7eadded3f6606f0da5d748ee53cc1dab1d6527b9509 \ - --hash=sha256:f9081981fe268bd86831e5c75f7de206ef275defcb82bc70740ae6dc507aee51 \ - --hash=sha256:fa130dd50c57d53368c9d59395cb5526eda596d3ffe36666cd81a44d56e48872 - # via - # -r requirements.in - # jinja2 -packaging==21.3 \ - --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ - --hash=sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522 - # via - # -r requirements.in - # gcp-releasetool -protobuf==3.19.5 \ - --hash=sha256:1867f93b06a183f87696871bb8d1e99ee71dbb69d468ce1f0cc8bf3d30f982f3 \ - --hash=sha256:3c4160b601220627f7e91154e572baf5e161a9c3f445a8242d536ee3d0b7b17c \ - --hash=sha256:4ee2af7051d3b10c8a4fe6fd1a2c69f201fea36aeee7086cf202a692e1b99ee1 \ - --hash=sha256:5266c36cc0af3bb3dbf44f199d225b33da66a9a5c3bdc2b14865ad10eddf0e37 \ - --hash=sha256:5470f892961af464ae6eaf0f3099e2c1190ae8c7f36f174b89491281341f79ca \ - --hash=sha256:66d14b5b90090353efe75c9fb1bf65ef7267383034688d255b500822e37d5c2f \ - --hash=sha256:67efb5d20618020aa9596e17bfc37ca068c28ec0c1507d9507f73c93d46c9855 \ - --hash=sha256:696e6cfab94cc15a14946f2bf72719dced087d437adbd994fff34f38986628bc \ - --hash=sha256:6a02172b9650f819d01fb8e224fc69b0706458fc1ab4f1c669281243c71c1a5e \ - --hash=sha256:6eca9ae238ba615d702387a2ddea635d535d769994a9968c09a4ca920c487ab9 \ - --hash=sha256:950abd6c00e7b51f87ae8b18a0ce4d69fea217f62f171426e77de5061f6d9850 \ - --hash=sha256:9e1d74032f56ff25f417cfe84c8147047732e5059137ca42efad20cbbd25f5e0 \ - --hash=sha256:9e42b1cf2ecd8a1bd161239e693f22035ba99905ae6d7efeac8a0546c7ec1a27 \ - --hash=sha256:9f957ef53e872d58a0afd3bf6d80d48535d28c99b40e75e6634cbc33ea42fd54 \ - --hash=sha256:a89aa0c042e61e11ade320b802d6db4ee5391d8d973e46d3a48172c1597789f8 \ - --hash=sha256:c0f80876a8ff0ae7064084ed094eb86497bd5a3812e6fc96a05318b92301674e \ - --hash=sha256:c44e3282cff74ad18c7e8a0375f407f69ee50c2116364b44492a196293e08b21 \ - --hash=sha256:d249519ba5ecf5dd6b18150c9b6bcde510b273714b696f3923ff8308fc11ae49 \ - --hash=sha256:d3973a2d58aefc7d1230725c2447ce7f86a71cbc094b86a77c6ee1505ac7cdb1 \ - --hash=sha256:dca2284378a5f2a86ffed35c6ac147d14c48b525eefcd1083e5a9ce28dfa8657 \ - --hash=sha256:e63b0b3c42e51c94add62b010366cd4979cb6d5f06158bcae8faac4c294f91e1 \ - --hash=sha256:f2b599a21c9a32e171ec29a2ac54e03297736c578698e11b099d031f79da114b \ - --hash=sha256:f2bde37667b18c2b5280df83bc799204394a5d2d774e4deaf9de0eb741df6833 \ - --hash=sha256:f4f909f4dde413dec435a44b0894956d55bb928ded7d6e3c726556ca4c796e84 \ - --hash=sha256:f976234e20ab2785f54224bcdafa027674e23663b132fa3ca0caa291a6cfbde7 \ - --hash=sha256:f9cebda093c2f6bfed88f1c17cdade09d4d96096421b344026feee236532d4de - # via - # -r requirements.in - # gcp-docuploader - # gcp-releasetool - # google-api-core - # google-cloud-storage - # googleapis-common-protos -pyasn1==0.4.8 \ - --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ - --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba - # via - # pyasn1-modules - # rsa -pyasn1-modules==0.2.8 \ - --hash=sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e \ - --hash=sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74 - # via google-auth -pycparser==2.21 \ - --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \ - --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 - # via - # -r requirements.in - # cffi -pyjwt==2.4.0 \ - --hash=sha256:72d1d253f32dbd4f5c88eaf1fdc62f3a19f676ccbadb9dbc5d07e951b2b26daf \ - --hash=sha256:d42908208c699b3b973cbeb01a969ba6a96c821eefb1c5bfe4c390c01d67abba - # via - # -r requirements.in - # gcp-releasetool -pyparsing==3.0.9 \ - --hash=sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb \ - --hash=sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc - # via - # -r requirements.in - # packaging -pyperclip==1.8.2 \ - --hash=sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57 - # via - # -r requirements.in - # gcp-releasetool -python-dateutil==2.8.2 \ - --hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \ - --hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9 - # via - # -r requirements.in - # gcp-releasetool -requests==2.27.1 \ - --hash=sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61 \ - --hash=sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d - # via - # -r requirements.in - # gcp-releasetool - # google-api-core - # google-cloud-storage -rsa==4.9 \ - --hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 \ - --hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21 - # via - # -r requirements.in - # google-auth -secretstorage==3.3.3 \ - --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ - --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 - # via keyring -six==1.16.0 \ - --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ - --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 - # via - # -r requirements.in - # gcp-docuploader - # google-auth - # python-dateutil -typing-extensions==4.1.1 \ - --hash=sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42 \ - --hash=sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2 - # via -r requirements.in -urllib3==1.26.12 \ - --hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \ - --hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997 - # via - # -r requirements.in - # requests -zipp==3.6.0 \ - --hash=sha256:71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832 \ - --hash=sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc - # via - # -r requirements.in - # importlib-metadata diff --git a/.kokoro/trampoline.sh b/.kokoro/trampoline.sh deleted file mode 100644 index 8b69b793..00000000 --- a/.kokoro/trampoline.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -set -eo pipefail -# Always run the cleanup script, regardless of the success of bouncing into -# the container. -function cleanup() { - chmod +x ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh - ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh - echo "cleanup"; -} -trap cleanup EXIT - -$(dirname $0)/populate-secrets.sh # Secret Manager secrets. -python3 "${KOKORO_GFILE_DIR}/trampoline_v1.py" diff --git a/.repo-metadata.json b/.repo-metadata.json deleted file mode 100644 index fb87dff7..00000000 --- a/.repo-metadata.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "api_shortname": "domains", - "name_pretty": "Cloud Domains", - "product_documentation": "https://cloud.google.com/domains", - "api_description": "allows you to register and manage domains by using Cloud Domains.", - "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-domains/latest/history", - "release_level": "stable", - "transport": "grpc", - "language": "java", - "repo": "googleapis/java-domains", - "repo_short": "java-domains", - "distribution_name": "com.google.cloud:google-cloud-domains", - "api_id": "domains.googleapis.com", - "requires_billing": true, - "library_type": "GAPIC_AUTO" -} diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index f5d037fb..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,276 +0,0 @@ -# Changelog - -## [1.0.6](https://github.com/googleapis/java-domains/compare/v1.0.5...v1.0.6) (2022-10-05) - - -### Bug Fixes - -* update protobuf to v3.21.7 ([7df022b](https://github.com/googleapis/java-domains/commit/7df022b4241a6369c7a13c1c7b2fc4ece0ee49e0)) - -## [1.0.5](https://github.com/googleapis/java-domains/compare/v1.0.4...v1.0.5) (2022-10-03) - - -### Dependencies - -* Update dependency cachetools to v5 ([#298](https://github.com/googleapis/java-domains/issues/298)) ([7bcaa5b](https://github.com/googleapis/java-domains/commit/7bcaa5b4b84fe8e0e0e13b2f1fb7a88abc05aa7e)) -* Update dependency certifi to v2022.9.24 ([#278](https://github.com/googleapis/java-domains/issues/278)) ([5385c50](https://github.com/googleapis/java-domains/commit/5385c50ea2a399639d0106c3e8bcda92f77e4231)) -* Update dependency click to v8.1.3 ([#283](https://github.com/googleapis/java-domains/issues/283)) ([3397dd2](https://github.com/googleapis/java-domains/commit/3397dd2b435ea53d30fcd2a589e4fb03e78c7a5a)) -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#303](https://github.com/googleapis/java-domains/issues/303)) ([cd3485b](https://github.com/googleapis/java-domains/commit/cd3485b8adad2279f4ace288c0055c4750c3db66)) -* Update dependency google-api-core to v2.10.1 ([#284](https://github.com/googleapis/java-domains/issues/284)) ([656b66c](https://github.com/googleapis/java-domains/commit/656b66cdedce4fe22b019030da0ade030529e663)) -* Update dependency google-auth to v2.12.0 ([#285](https://github.com/googleapis/java-domains/issues/285)) ([86d514b](https://github.com/googleapis/java-domains/commit/86d514bc5ddb2f180806655406c91610d5059e77)) -* Update dependency google-cloud-core to v2.3.2 ([#280](https://github.com/googleapis/java-domains/issues/280)) ([9ee17a7](https://github.com/googleapis/java-domains/commit/9ee17a78d3f12ad115884e30dbb3935ad488a4f9)) -* Update dependency google-crc32c to v1.5.0 ([#287](https://github.com/googleapis/java-domains/issues/287)) ([ae3c6eb](https://github.com/googleapis/java-domains/commit/ae3c6eb7c8fa917d6c1bab7f7c7cea418abf9f46)) -* Update dependency googleapis-common-protos to v1.56.4 ([#281](https://github.com/googleapis/java-domains/issues/281)) ([1d392c0](https://github.com/googleapis/java-domains/commit/1d392c04734acd7017ba97109521b024c988ac17)) -* Update dependency importlib-metadata to v4.12.0 ([#288](https://github.com/googleapis/java-domains/issues/288)) ([753d006](https://github.com/googleapis/java-domains/commit/753d006b3b4928c7bb01ba5c5d1985b1bf064697)) -* Update dependency jeepney to v0.8.0 ([#289](https://github.com/googleapis/java-domains/issues/289)) ([c430768](https://github.com/googleapis/java-domains/commit/c430768e24d9a3ea936f898454dd3781ed17d5f0)) -* Update dependency jinja2 to v3.1.2 ([#290](https://github.com/googleapis/java-domains/issues/290)) ([bc762b6](https://github.com/googleapis/java-domains/commit/bc762b6bb88ca75b3f6874f8dd4331e9487cceda)) -* Update dependency protobuf to v3.20.2 ([#293](https://github.com/googleapis/java-domains/issues/293)) ([7ae3a69](https://github.com/googleapis/java-domains/commit/7ae3a699c743a79d0f5c2280ff0fafb382ee2e4b)) -* Update dependency protobuf to v4 ([#299](https://github.com/googleapis/java-domains/issues/299)) ([f8021c3](https://github.com/googleapis/java-domains/commit/f8021c3e286520aee64109e018bbbfe056df9dfa)) -* Update dependency pyjwt to v2.5.0 ([#294](https://github.com/googleapis/java-domains/issues/294)) ([a8f0d11](https://github.com/googleapis/java-domains/commit/a8f0d11cce118f4ad50ea3de073ecec0b507f402)) -* Update dependency requests to v2.28.1 ([#295](https://github.com/googleapis/java-domains/issues/295)) ([acf9a98](https://github.com/googleapis/java-domains/commit/acf9a9834cb5eb81a884d6e1932c9290603865d5)) -* Update dependency typing-extensions to v4.3.0 ([#296](https://github.com/googleapis/java-domains/issues/296)) ([357a6d9](https://github.com/googleapis/java-domains/commit/357a6d914406baedeb9bc65bb9526c0f5d3ae192)) -* Update dependency zipp to v3.8.1 ([#297](https://github.com/googleapis/java-domains/issues/297)) ([41e5b9a](https://github.com/googleapis/java-domains/commit/41e5b9a30547d39de1387a65368c1e15973ad804)) - -## [1.0.4](https://github.com/googleapis/java-domains/compare/v1.0.3...v1.0.4) (2022-09-15) - - -### Dependencies - -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#272](https://github.com/googleapis/java-domains/issues/272)) ([950e91b](https://github.com/googleapis/java-domains/commit/950e91ba65ac7b7d282ca40e2bab9fc126d97e3d)) - -## [1.0.3](https://github.com/googleapis/java-domains/compare/v1.0.2...v1.0.3) (2022-09-09) - - -### Dependencies - -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#267](https://github.com/googleapis/java-domains/issues/267)) ([f1b70df](https://github.com/googleapis/java-domains/commit/f1b70dfa7cb9fa207d19f1c6d103e7d842ad1674)) - -## [1.0.2](https://github.com/googleapis/java-domains/compare/v1.0.1...v1.0.2) (2022-08-12) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#258](https://github.com/googleapis/java-domains/issues/258)) ([b06ac90](https://github.com/googleapis/java-domains/commit/b06ac90b22739d39de5b9b09e55d00f0eb4003f6)) - -## [1.0.1](https://github.com/googleapis/java-domains/compare/v1.0.0...v1.0.1) (2022-07-13) - - -### Bug Fixes - -* enable longpaths support for windows test ([#1485](https://github.com/googleapis/java-domains/issues/1485)) ([#250](https://github.com/googleapis/java-domains/issues/250)) ([d4a4458](https://github.com/googleapis/java-domains/commit/d4a44585c28aee9a3dd9c5d6561c01cff4375ba7)) - -## [1.0.0](https://github.com/googleapis/java-domains/compare/v0.7.0...v1.0.0) (2022-07-11) - - -### Features - -* promote to GA again ([#248](https://github.com/googleapis/java-domains/issues/248)) ([94afd87](https://github.com/googleapis/java-domains/commit/94afd87d5920b5112bece3ebc04bd7d128a176fc)) - -## [0.7.0](https://github.com/googleapis/java-domains/compare/v0.6.1...v0.7.0) (2022-06-30) - - -### Features - -* Enable REST transport for most of Java and Go clients ([#236](https://github.com/googleapis/java-domains/issues/236)) ([e8a03a0](https://github.com/googleapis/java-domains/commit/e8a03a08d8b0c9cf9e6be1851d63e3f76fe6aaa2)) - - -### Bug Fixes - -* update gapic-generator-java with mock service generation fixes ([#242](https://github.com/googleapis/java-domains/issues/242)) ([e0a62e9](https://github.com/googleapis/java-domains/commit/e0a62e94203831df7cde4a95ad20069c0acc7c64)) - -## [0.6.1](https://github.com/googleapis/java-domains/compare/v0.6.0...v0.6.1) (2022-06-23) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#235](https://github.com/googleapis/java-domains/issues/235)) ([00e6814](https://github.com/googleapis/java-domains/commit/00e6814c01557acbdb9717d198f7386b570fe870)) - -## [0.6.0](https://github.com/googleapis/java-domains/compare/v0.5.6...v0.6.0) (2022-05-24) - - -### Features - -* add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-domains/issues/1440)) ([#227](https://github.com/googleapis/java-domains/issues/227)) ([f450420](https://github.com/googleapis/java-domains/commit/f45042082af202a8a50464d2962260c76084aded)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#226](https://github.com/googleapis/java-domains/issues/226)) ([a2cb82e](https://github.com/googleapis/java-domains/commit/a2cb82ecf67ce21fef650336d5c485de415c6d61)) - -### [0.5.6](https://github.com/googleapis/java-domains/compare/v0.5.5...v0.5.6) (2022-04-15) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#214](https://github.com/googleapis/java-domains/issues/214)) ([f6f2950](https://github.com/googleapis/java-domains/commit/f6f2950a409c8e9427328e3ce6044fd1362d8380)) - -### [0.5.5](https://github.com/googleapis/java-domains/compare/v0.5.4...v0.5.5) (2022-03-29) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#209](https://github.com/googleapis/java-domains/issues/209)) ([a312025](https://github.com/googleapis/java-domains/commit/a3120252d5ec8b5a7ba66e6549a233b8f742fb86)) - -### [0.5.4](https://github.com/googleapis/java-domains/compare/v0.5.3...v0.5.4) (2022-03-02) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#198](https://github.com/googleapis/java-domains/issues/198)) ([1f8825c](https://github.com/googleapis/java-domains/commit/1f8825c7f70d3dc27530141f7da9f86f2b7fd532)) - -### [0.5.3](https://github.com/googleapis/java-domains/compare/v0.5.2...v0.5.3) (2022-02-11) - - -### Dependencies - -* update actions/github-script action to v6 ([#186](https://github.com/googleapis/java-domains/issues/186)) ([c082346](https://github.com/googleapis/java-domains/commit/c082346c8716427a777ee74ea79317792e5c587a)) - -### [0.5.2](https://www.github.com/googleapis/java-domains/compare/v0.5.1...v0.5.2) (2022-01-10) - - -### Bug Fixes - -* **java:** run Maven in plain console-friendly mode ([#1301](https://www.github.com/googleapis/java-domains/issues/1301)) ([#155](https://www.github.com/googleapis/java-domains/issues/155)) ([d9592b3](https://www.github.com/googleapis/java-domains/commit/d9592b34a270e75d11b8ee2696a01677530d80b6)) - -### [0.5.1](https://www.github.com/googleapis/java-domains/compare/v0.5.0...v0.5.1) (2022-01-07) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#157](https://www.github.com/googleapis/java-domains/issues/157)) ([11abd03](https://www.github.com/googleapis/java-domains/commit/11abd0393f47d3570e46d356bd782619a6680504)) - -## [0.5.0](https://www.github.com/googleapis/java-domains/compare/v0.4.2...v0.5.0) (2021-12-06) - - -### Features - -* added library for Cloud Domains v1 API ([#128](https://www.github.com/googleapis/java-domains/issues/128)) ([d2b1aa9](https://www.github.com/googleapis/java-domains/commit/d2b1aa9245fadae117af62fb68b5fd4a17653ac0)) - - -### Bug Fixes - -* **java:** add -ntp flag to native image testing command ([#1299](https://www.github.com/googleapis/java-domains/issues/1299)) ([#150](https://www.github.com/googleapis/java-domains/issues/150)) ([50a7adf](https://www.github.com/googleapis/java-domains/commit/50a7adfe39d01e0f1142adefe31958bfac05c68e)) -* **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-domains/issues/1266)) ([#135](https://www.github.com/googleapis/java-domains/issues/135)) ([9469ba1](https://www.github.com/googleapis/java-domains/commit/9469ba1317de7e20323bf1f4cc8c3312b8ff8c5c)) - - -### Documentation - -* improved API comments ([d2b1aa9](https://www.github.com/googleapis/java-domains/commit/d2b1aa9245fadae117af62fb68b5fd4a17653ac0)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#144](https://www.github.com/googleapis/java-domains/issues/144)) ([813d887](https://www.github.com/googleapis/java-domains/commit/813d887370d705d41805bdb771bc29507f6cbb97)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#149](https://www.github.com/googleapis/java-domains/issues/149)) ([c4f54a4](https://www.github.com/googleapis/java-domains/commit/c4f54a44442f344dba5ea0072389b43342c8d63f)) - -### [0.4.2](https://www.github.com/googleapis/java-domains/compare/v0.4.1...v0.4.2) (2021-10-19) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#127](https://www.github.com/googleapis/java-domains/issues/127)) ([e3a77c7](https://www.github.com/googleapis/java-domains/commit/e3a77c7a6eee8da306ffedcace5bd1a551087070)) - -### [0.4.1](https://www.github.com/googleapis/java-domains/compare/v0.4.0...v0.4.1) (2021-09-22) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 ([#115](https://www.github.com/googleapis/java-domains/issues/115)) ([01d43b8](https://www.github.com/googleapis/java-domains/commit/01d43b820f521c984b012f19f04d0c176066dc78)) - -## [0.4.0](https://www.github.com/googleapis/java-domains/compare/v0.3.2...v0.4.0) (2021-09-14) - - -### Features - -* Remove use of deprecated gradle command in java README ([#1196](https://www.github.com/googleapis/java-domains/issues/1196)) ([#98](https://www.github.com/googleapis/java-domains/issues/98)) ([31f25c2](https://www.github.com/googleapis/java-domains/commit/31f25c2cc35be38e7fb77856fb560f66db3d7f22)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#101](https://www.github.com/googleapis/java-domains/issues/101)) ([e1cc274](https://www.github.com/googleapis/java-domains/commit/e1cc27446a6730d947339f09601509af5698e916)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 ([#110](https://www.github.com/googleapis/java-domains/issues/110)) ([f50b0a8](https://www.github.com/googleapis/java-domains/commit/f50b0a8647db6b8ee41902065d66966299983911)) - -### [0.3.2](https://www.github.com/googleapis/java-domains/compare/v0.3.1...v0.3.2) (2021-08-23) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 ([#92](https://www.github.com/googleapis/java-domains/issues/92)) ([f05b543](https://www.github.com/googleapis/java-domains/commit/f05b543f8e535ebc71d3be1d4c5b0762a4b3c3d2)) - -### [0.3.1](https://www.github.com/googleapis/java-domains/compare/v0.3.0...v0.3.1) (2021-08-12) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([#86](https://www.github.com/googleapis/java-domains/issues/86)) ([f0aa4eb](https://www.github.com/googleapis/java-domains/commit/f0aa4ebaaff8487dbdcfdf757a40f59650358312)) - -## [0.3.0](https://www.github.com/googleapis/java-domains/compare/v0.2.1...v0.3.0) (2021-08-06) - - -### ⚠ BREAKING CHANGES - -* release gapic-generator-java v2.0.0 (#81) - -### Features - -* add v1alpha2 client ([9273c0e](https://www.github.com/googleapis/java-domains/commit/9273c0e3ed57ba439ce19167a2e8dabf2fbce620)) -* release gapic-generator-java v2.0.0 ([#81](https://www.github.com/googleapis/java-domains/issues/81)) ([0d0f822](https://www.github.com/googleapis/java-domains/commit/0d0f822a517d4b506c379ac9e2637d14ecb10db1)) - - -### Bug Fixes - -* Add `shopt -s nullglob` to dependencies script ([#1130](https://www.github.com/googleapis/java-domains/issues/1130)) ([#62](https://www.github.com/googleapis/java-domains/issues/62)) ([9e8a91d](https://www.github.com/googleapis/java-domains/commit/9e8a91d221cc1eaf4805cfbc6b7c425c83f0fea5)) -* owlbot post-processor should generate README ([#1154](https://www.github.com/googleapis/java-domains/issues/1154)) ([#67](https://www.github.com/googleapis/java-domains/issues/67)) ([025fbaa](https://www.github.com/googleapis/java-domains/commit/025fbaa45da9bd835de1959aeb9c9b7b223252f5)), closes [#1146](https://www.github.com/googleapis/java-domains/issues/1146) [#1147](https://www.github.com/googleapis/java-domains/issues/1147) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 ([#63](https://www.github.com/googleapis/java-domains/issues/63)) ([5cb105d](https://www.github.com/googleapis/java-domains/commit/5cb105da21601d1a5071c89ae32506b7453aae57)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2 ([#82](https://www.github.com/googleapis/java-domains/issues/82)) ([42ac002](https://www.github.com/googleapis/java-domains/commit/42ac002a80fd3fe67ffce0a8643b79e9e0795bf2)) - -### [0.2.1](https://www.github.com/googleapis/java-domains/compare/v0.2.0...v0.2.1) (2021-06-09) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 ([#48](https://www.github.com/googleapis/java-domains/issues/48)) ([90b5323](https://www.github.com/googleapis/java-domains/commit/90b532320b60bd9264dbde81762ee074ed544c6b)) - -## [0.2.0](https://www.github.com/googleapis/java-domains/compare/v0.1.1...v0.2.0) (2021-05-26) - - -### Features - -* add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#39](https://www.github.com/googleapis/java-domains/issues/39)) ([9dab22f](https://www.github.com/googleapis/java-domains/commit/9dab22f650798b0c0452f8dcbd80d5813a1c9b19)) - - -### Bug Fixes - -* release scripts from issuing overlapping phases ([#24](https://www.github.com/googleapis/java-domains/issues/24)) ([e7d05f9](https://www.github.com/googleapis/java-domains/commit/e7d05f9d647cf89916b80a1a916fed391ff8c6e6)) -* typo ([#21](https://www.github.com/googleapis/java-domains/issues/21)) ([a083d64](https://www.github.com/googleapis/java-domains/commit/a083d64258b745643231be31614f6b6cfe55cdc0)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#25](https://www.github.com/googleapis/java-domains/issues/25)) ([08c9039](https://www.github.com/googleapis/java-domains/commit/08c9039c249ed7f49486df2bfb46ad7708a9d52e)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#29](https://www.github.com/googleapis/java-domains/issues/29)) ([9db5ce6](https://www.github.com/googleapis/java-domains/commit/9db5ce6d7d92d73604dd0450a187fbfa7e775416)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#35](https://www.github.com/googleapis/java-domains/issues/35)) ([8e11dbb](https://www.github.com/googleapis/java-domains/commit/8e11dbb85b464fe840daf5a96bf5f760238868a0)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#38](https://www.github.com/googleapis/java-domains/issues/38)) ([e083b4f](https://www.github.com/googleapis/java-domains/commit/e083b4fd2e90a817562df0b3e1e2b6d4e0c00aad)) - -### [0.1.1](https://www.github.com/googleapis/java-domains/compare/v0.1.0...v0.1.1) (2021-04-09) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#16](https://www.github.com/googleapis/java-domains/issues/16)) ([79128cf](https://www.github.com/googleapis/java-domains/commit/79128cf4f5d0e4ee5a49c5a15a8c3b7dce16508d)) - -## 0.1.0 (2021-03-15) - - -### Features - -* initial generation ([924b951](https://www.github.com/googleapis/java-domains/commit/924b951e3acacdb2b686f2fb02cd554bd837497c)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#4](https://www.github.com/googleapis/java-domains/issues/4)) ([4dc57a9](https://www.github.com/googleapis/java-domains/commit/4dc57a94401280607266689331f92dd33ed7022c)) 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-domains-bom/pom.xml b/google-cloud-domains-bom/pom.xml deleted file mode 100644 index 3c545528..00000000 --- a/google-cloud-domains-bom/pom.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-domains-bom - 1.0.7-SNAPSHOT - pom - - com.google.cloud - google-cloud-shared-config - 1.5.3 - - - Google Cloud Domains BOM - https://github.com/googleapis/java-domains - - BOM for Cloud Domains - - - - Google LLC - - - - - chingor13 - Jeff Ching - chingor@google.com - Google LLC - - Developer - - - - - - scm:git:https://github.com/googleapis/java-domains.git - scm:git:git@github.com:googleapis/java-domains.git - https://github.com/googleapis/java-domains - - - - true - - - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - com.google.cloud - google-cloud-domains - 1.0.7-SNAPSHOT - - - com.google.api.grpc - grpc-google-cloud-domains-v1beta1 - 0.8.7-SNAPSHOT - - - com.google.api.grpc - grpc-google-cloud-domains-v1alpha2 - 0.8.7-SNAPSHOT - - - com.google.api.grpc - grpc-google-cloud-domains-v1 - 1.0.7-SNAPSHOT - - - com.google.api.grpc - proto-google-cloud-domains-v1beta1 - 0.8.7-SNAPSHOT - - - com.google.api.grpc - proto-google-cloud-domains-v1alpha2 - 0.8.7-SNAPSHOT - - - com.google.api.grpc - proto-google-cloud-domains-v1 - 1.0.7-SNAPSHOT - - - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - - true - - - - - diff --git a/google-cloud-domains/pom.xml b/google-cloud-domains/pom.xml deleted file mode 100644 index 3a847d5b..00000000 --- a/google-cloud-domains/pom.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-domains - 1.0.7-SNAPSHOT - jar - Google Cloud Domains - https://github.com/googleapis/java-domains - allows you to register and manage domains by using Cloud Domains. - - com.google.cloud - google-cloud-domains-parent - 1.0.7-SNAPSHOT - - - google-cloud-domains - - - - 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-domains-v1 - - - com.google.api.grpc - proto-google-cloud-domains-v1alpha2 - - - com.google.api.grpc - proto-google-cloud-domains-v1beta1 - - - com.google.guava - guava - - - com.google.api - gax - - - com.google.api - gax-grpc - - - com.google.api - gax-httpjson - - - org.threeten - threetenbp - - - - - junit - junit - test - 4.13.2 - - - - com.google.api.grpc - grpc-google-cloud-domains-v1beta1 - test - - - com.google.api.grpc - grpc-google-cloud-domains-v1 - test - - - com.google.api.grpc - grpc-google-cloud-domains-v1alpha2 - test - - - - com.google.api - gax - testlib - test - - - com.google.api - gax-grpc - testlib - test - - - com.google.api - gax-httpjson - testlib - test - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsClient.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsClient.java deleted file mode 100644 index bc19c9a6..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsClient.java +++ /dev/null @@ -1,2910 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.httpjson.longrunning.OperationsClient; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.domains.v1.stub.DomainsStub; -import com.google.cloud.domains.v1.stub.DomainsStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.type.Money; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: The Cloud Domains API enables management and configuration of domain names. - * - *

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

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

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

To customize credentials: - * - *

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

To customize the endpoint: - * - *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class DomainsClient implements BackgroundResource { - private final DomainsSettings settings; - private final DomainsStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of DomainsClient with default settings. */ - public static final DomainsClient create() throws IOException { - return create(DomainsSettings.newBuilder().build()); - } - - /** - * Constructs an instance of DomainsClient, 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 DomainsClient create(DomainsSettings settings) throws IOException { - return new DomainsClient(settings); - } - - /** - * Constructs an instance of DomainsClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(DomainsSettings). - */ - public static final DomainsClient create(DomainsStub stub) { - return new DomainsClient(stub); - } - - /** - * Constructs an instance of DomainsClient, 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 DomainsClient(DomainsSettings settings) throws IOException { - this.settings = settings; - this.stub = ((DomainsStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected DomainsClient(DomainsStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final DomainsSettings getSettings() { - return settings; - } - - public DomainsStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches for available domain names similar to the provided query. - * - *

Availability results from this method are approximate; call `RetrieveRegisterParameters` on - * a domain before registering to confirm availability. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String query = "query107944136";
-   *   SearchDomainsResponse response = domainsClient.searchDomains(location, query);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param query Required. String used to search for available domain names. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SearchDomainsResponse searchDomains(LocationName location, String query) { - SearchDomainsRequest request = - SearchDomainsRequest.newBuilder() - .setLocation(location == null ? null : location.toString()) - .setQuery(query) - .build(); - return searchDomains(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches for available domain names similar to the provided query. - * - *

Availability results from this method are approximate; call `RetrieveRegisterParameters` on - * a domain before registering to confirm availability. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String location = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String query = "query107944136";
-   *   SearchDomainsResponse response = domainsClient.searchDomains(location, query);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param query Required. String used to search for available domain names. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SearchDomainsResponse searchDomains(String location, String query) { - SearchDomainsRequest request = - SearchDomainsRequest.newBuilder().setLocation(location).setQuery(query).build(); - return searchDomains(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches for available domain names similar to the provided query. - * - *

Availability results from this method are approximate; call `RetrieveRegisterParameters` on - * a domain before registering to confirm availability. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   SearchDomainsRequest request =
-   *       SearchDomainsRequest.newBuilder()
-   *           .setQuery("query107944136")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   SearchDomainsResponse response = domainsClient.searchDomains(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SearchDomainsResponse searchDomains(SearchDomainsRequest request) { - return searchDomainsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches for available domain names similar to the provided query. - * - *

Availability results from this method are approximate; call `RetrieveRegisterParameters` on - * a domain before registering to confirm availability. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   SearchDomainsRequest request =
-   *       SearchDomainsRequest.newBuilder()
-   *           .setQuery("query107944136")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.searchDomainsCallable().futureCall(request);
-   *   // Do something.
-   *   SearchDomainsResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable searchDomainsCallable() { - return stub.searchDomainsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to register a new domain name, including price and up-to-date - * availability. Use the returned values to call `RegisterDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String domainName = "domainName-1244085905";
-   *   RetrieveRegisterParametersResponse response =
-   *       domainsClient.retrieveRegisterParameters(location, domainName);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param domainName Required. The domain name. Unicode domain names must be expressed in Punycode - * format. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveRegisterParametersResponse retrieveRegisterParameters( - LocationName location, String domainName) { - RetrieveRegisterParametersRequest request = - RetrieveRegisterParametersRequest.newBuilder() - .setLocation(location == null ? null : location.toString()) - .setDomainName(domainName) - .build(); - return retrieveRegisterParameters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to register a new domain name, including price and up-to-date - * availability. Use the returned values to call `RegisterDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String location = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String domainName = "domainName-1244085905";
-   *   RetrieveRegisterParametersResponse response =
-   *       domainsClient.retrieveRegisterParameters(location, domainName);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param domainName Required. The domain name. Unicode domain names must be expressed in Punycode - * format. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveRegisterParametersResponse retrieveRegisterParameters( - String location, String domainName) { - RetrieveRegisterParametersRequest request = - RetrieveRegisterParametersRequest.newBuilder() - .setLocation(location) - .setDomainName(domainName) - .build(); - return retrieveRegisterParameters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to register a new domain name, including price and up-to-date - * availability. Use the returned values to call `RegisterDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveRegisterParametersRequest request =
-   *       RetrieveRegisterParametersRequest.newBuilder()
-   *           .setDomainName("domainName-1244085905")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   RetrieveRegisterParametersResponse response =
-   *       domainsClient.retrieveRegisterParameters(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveRegisterParametersResponse retrieveRegisterParameters( - RetrieveRegisterParametersRequest request) { - return retrieveRegisterParametersCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to register a new domain name, including price and up-to-date - * availability. Use the returned values to call `RegisterDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveRegisterParametersRequest request =
-   *       RetrieveRegisterParametersRequest.newBuilder()
-   *           .setDomainName("domainName-1244085905")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.retrieveRegisterParametersCallable().futureCall(request);
-   *   // Do something.
-   *   RetrieveRegisterParametersResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - retrieveRegisterParametersCallable() { - return stub.retrieveRegisterParametersCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Registers a new domain name and creates a corresponding `Registration` resource. - * - *

Call `RetrieveRegisterParameters` first to check availability of the domain name and - * determine parameters like price that are needed to build a call to this method. - * - *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which - * resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully - * registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the - * domain was not registered successfully, and you can safely delete the resource and retry - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Registration registration = Registration.newBuilder().build();
-   *   Money yearlyPrice = Money.newBuilder().build();
-   *   Registration response =
-   *       domainsClient.registerDomainAsync(parent, registration, yearlyPrice).get();
-   * }
-   * }
- * - * @param parent Required. The parent resource of the `Registration`. Must be in the format - * `projects/*/locations/*`. - * @param registration Required. The complete `Registration` resource to be created. - * @param yearlyPrice Required. Yearly price to register or renew the domain. The value that - * should be put here can be obtained from RetrieveRegisterParameters or SearchDomains calls. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture registerDomainAsync( - LocationName parent, Registration registration, Money yearlyPrice) { - RegisterDomainRequest request = - RegisterDomainRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setRegistration(registration) - .setYearlyPrice(yearlyPrice) - .build(); - return registerDomainAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Registers a new domain name and creates a corresponding `Registration` resource. - * - *

Call `RetrieveRegisterParameters` first to check availability of the domain name and - * determine parameters like price that are needed to build a call to this method. - * - *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which - * resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully - * registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the - * domain was not registered successfully, and you can safely delete the resource and retry - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Registration registration = Registration.newBuilder().build();
-   *   Money yearlyPrice = Money.newBuilder().build();
-   *   Registration response =
-   *       domainsClient.registerDomainAsync(parent, registration, yearlyPrice).get();
-   * }
-   * }
- * - * @param parent Required. The parent resource of the `Registration`. Must be in the format - * `projects/*/locations/*`. - * @param registration Required. The complete `Registration` resource to be created. - * @param yearlyPrice Required. Yearly price to register or renew the domain. The value that - * should be put here can be obtained from RetrieveRegisterParameters or SearchDomains calls. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture registerDomainAsync( - String parent, Registration registration, Money yearlyPrice) { - RegisterDomainRequest request = - RegisterDomainRequest.newBuilder() - .setParent(parent) - .setRegistration(registration) - .setYearlyPrice(yearlyPrice) - .build(); - return registerDomainAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Registers a new domain name and creates a corresponding `Registration` resource. - * - *

Call `RetrieveRegisterParameters` first to check availability of the domain name and - * determine parameters like price that are needed to build a call to this method. - * - *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which - * resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully - * registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the - * domain was not registered successfully, and you can safely delete the resource and retry - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegisterDomainRequest request =
-   *       RegisterDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllDomainNotices(new ArrayList())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   Registration response = domainsClient.registerDomainAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture registerDomainAsync( - RegisterDomainRequest request) { - return registerDomainOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Registers a new domain name and creates a corresponding `Registration` resource. - * - *

Call `RetrieveRegisterParameters` first to check availability of the domain name and - * determine parameters like price that are needed to build a call to this method. - * - *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which - * resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully - * registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the - * domain was not registered successfully, and you can safely delete the resource and retry - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegisterDomainRequest request =
-   *       RegisterDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllDomainNotices(new ArrayList())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.registerDomainOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - registerDomainOperationCallable() { - return stub.registerDomainOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Registers a new domain name and creates a corresponding `Registration` resource. - * - *

Call `RetrieveRegisterParameters` first to check availability of the domain name and - * determine parameters like price that are needed to build a call to this method. - * - *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which - * resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully - * registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the - * domain was not registered successfully, and you can safely delete the resource and retry - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegisterDomainRequest request =
-   *       RegisterDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllDomainNotices(new ArrayList())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future = domainsClient.registerDomainCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable registerDomainCallable() { - return stub.registerDomainCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For - * domains managed by Google Domains, transferring to Cloud Domains is not supported. - * - *

Use the returned values to call `TransferDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String domainName = "domainName-1244085905";
-   *   RetrieveTransferParametersResponse response =
-   *       domainsClient.retrieveTransferParameters(location, domainName);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param domainName Required. The domain name. Unicode domain names must be expressed in Punycode - * format. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveTransferParametersResponse retrieveTransferParameters( - LocationName location, String domainName) { - RetrieveTransferParametersRequest request = - RetrieveTransferParametersRequest.newBuilder() - .setLocation(location == null ? null : location.toString()) - .setDomainName(domainName) - .build(); - return retrieveTransferParameters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For - * domains managed by Google Domains, transferring to Cloud Domains is not supported. - * - *

Use the returned values to call `TransferDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String location = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String domainName = "domainName-1244085905";
-   *   RetrieveTransferParametersResponse response =
-   *       domainsClient.retrieveTransferParameters(location, domainName);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param domainName Required. The domain name. Unicode domain names must be expressed in Punycode - * format. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveTransferParametersResponse retrieveTransferParameters( - String location, String domainName) { - RetrieveTransferParametersRequest request = - RetrieveTransferParametersRequest.newBuilder() - .setLocation(location) - .setDomainName(domainName) - .build(); - return retrieveTransferParameters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For - * domains managed by Google Domains, transferring to Cloud Domains is not supported. - * - *

Use the returned values to call `TransferDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveTransferParametersRequest request =
-   *       RetrieveTransferParametersRequest.newBuilder()
-   *           .setDomainName("domainName-1244085905")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   RetrieveTransferParametersResponse response =
-   *       domainsClient.retrieveTransferParameters(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveTransferParametersResponse retrieveTransferParameters( - RetrieveTransferParametersRequest request) { - return retrieveTransferParametersCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For - * domains managed by Google Domains, transferring to Cloud Domains is not supported. - * - *

Use the returned values to call `TransferDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveTransferParametersRequest request =
-   *       RetrieveTransferParametersRequest.newBuilder()
-   *           .setDomainName("domainName-1244085905")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.retrieveTransferParametersCallable().futureCall(request);
-   *   // Do something.
-   *   RetrieveTransferParametersResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - retrieveTransferParametersCallable() { - return stub.retrieveTransferParametersCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google - * Domains, transferring to Cloud Domains is not supported. - * - *

Before calling this method, go to the domain's current registrar to unlock the domain for - * transfer and retrieve the domain's transfer authorization code. Then call - * `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to - * build a call to this method. - * - *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take - * several days to complete the transfer process. The registrant can often speed up this process - * by approving the transfer through the current registrar, either by clicking a link in an email - * from the registrar or by visiting the registrar's website. - * - *

A few minutes after transfer approval, the resource transitions to state `ACTIVE`, - * indicating that the transfer was successful. If the transfer is rejected or the request expires - * without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, - * you can safely delete the resource and retry the transfer. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Registration registration = Registration.newBuilder().build();
-   *   Money yearlyPrice = Money.newBuilder().build();
-   *   AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .transferDomainAsync(parent, registration, yearlyPrice, authorizationCode)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. The parent resource of the `Registration`. Must be in the format - * `projects/*/locations/*`. - * @param registration Required. The complete `Registration` resource to be created. - *

You can leave `registration.dns_settings` unset to import the domain's current DNS - * configuration from its current registrar. Use this option only if you are sure that the - * domain's current DNS service does not cease upon transfer, as is often the case for DNS - * services provided for free by the registrar. - * @param yearlyPrice Required. Acknowledgement of the price to transfer or renew the domain for - * one year. Call `RetrieveTransferParameters` to obtain the price, which you must - * acknowledge. - * @param authorizationCode The domain's transfer authorization code. You can obtain this from the - * domain's current registrar. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture transferDomainAsync( - LocationName parent, - Registration registration, - Money yearlyPrice, - AuthorizationCode authorizationCode) { - TransferDomainRequest request = - TransferDomainRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setRegistration(registration) - .setYearlyPrice(yearlyPrice) - .setAuthorizationCode(authorizationCode) - .build(); - return transferDomainAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google - * Domains, transferring to Cloud Domains is not supported. - * - *

Before calling this method, go to the domain's current registrar to unlock the domain for - * transfer and retrieve the domain's transfer authorization code. Then call - * `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to - * build a call to this method. - * - *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take - * several days to complete the transfer process. The registrant can often speed up this process - * by approving the transfer through the current registrar, either by clicking a link in an email - * from the registrar or by visiting the registrar's website. - * - *

A few minutes after transfer approval, the resource transitions to state `ACTIVE`, - * indicating that the transfer was successful. If the transfer is rejected or the request expires - * without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, - * you can safely delete the resource and retry the transfer. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Registration registration = Registration.newBuilder().build();
-   *   Money yearlyPrice = Money.newBuilder().build();
-   *   AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .transferDomainAsync(parent, registration, yearlyPrice, authorizationCode)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. The parent resource of the `Registration`. Must be in the format - * `projects/*/locations/*`. - * @param registration Required. The complete `Registration` resource to be created. - *

You can leave `registration.dns_settings` unset to import the domain's current DNS - * configuration from its current registrar. Use this option only if you are sure that the - * domain's current DNS service does not cease upon transfer, as is often the case for DNS - * services provided for free by the registrar. - * @param yearlyPrice Required. Acknowledgement of the price to transfer or renew the domain for - * one year. Call `RetrieveTransferParameters` to obtain the price, which you must - * acknowledge. - * @param authorizationCode The domain's transfer authorization code. You can obtain this from the - * domain's current registrar. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture transferDomainAsync( - String parent, - Registration registration, - Money yearlyPrice, - AuthorizationCode authorizationCode) { - TransferDomainRequest request = - TransferDomainRequest.newBuilder() - .setParent(parent) - .setRegistration(registration) - .setYearlyPrice(yearlyPrice) - .setAuthorizationCode(authorizationCode) - .build(); - return transferDomainAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google - * Domains, transferring to Cloud Domains is not supported. - * - *

Before calling this method, go to the domain's current registrar to unlock the domain for - * transfer and retrieve the domain's transfer authorization code. Then call - * `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to - * build a call to this method. - * - *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take - * several days to complete the transfer process. The registrant can often speed up this process - * by approving the transfer through the current registrar, either by clicking a link in an email - * from the registrar or by visiting the registrar's website. - * - *

A few minutes after transfer approval, the resource transitions to state `ACTIVE`, - * indicating that the transfer was successful. If the transfer is rejected or the request expires - * without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, - * you can safely delete the resource and retry the transfer. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   TransferDomainRequest request =
-   *       TransferDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setAuthorizationCode(AuthorizationCode.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   Registration response = domainsClient.transferDomainAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture transferDomainAsync( - TransferDomainRequest request) { - return transferDomainOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google - * Domains, transferring to Cloud Domains is not supported. - * - *

Before calling this method, go to the domain's current registrar to unlock the domain for - * transfer and retrieve the domain's transfer authorization code. Then call - * `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to - * build a call to this method. - * - *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take - * several days to complete the transfer process. The registrant can often speed up this process - * by approving the transfer through the current registrar, either by clicking a link in an email - * from the registrar or by visiting the registrar's website. - * - *

A few minutes after transfer approval, the resource transitions to state `ACTIVE`, - * indicating that the transfer was successful. If the transfer is rejected or the request expires - * without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, - * you can safely delete the resource and retry the transfer. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   TransferDomainRequest request =
-   *       TransferDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setAuthorizationCode(AuthorizationCode.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.transferDomainOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - transferDomainOperationCallable() { - return stub.transferDomainOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google - * Domains, transferring to Cloud Domains is not supported. - * - *

Before calling this method, go to the domain's current registrar to unlock the domain for - * transfer and retrieve the domain's transfer authorization code. Then call - * `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to - * build a call to this method. - * - *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take - * several days to complete the transfer process. The registrant can often speed up this process - * by approving the transfer through the current registrar, either by clicking a link in an email - * from the registrar or by visiting the registrar's website. - * - *

A few minutes after transfer approval, the resource transitions to state `ACTIVE`, - * indicating that the transfer was successful. If the transfer is rejected or the request expires - * without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, - * you can safely delete the resource and retry the transfer. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   TransferDomainRequest request =
-   *       TransferDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setAuthorizationCode(AuthorizationCode.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future = domainsClient.transferDomainCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable transferDomainCallable() { - return stub.transferDomainCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the `Registration` resources in a project. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ListRegistrationsRequest request =
-   *       ListRegistrationsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   for (Registration element : domainsClient.listRegistrations(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 ListRegistrationsPagedResponse listRegistrations(ListRegistrationsRequest request) { - return listRegistrationsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the `Registration` resources in a project. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   GetRegistrationRequest request =
-   *       GetRegistrationRequest.newBuilder()
-   *           .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   ApiFuture future = domainsClient.getRegistrationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getRegistrationCallable() { - return stub.getRegistrationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates select fields of a `Registration` resource, notably `labels`. To update other fields, - * use the appropriate custom update method: - * - *
    - *
  • To update management settings, see `ConfigureManagementSettings` - *
  • To update DNS configuration, see `ConfigureDnsSettings` - *
  • To update contact information, see `ConfigureContactSettings` - *
- * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   Registration registration = Registration.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response = domainsClient.updateRegistrationAsync(registration, updateMask).get();
-   * }
-   * }
- * - * @param registration Fields of the `Registration` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the labels are being updated, the `update_mask` - * is `"labels"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateRegistrationAsync( - Registration registration, FieldMask updateMask) { - UpdateRegistrationRequest request = - UpdateRegistrationRequest.newBuilder() - .setRegistration(registration) - .setUpdateMask(updateMask) - .build(); - return updateRegistrationAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates select fields of a `Registration` resource, notably `labels`. To update other fields, - * use the appropriate custom update method: - * - *
    - *
  • To update management settings, see `ConfigureManagementSettings` - *
  • To update DNS configuration, see `ConfigureDnsSettings` - *
  • To update contact information, see `ConfigureContactSettings` - *
- * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   UpdateRegistrationRequest request =
-   *       UpdateRegistrationRequest.newBuilder()
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Registration response = domainsClient.updateRegistrationAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateRegistrationAsync( - UpdateRegistrationRequest request) { - return updateRegistrationOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates select fields of a `Registration` resource, notably `labels`. To update other fields, - * use the appropriate custom update method: - * - *
    - *
  • To update management settings, see `ConfigureManagementSettings` - *
  • To update DNS configuration, see `ConfigureDnsSettings` - *
  • To update contact information, see `ConfigureContactSettings` - *
- * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   UpdateRegistrationRequest request =
-   *       UpdateRegistrationRequest.newBuilder()
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.updateRegistrationOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - updateRegistrationOperationCallable() { - return stub.updateRegistrationOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates select fields of a `Registration` resource, notably `labels`. To update other fields, - * use the appropriate custom update method: - * - *
    - *
  • To update management settings, see `ConfigureManagementSettings` - *
  • To update DNS configuration, see `ConfigureDnsSettings` - *
  • To update contact information, see `ConfigureContactSettings` - *
- * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   UpdateRegistrationRequest request =
-   *       UpdateRegistrationRequest.newBuilder()
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = domainsClient.updateRegistrationCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateRegistrationCallable() { - return stub.updateRegistrationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s management settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   ManagementSettings managementSettings = ManagementSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .configureManagementSettingsAsync(registration, managementSettings, updateMask)
-   *           .get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose management settings are - * being updated, in the format `projects/*/locations/*/registrations/*`. - * @param managementSettings Fields of the `ManagementSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the transfer lock is being updated, the - * `update_mask` is `"transfer_lock_state"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureManagementSettingsAsync( - RegistrationName registration, ManagementSettings managementSettings, FieldMask updateMask) { - ConfigureManagementSettingsRequest request = - ConfigureManagementSettingsRequest.newBuilder() - .setRegistration(registration == null ? null : registration.toString()) - .setManagementSettings(managementSettings) - .setUpdateMask(updateMask) - .build(); - return configureManagementSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s management settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   ManagementSettings managementSettings = ManagementSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .configureManagementSettingsAsync(registration, managementSettings, updateMask)
-   *           .get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose management settings are - * being updated, in the format `projects/*/locations/*/registrations/*`. - * @param managementSettings Fields of the `ManagementSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the transfer lock is being updated, the - * `update_mask` is `"transfer_lock_state"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureManagementSettingsAsync( - String registration, ManagementSettings managementSettings, FieldMask updateMask) { - ConfigureManagementSettingsRequest request = - ConfigureManagementSettingsRequest.newBuilder() - .setRegistration(registration) - .setManagementSettings(managementSettings) - .setUpdateMask(updateMask) - .build(); - return configureManagementSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s management settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureManagementSettingsRequest request =
-   *       ConfigureManagementSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setManagementSettings(ManagementSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Registration response = domainsClient.configureManagementSettingsAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureManagementSettingsAsync( - ConfigureManagementSettingsRequest request) { - return configureManagementSettingsOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s management settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureManagementSettingsRequest request =
-   *       ConfigureManagementSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setManagementSettings(ManagementSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.configureManagementSettingsOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationCallable() { - return stub.configureManagementSettingsOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s management settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureManagementSettingsRequest request =
-   *       ConfigureManagementSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setManagementSettings(ManagementSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.configureManagementSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - configureManagementSettingsCallable() { - return stub.configureManagementSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s DNS settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   DnsSettings dnsSettings = DnsSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose DNS settings are being - * updated, in the format `projects/*/locations/*/registrations/*`. - * @param dnsSettings Fields of the `DnsSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the name servers are being updated for an - * existing Custom DNS configuration, the `update_mask` is `"custom_dns.name_servers"`. - *

When changing the DNS provider from one type to another, pass the new provider's field - * name as part of the field mask. For example, when changing from a Google Domains DNS - * configuration to a Custom DNS configuration, the `update_mask` is `"custom_dns"`. // - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureDnsSettingsAsync( - RegistrationName registration, DnsSettings dnsSettings, FieldMask updateMask) { - ConfigureDnsSettingsRequest request = - ConfigureDnsSettingsRequest.newBuilder() - .setRegistration(registration == null ? null : registration.toString()) - .setDnsSettings(dnsSettings) - .setUpdateMask(updateMask) - .build(); - return configureDnsSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s DNS settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   DnsSettings dnsSettings = DnsSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose DNS settings are being - * updated, in the format `projects/*/locations/*/registrations/*`. - * @param dnsSettings Fields of the `DnsSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the name servers are being updated for an - * existing Custom DNS configuration, the `update_mask` is `"custom_dns.name_servers"`. - *

When changing the DNS provider from one type to another, pass the new provider's field - * name as part of the field mask. For example, when changing from a Google Domains DNS - * configuration to a Custom DNS configuration, the `update_mask` is `"custom_dns"`. // - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureDnsSettingsAsync( - String registration, DnsSettings dnsSettings, FieldMask updateMask) { - ConfigureDnsSettingsRequest request = - ConfigureDnsSettingsRequest.newBuilder() - .setRegistration(registration) - .setDnsSettings(dnsSettings) - .setUpdateMask(updateMask) - .build(); - return configureDnsSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s DNS settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureDnsSettingsRequest request =
-   *       ConfigureDnsSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setDnsSettings(DnsSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   Registration response = domainsClient.configureDnsSettingsAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureDnsSettingsAsync( - ConfigureDnsSettingsRequest request) { - return configureDnsSettingsOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s DNS settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureDnsSettingsRequest request =
-   *       ConfigureDnsSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setDnsSettings(DnsSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.configureDnsSettingsOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - configureDnsSettingsOperationCallable() { - return stub.configureDnsSettingsOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s DNS settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureDnsSettingsRequest request =
-   *       ConfigureDnsSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setDnsSettings(DnsSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.configureDnsSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - configureDnsSettingsCallable() { - return stub.configureDnsSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's - * registrant contact . - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   ContactSettings contactSettings = ContactSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .configureContactSettingsAsync(registration, contactSettings, updateMask)
-   *           .get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose contact settings are being - * updated, in the format `projects/*/locations/*/registrations/*`. - * @param contactSettings Fields of the `ContactSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the registrant contact is being updated, the - * `update_mask` is `"registrant_contact"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureContactSettingsAsync( - RegistrationName registration, ContactSettings contactSettings, FieldMask updateMask) { - ConfigureContactSettingsRequest request = - ConfigureContactSettingsRequest.newBuilder() - .setRegistration(registration == null ? null : registration.toString()) - .setContactSettings(contactSettings) - .setUpdateMask(updateMask) - .build(); - return configureContactSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's - * registrant contact . - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   ContactSettings contactSettings = ContactSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .configureContactSettingsAsync(registration, contactSettings, updateMask)
-   *           .get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose contact settings are being - * updated, in the format `projects/*/locations/*/registrations/*`. - * @param contactSettings Fields of the `ContactSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the registrant contact is being updated, the - * `update_mask` is `"registrant_contact"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureContactSettingsAsync( - String registration, ContactSettings contactSettings, FieldMask updateMask) { - ConfigureContactSettingsRequest request = - ConfigureContactSettingsRequest.newBuilder() - .setRegistration(registration) - .setContactSettings(contactSettings) - .setUpdateMask(updateMask) - .build(); - return configureContactSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's - * registrant contact . - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureContactSettingsRequest request =
-   *       ConfigureContactSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setContactSettings(ContactSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   Registration response = domainsClient.configureContactSettingsAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureContactSettingsAsync( - ConfigureContactSettingsRequest request) { - return configureContactSettingsOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's - * registrant contact . - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureContactSettingsRequest request =
-   *       ConfigureContactSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setContactSettings(ContactSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.configureContactSettingsOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - configureContactSettingsOperationCallable() { - return stub.configureContactSettingsOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's - * registrant contact . - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureContactSettingsRequest request =
-   *       ConfigureContactSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setContactSettings(ContactSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.configureContactSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - configureContactSettingsCallable() { - return stub.configureContactSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. - * - *

When an active domain is successfully exported, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   Registration response = domainsClient.exportRegistrationAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the `Registration` to export, in the format - * `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture exportRegistrationAsync( - RegistrationName name) { - ExportRegistrationRequest request = - ExportRegistrationRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return exportRegistrationAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. - * - *

When an active domain is successfully exported, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   Registration response = domainsClient.exportRegistrationAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the `Registration` to export, in the format - * `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture exportRegistrationAsync( - String name) { - ExportRegistrationRequest request = - ExportRegistrationRequest.newBuilder().setName(name).build(); - return exportRegistrationAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. - * - *

When an active domain is successfully exported, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ExportRegistrationRequest request =
-   *       ExportRegistrationRequest.newBuilder()
-   *           .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   Registration response = domainsClient.exportRegistrationAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture exportRegistrationAsync( - ExportRegistrationRequest request) { - return exportRegistrationOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. - * - *

When an active domain is successfully exported, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ExportRegistrationRequest request =
-   *       ExportRegistrationRequest.newBuilder()
-   *           .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.exportRegistrationOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - exportRegistrationOperationCallable() { - return stub.exportRegistrationOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. - * - *

When an active domain is successfully exported, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

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

This method works on any `Registration` resource using [Subscription or Commitment - * billing](/domains/pricing#billing-models), provided that the resource was created at least 1 - * day in the past. - * - *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this - * method works if: - * - *

    - *
  • `state` is `EXPORTED` with `expire_time` in the past - *
  • `state` is `REGISTRATION_FAILED` - *
  • `state` is `TRANSFER_FAILED` - *
- * - *

When an active registration is successfully deleted, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

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

This method works on any `Registration` resource using [Subscription or Commitment - * billing](/domains/pricing#billing-models), provided that the resource was created at least 1 - * day in the past. - * - *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this - * method works if: - * - *

    - *
  • `state` is `EXPORTED` with `expire_time` in the past - *
  • `state` is `REGISTRATION_FAILED` - *
  • `state` is `TRANSFER_FAILED` - *
- * - *

When an active registration is successfully deleted, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

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

This method works on any `Registration` resource using [Subscription or Commitment - * billing](/domains/pricing#billing-models), provided that the resource was created at least 1 - * day in the past. - * - *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this - * method works if: - * - *

    - *
  • `state` is `EXPORTED` with `expire_time` in the past - *
  • `state` is `REGISTRATION_FAILED` - *
  • `state` is `TRANSFER_FAILED` - *
- * - *

When an active registration is successfully deleted, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

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

This method works on any `Registration` resource using [Subscription or Commitment - * billing](/domains/pricing#billing-models), provided that the resource was created at least 1 - * day in the past. - * - *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this - * method works if: - * - *

    - *
  • `state` is `EXPORTED` with `expire_time` in the past - *
  • `state` is `REGISTRATION_FAILED` - *
  • `state` is `TRANSFER_FAILED` - *
- * - *

When an active registration is successfully deleted, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

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

This method works on any `Registration` resource using [Subscription or Commitment - * billing](/domains/pricing#billing-models), provided that the resource was created at least 1 - * day in the past. - * - *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this - * method works if: - * - *

    - *
  • `state` is `EXPORTED` with `expire_time` in the past - *
  • `state` is `REGISTRATION_FAILED` - *
  • `state` is `TRANSFER_FAILED` - *
- * - *

When an active registration is successfully deleted, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   DeleteRegistrationRequest request =
-   *       DeleteRegistrationRequest.newBuilder()
-   *           .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   ApiFuture future = domainsClient.deleteRegistrationCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteRegistrationCallable() { - return stub.deleteRegistrationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the authorization code of the `Registration` for the purpose of transferring the domain to - * another registrar. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   AuthorizationCode response = domainsClient.retrieveAuthorizationCode(registration);
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose authorization code is being - * retrieved, in the format `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode retrieveAuthorizationCode(RegistrationName registration) { - RetrieveAuthorizationCodeRequest request = - RetrieveAuthorizationCodeRequest.newBuilder() - .setRegistration(registration == null ? null : registration.toString()) - .build(); - return retrieveAuthorizationCode(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the authorization code of the `Registration` for the purpose of transferring the domain to - * another registrar. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   AuthorizationCode response = domainsClient.retrieveAuthorizationCode(registration);
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose authorization code is being - * retrieved, in the format `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode retrieveAuthorizationCode(String registration) { - RetrieveAuthorizationCodeRequest request = - RetrieveAuthorizationCodeRequest.newBuilder().setRegistration(registration).build(); - return retrieveAuthorizationCode(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the authorization code of the `Registration` for the purpose of transferring the domain to - * another registrar. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveAuthorizationCodeRequest request =
-   *       RetrieveAuthorizationCodeRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   AuthorizationCode response = domainsClient.retrieveAuthorizationCode(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode retrieveAuthorizationCode( - RetrieveAuthorizationCodeRequest request) { - return retrieveAuthorizationCodeCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the authorization code of the `Registration` for the purpose of transferring the domain to - * another registrar. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveAuthorizationCodeRequest request =
-   *       RetrieveAuthorizationCodeRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.retrieveAuthorizationCodeCallable().futureCall(request);
-   *   // Do something.
-   *   AuthorizationCode response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - retrieveAuthorizationCodeCallable() { - return stub.retrieveAuthorizationCodeCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resets the authorization code of the `Registration` to a new random string. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   AuthorizationCode response = domainsClient.resetAuthorizationCode(registration);
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose authorization code is being - * reset, in the format `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode resetAuthorizationCode(RegistrationName registration) { - ResetAuthorizationCodeRequest request = - ResetAuthorizationCodeRequest.newBuilder() - .setRegistration(registration == null ? null : registration.toString()) - .build(); - return resetAuthorizationCode(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resets the authorization code of the `Registration` to a new random string. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   AuthorizationCode response = domainsClient.resetAuthorizationCode(registration);
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose authorization code is being - * reset, in the format `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode resetAuthorizationCode(String registration) { - ResetAuthorizationCodeRequest request = - ResetAuthorizationCodeRequest.newBuilder().setRegistration(registration).build(); - return resetAuthorizationCode(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resets the authorization code of the `Registration` to a new random string. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ResetAuthorizationCodeRequest request =
-   *       ResetAuthorizationCodeRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   AuthorizationCode response = domainsClient.resetAuthorizationCode(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode resetAuthorizationCode(ResetAuthorizationCodeRequest request) { - return resetAuthorizationCodeCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resets the authorization code of the `Registration` to a new random string. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ResetAuthorizationCodeRequest request =
-   *       ResetAuthorizationCodeRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.resetAuthorizationCodeCallable().futureCall(request);
-   *   // Do something.
-   *   AuthorizationCode response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - resetAuthorizationCodeCallable() { - return stub.resetAuthorizationCodeCallable(); - } - - @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 ListRegistrationsPagedResponse - extends AbstractPagedListResponse< - ListRegistrationsRequest, - ListRegistrationsResponse, - Registration, - ListRegistrationsPage, - ListRegistrationsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListRegistrationsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListRegistrationsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListRegistrationsPagedResponse(ListRegistrationsPage page) { - super(page, ListRegistrationsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListRegistrationsPage - extends AbstractPage< - ListRegistrationsRequest, - ListRegistrationsResponse, - Registration, - ListRegistrationsPage> { - - private ListRegistrationsPage( - PageContext context, - ListRegistrationsResponse response) { - super(context, response); - } - - private static ListRegistrationsPage createEmptyPage() { - return new ListRegistrationsPage(null, null); - } - - @Override - protected ListRegistrationsPage createPage( - PageContext context, - ListRegistrationsResponse response) { - return new ListRegistrationsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListRegistrationsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListRegistrationsRequest, - ListRegistrationsResponse, - Registration, - ListRegistrationsPage, - ListRegistrationsFixedSizeCollection> { - - private ListRegistrationsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListRegistrationsFixedSizeCollection createEmptyCollection() { - return new ListRegistrationsFixedSizeCollection(null, 0); - } - - @Override - protected ListRegistrationsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListRegistrationsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsSettings.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsSettings.java deleted file mode 100644 index 7c48da40..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsSettings.java +++ /dev/null @@ -1,469 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1; - -import static com.google.cloud.domains.v1.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.domains.v1.stub.DomainsStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link DomainsClient}. - * - *

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

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

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DomainsSettings.Builder domainsSettingsBuilder = DomainsSettings.newBuilder();
- * domainsSettingsBuilder
- *     .searchDomainsSettings()
- *     .setRetrySettings(
- *         domainsSettingsBuilder.searchDomainsSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * DomainsSettings domainsSettings = domainsSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class DomainsSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to searchDomains. */ - public UnaryCallSettings searchDomainsSettings() { - return ((DomainsStubSettings) getStubSettings()).searchDomainsSettings(); - } - - /** Returns the object with the settings used for calls to retrieveRegisterParameters. */ - public UnaryCallSettings - retrieveRegisterParametersSettings() { - return ((DomainsStubSettings) getStubSettings()).retrieveRegisterParametersSettings(); - } - - /** Returns the object with the settings used for calls to registerDomain. */ - public UnaryCallSettings registerDomainSettings() { - return ((DomainsStubSettings) getStubSettings()).registerDomainSettings(); - } - - /** Returns the object with the settings used for calls to registerDomain. */ - public OperationCallSettings - registerDomainOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).registerDomainOperationSettings(); - } - - /** Returns the object with the settings used for calls to retrieveTransferParameters. */ - public UnaryCallSettings - retrieveTransferParametersSettings() { - return ((DomainsStubSettings) getStubSettings()).retrieveTransferParametersSettings(); - } - - /** Returns the object with the settings used for calls to transferDomain. */ - public UnaryCallSettings transferDomainSettings() { - return ((DomainsStubSettings) getStubSettings()).transferDomainSettings(); - } - - /** Returns the object with the settings used for calls to transferDomain. */ - public OperationCallSettings - transferDomainOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).transferDomainOperationSettings(); - } - - /** Returns the object with the settings used for calls to listRegistrations. */ - public PagedCallSettings< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings() { - return ((DomainsStubSettings) getStubSettings()).listRegistrationsSettings(); - } - - /** Returns the object with the settings used for calls to getRegistration. */ - public UnaryCallSettings getRegistrationSettings() { - return ((DomainsStubSettings) getStubSettings()).getRegistrationSettings(); - } - - /** Returns the object with the settings used for calls to updateRegistration. */ - public UnaryCallSettings updateRegistrationSettings() { - return ((DomainsStubSettings) getStubSettings()).updateRegistrationSettings(); - } - - /** Returns the object with the settings used for calls to updateRegistration. */ - public OperationCallSettings - updateRegistrationOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).updateRegistrationOperationSettings(); - } - - /** Returns the object with the settings used for calls to configureManagementSettings. */ - public UnaryCallSettings - configureManagementSettingsSettings() { - return ((DomainsStubSettings) getStubSettings()).configureManagementSettingsSettings(); - } - - /** Returns the object with the settings used for calls to configureManagementSettings. */ - public OperationCallSettings - configureManagementSettingsOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).configureManagementSettingsOperationSettings(); - } - - /** Returns the object with the settings used for calls to configureDnsSettings. */ - public UnaryCallSettings configureDnsSettingsSettings() { - return ((DomainsStubSettings) getStubSettings()).configureDnsSettingsSettings(); - } - - /** Returns the object with the settings used for calls to configureDnsSettings. */ - public OperationCallSettings - configureDnsSettingsOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).configureDnsSettingsOperationSettings(); - } - - /** Returns the object with the settings used for calls to configureContactSettings. */ - public UnaryCallSettings - configureContactSettingsSettings() { - return ((DomainsStubSettings) getStubSettings()).configureContactSettingsSettings(); - } - - /** Returns the object with the settings used for calls to configureContactSettings. */ - public OperationCallSettings - configureContactSettingsOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).configureContactSettingsOperationSettings(); - } - - /** Returns the object with the settings used for calls to exportRegistration. */ - public UnaryCallSettings exportRegistrationSettings() { - return ((DomainsStubSettings) getStubSettings()).exportRegistrationSettings(); - } - - /** Returns the object with the settings used for calls to exportRegistration. */ - public OperationCallSettings - exportRegistrationOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).exportRegistrationOperationSettings(); - } - - /** Returns the object with the settings used for calls to deleteRegistration. */ - public UnaryCallSettings deleteRegistrationSettings() { - return ((DomainsStubSettings) getStubSettings()).deleteRegistrationSettings(); - } - - /** Returns the object with the settings used for calls to deleteRegistration. */ - public OperationCallSettings - deleteRegistrationOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).deleteRegistrationOperationSettings(); - } - - /** Returns the object with the settings used for calls to retrieveAuthorizationCode. */ - public UnaryCallSettings - retrieveAuthorizationCodeSettings() { - return ((DomainsStubSettings) getStubSettings()).retrieveAuthorizationCodeSettings(); - } - - /** Returns the object with the settings used for calls to resetAuthorizationCode. */ - public UnaryCallSettings - resetAuthorizationCodeSettings() { - return ((DomainsStubSettings) getStubSettings()).resetAuthorizationCodeSettings(); - } - - public static final DomainsSettings create(DomainsStubSettings stub) throws IOException { - return new DomainsSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return DomainsStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return DomainsStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DomainsStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return DomainsStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return DomainsStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return DomainsStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return DomainsStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DomainsStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected DomainsSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for DomainsSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(DomainsStubSettings.newBuilder(clientContext)); - } - - protected Builder(DomainsSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(DomainsStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(DomainsStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(DomainsStubSettings.newHttpJsonBuilder()); - } - - public DomainsStubSettings.Builder getStubSettingsBuilder() { - return ((DomainsStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to searchDomains. */ - public UnaryCallSettings.Builder - searchDomainsSettings() { - return getStubSettingsBuilder().searchDomainsSettings(); - } - - /** Returns the builder for the settings used for calls to retrieveRegisterParameters. */ - public UnaryCallSettings.Builder< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersSettings() { - return getStubSettingsBuilder().retrieveRegisterParametersSettings(); - } - - /** Returns the builder for the settings used for calls to registerDomain. */ - public UnaryCallSettings.Builder registerDomainSettings() { - return getStubSettingsBuilder().registerDomainSettings(); - } - - /** Returns the builder for the settings used for calls to registerDomain. */ - public OperationCallSettings.Builder - registerDomainOperationSettings() { - return getStubSettingsBuilder().registerDomainOperationSettings(); - } - - /** Returns the builder for the settings used for calls to retrieveTransferParameters. */ - public UnaryCallSettings.Builder< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersSettings() { - return getStubSettingsBuilder().retrieveTransferParametersSettings(); - } - - /** Returns the builder for the settings used for calls to transferDomain. */ - public UnaryCallSettings.Builder transferDomainSettings() { - return getStubSettingsBuilder().transferDomainSettings(); - } - - /** Returns the builder for the settings used for calls to transferDomain. */ - public OperationCallSettings.Builder - transferDomainOperationSettings() { - return getStubSettingsBuilder().transferDomainOperationSettings(); - } - - /** Returns the builder for the settings used for calls to listRegistrations. */ - public PagedCallSettings.Builder< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings() { - return getStubSettingsBuilder().listRegistrationsSettings(); - } - - /** Returns the builder for the settings used for calls to getRegistration. */ - public UnaryCallSettings.Builder - getRegistrationSettings() { - return getStubSettingsBuilder().getRegistrationSettings(); - } - - /** Returns the builder for the settings used for calls to updateRegistration. */ - public UnaryCallSettings.Builder - updateRegistrationSettings() { - return getStubSettingsBuilder().updateRegistrationSettings(); - } - - /** Returns the builder for the settings used for calls to updateRegistration. */ - public OperationCallSettings.Builder - updateRegistrationOperationSettings() { - return getStubSettingsBuilder().updateRegistrationOperationSettings(); - } - - /** Returns the builder for the settings used for calls to configureManagementSettings. */ - public UnaryCallSettings.Builder - configureManagementSettingsSettings() { - return getStubSettingsBuilder().configureManagementSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to configureManagementSettings. */ - public OperationCallSettings.Builder< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationSettings() { - return getStubSettingsBuilder().configureManagementSettingsOperationSettings(); - } - - /** Returns the builder for the settings used for calls to configureDnsSettings. */ - public UnaryCallSettings.Builder - configureDnsSettingsSettings() { - return getStubSettingsBuilder().configureDnsSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to configureDnsSettings. */ - public OperationCallSettings.Builder< - ConfigureDnsSettingsRequest, Registration, OperationMetadata> - configureDnsSettingsOperationSettings() { - return getStubSettingsBuilder().configureDnsSettingsOperationSettings(); - } - - /** Returns the builder for the settings used for calls to configureContactSettings. */ - public UnaryCallSettings.Builder - configureContactSettingsSettings() { - return getStubSettingsBuilder().configureContactSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to configureContactSettings. */ - public OperationCallSettings.Builder< - ConfigureContactSettingsRequest, Registration, OperationMetadata> - configureContactSettingsOperationSettings() { - return getStubSettingsBuilder().configureContactSettingsOperationSettings(); - } - - /** Returns the builder for the settings used for calls to exportRegistration. */ - public UnaryCallSettings.Builder - exportRegistrationSettings() { - return getStubSettingsBuilder().exportRegistrationSettings(); - } - - /** Returns the builder for the settings used for calls to exportRegistration. */ - public OperationCallSettings.Builder - exportRegistrationOperationSettings() { - return getStubSettingsBuilder().exportRegistrationOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteRegistration. */ - public UnaryCallSettings.Builder - deleteRegistrationSettings() { - return getStubSettingsBuilder().deleteRegistrationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteRegistration. */ - public OperationCallSettings.Builder - deleteRegistrationOperationSettings() { - return getStubSettingsBuilder().deleteRegistrationOperationSettings(); - } - - /** Returns the builder for the settings used for calls to retrieveAuthorizationCode. */ - public UnaryCallSettings.Builder - retrieveAuthorizationCodeSettings() { - return getStubSettingsBuilder().retrieveAuthorizationCodeSettings(); - } - - /** Returns the builder for the settings used for calls to resetAuthorizationCode. */ - public UnaryCallSettings.Builder - resetAuthorizationCodeSettings() { - return getStubSettingsBuilder().resetAuthorizationCodeSettings(); - } - - @Override - public DomainsSettings build() throws IOException { - return new DomainsSettings(this); - } - } -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/gapic_metadata.json b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/gapic_metadata.json deleted file mode 100644 index f84d1a64..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/gapic_metadata.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.domains.v1", - "libraryPackage": "com.google.cloud.domains.v1", - "services": { - "Domains": { - "clients": { - "grpc": { - "libraryClient": "DomainsClient", - "rpcs": { - "ConfigureContactSettings": { - "methods": ["configureContactSettingsAsync", "configureContactSettingsAsync", "configureContactSettingsAsync", "configureContactSettingsOperationCallable", "configureContactSettingsCallable"] - }, - "ConfigureDnsSettings": { - "methods": ["configureDnsSettingsAsync", "configureDnsSettingsAsync", "configureDnsSettingsAsync", "configureDnsSettingsOperationCallable", "configureDnsSettingsCallable"] - }, - "ConfigureManagementSettings": { - "methods": ["configureManagementSettingsAsync", "configureManagementSettingsAsync", "configureManagementSettingsAsync", "configureManagementSettingsOperationCallable", "configureManagementSettingsCallable"] - }, - "DeleteRegistration": { - "methods": ["deleteRegistrationAsync", "deleteRegistrationAsync", "deleteRegistrationAsync", "deleteRegistrationOperationCallable", "deleteRegistrationCallable"] - }, - "ExportRegistration": { - "methods": ["exportRegistrationAsync", "exportRegistrationAsync", "exportRegistrationAsync", "exportRegistrationOperationCallable", "exportRegistrationCallable"] - }, - "GetRegistration": { - "methods": ["getRegistration", "getRegistration", "getRegistration", "getRegistrationCallable"] - }, - "ListRegistrations": { - "methods": ["listRegistrations", "listRegistrations", "listRegistrations", "listRegistrationsPagedCallable", "listRegistrationsCallable"] - }, - "RegisterDomain": { - "methods": ["registerDomainAsync", "registerDomainAsync", "registerDomainAsync", "registerDomainOperationCallable", "registerDomainCallable"] - }, - "ResetAuthorizationCode": { - "methods": ["resetAuthorizationCode", "resetAuthorizationCode", "resetAuthorizationCode", "resetAuthorizationCodeCallable"] - }, - "RetrieveAuthorizationCode": { - "methods": ["retrieveAuthorizationCode", "retrieveAuthorizationCode", "retrieveAuthorizationCode", "retrieveAuthorizationCodeCallable"] - }, - "RetrieveRegisterParameters": { - "methods": ["retrieveRegisterParameters", "retrieveRegisterParameters", "retrieveRegisterParameters", "retrieveRegisterParametersCallable"] - }, - "RetrieveTransferParameters": { - "methods": ["retrieveTransferParameters", "retrieveTransferParameters", "retrieveTransferParameters", "retrieveTransferParametersCallable"] - }, - "SearchDomains": { - "methods": ["searchDomains", "searchDomains", "searchDomains", "searchDomainsCallable"] - }, - "TransferDomain": { - "methods": ["transferDomainAsync", "transferDomainAsync", "transferDomainAsync", "transferDomainOperationCallable", "transferDomainCallable"] - }, - "UpdateRegistration": { - "methods": ["updateRegistrationAsync", "updateRegistrationAsync", "updateRegistrationOperationCallable", "updateRegistrationCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/package-info.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/package-info.java deleted file mode 100644 index f55cb7c6..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/package-info.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * A client to Cloud Domains API - * - *

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

======================= DomainsClient ======================= - * - *

Service Description: The Cloud Domains API enables management and configuration of domain - * names. - * - *

Sample for DomainsClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (DomainsClient domainsClient = DomainsClient.create()) {
- *   LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
- *   String query = "query107944136";
- *   SearchDomainsResponse response = domainsClient.searchDomains(location, query);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.domains.v1; - -import javax.annotation.Generated; diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStub.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStub.java deleted file mode 100644 index bda9889c..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStub.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.stub; - -import static com.google.cloud.domains.v1.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.domains.v1.AuthorizationCode; -import com.google.cloud.domains.v1.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1.DeleteRegistrationRequest; -import com.google.cloud.domains.v1.ExportRegistrationRequest; -import com.google.cloud.domains.v1.GetRegistrationRequest; -import com.google.cloud.domains.v1.ListRegistrationsRequest; -import com.google.cloud.domains.v1.ListRegistrationsResponse; -import com.google.cloud.domains.v1.OperationMetadata; -import com.google.cloud.domains.v1.RegisterDomainRequest; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.ResetAuthorizationCodeRequest; -import com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest; -import com.google.cloud.domains.v1.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1.RetrieveRegisterParametersResponse; -import com.google.cloud.domains.v1.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1.RetrieveTransferParametersResponse; -import com.google.cloud.domains.v1.SearchDomainsRequest; -import com.google.cloud.domains.v1.SearchDomainsResponse; -import com.google.cloud.domains.v1.TransferDomainRequest; -import com.google.cloud.domains.v1.UpdateRegistrationRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the Domains service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class DomainsStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - return null; - } - - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { - return null; - } - - public UnaryCallable searchDomainsCallable() { - throw new UnsupportedOperationException("Not implemented: searchDomainsCallable()"); - } - - public UnaryCallable - retrieveRegisterParametersCallable() { - throw new UnsupportedOperationException( - "Not implemented: retrieveRegisterParametersCallable()"); - } - - public OperationCallable - registerDomainOperationCallable() { - throw new UnsupportedOperationException("Not implemented: registerDomainOperationCallable()"); - } - - public UnaryCallable registerDomainCallable() { - throw new UnsupportedOperationException("Not implemented: registerDomainCallable()"); - } - - public UnaryCallable - retrieveTransferParametersCallable() { - throw new UnsupportedOperationException( - "Not implemented: retrieveTransferParametersCallable()"); - } - - public OperationCallable - transferDomainOperationCallable() { - throw new UnsupportedOperationException("Not implemented: transferDomainOperationCallable()"); - } - - public UnaryCallable transferDomainCallable() { - throw new UnsupportedOperationException("Not implemented: transferDomainCallable()"); - } - - public UnaryCallable - listRegistrationsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listRegistrationsPagedCallable()"); - } - - public UnaryCallable - listRegistrationsCallable() { - throw new UnsupportedOperationException("Not implemented: listRegistrationsCallable()"); - } - - public UnaryCallable getRegistrationCallable() { - throw new UnsupportedOperationException("Not implemented: getRegistrationCallable()"); - } - - public OperationCallable - updateRegistrationOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateRegistrationOperationCallable()"); - } - - public UnaryCallable updateRegistrationCallable() { - throw new UnsupportedOperationException("Not implemented: updateRegistrationCallable()"); - } - - public OperationCallable - configureManagementSettingsOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: configureManagementSettingsOperationCallable()"); - } - - public UnaryCallable - configureManagementSettingsCallable() { - throw new UnsupportedOperationException( - "Not implemented: configureManagementSettingsCallable()"); - } - - public OperationCallable - configureDnsSettingsOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: configureDnsSettingsOperationCallable()"); - } - - public UnaryCallable configureDnsSettingsCallable() { - throw new UnsupportedOperationException("Not implemented: configureDnsSettingsCallable()"); - } - - public OperationCallable - configureContactSettingsOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: configureContactSettingsOperationCallable()"); - } - - public UnaryCallable - configureContactSettingsCallable() { - throw new UnsupportedOperationException("Not implemented: configureContactSettingsCallable()"); - } - - public OperationCallable - exportRegistrationOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: exportRegistrationOperationCallable()"); - } - - public UnaryCallable exportRegistrationCallable() { - throw new UnsupportedOperationException("Not implemented: exportRegistrationCallable()"); - } - - public OperationCallable - deleteRegistrationOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteRegistrationOperationCallable()"); - } - - public UnaryCallable deleteRegistrationCallable() { - throw new UnsupportedOperationException("Not implemented: deleteRegistrationCallable()"); - } - - public UnaryCallable - retrieveAuthorizationCodeCallable() { - throw new UnsupportedOperationException("Not implemented: retrieveAuthorizationCodeCallable()"); - } - - public UnaryCallable - resetAuthorizationCodeCallable() { - throw new UnsupportedOperationException("Not implemented: resetAuthorizationCodeCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java deleted file mode 100644 index a5cee80e..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java +++ /dev/null @@ -1,1157 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.stub; - -import static com.google.cloud.domains.v1.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.domains.v1.AuthorizationCode; -import com.google.cloud.domains.v1.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1.DeleteRegistrationRequest; -import com.google.cloud.domains.v1.ExportRegistrationRequest; -import com.google.cloud.domains.v1.GetRegistrationRequest; -import com.google.cloud.domains.v1.ListRegistrationsRequest; -import com.google.cloud.domains.v1.ListRegistrationsResponse; -import com.google.cloud.domains.v1.OperationMetadata; -import com.google.cloud.domains.v1.RegisterDomainRequest; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.ResetAuthorizationCodeRequest; -import com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest; -import com.google.cloud.domains.v1.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1.RetrieveRegisterParametersResponse; -import com.google.cloud.domains.v1.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1.RetrieveTransferParametersResponse; -import com.google.cloud.domains.v1.SearchDomainsRequest; -import com.google.cloud.domains.v1.SearchDomainsResponse; -import com.google.cloud.domains.v1.TransferDomainRequest; -import com.google.cloud.domains.v1.UpdateRegistrationRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link DomainsStub}. - * - *

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

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

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DomainsStubSettings.Builder domainsSettingsBuilder = DomainsStubSettings.newBuilder();
- * domainsSettingsBuilder
- *     .searchDomainsSettings()
- *     .setRetrySettings(
- *         domainsSettingsBuilder.searchDomainsSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * DomainsStubSettings domainsSettings = domainsSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class DomainsStubSettings 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 - searchDomainsSettings; - private final UnaryCallSettings< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersSettings; - private final UnaryCallSettings registerDomainSettings; - private final OperationCallSettings - registerDomainOperationSettings; - private final UnaryCallSettings< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersSettings; - private final UnaryCallSettings transferDomainSettings; - private final OperationCallSettings - transferDomainOperationSettings; - private final PagedCallSettings< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings; - private final UnaryCallSettings getRegistrationSettings; - private final UnaryCallSettings updateRegistrationSettings; - private final OperationCallSettings - updateRegistrationOperationSettings; - private final UnaryCallSettings - configureManagementSettingsSettings; - private final OperationCallSettings< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationSettings; - private final UnaryCallSettings - configureDnsSettingsSettings; - private final OperationCallSettings - configureDnsSettingsOperationSettings; - private final UnaryCallSettings - configureContactSettingsSettings; - private final OperationCallSettings< - ConfigureContactSettingsRequest, Registration, OperationMetadata> - configureContactSettingsOperationSettings; - private final UnaryCallSettings exportRegistrationSettings; - private final OperationCallSettings - exportRegistrationOperationSettings; - private final UnaryCallSettings deleteRegistrationSettings; - private final OperationCallSettings - deleteRegistrationOperationSettings; - private final UnaryCallSettings - retrieveAuthorizationCodeSettings; - private final UnaryCallSettings - resetAuthorizationCodeSettings; - - private static final PagedListDescriptor< - ListRegistrationsRequest, ListRegistrationsResponse, Registration> - LIST_REGISTRATIONS_PAGE_STR_DESC = - new PagedListDescriptor< - ListRegistrationsRequest, ListRegistrationsResponse, Registration>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListRegistrationsRequest injectToken( - ListRegistrationsRequest payload, String token) { - return ListRegistrationsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListRegistrationsRequest injectPageSize( - ListRegistrationsRequest payload, int pageSize) { - return ListRegistrationsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListRegistrationsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListRegistrationsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListRegistrationsResponse payload) { - return payload.getRegistrationsList() == null - ? ImmutableList.of() - : payload.getRegistrationsList(); - } - }; - - private static final PagedListResponseFactory< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - LIST_REGISTRATIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListRegistrationsRequest, - ListRegistrationsResponse, - ListRegistrationsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListRegistrationsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_REGISTRATIONS_PAGE_STR_DESC, request, context); - return ListRegistrationsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to searchDomains. */ - public UnaryCallSettings searchDomainsSettings() { - return searchDomainsSettings; - } - - /** Returns the object with the settings used for calls to retrieveRegisterParameters. */ - public UnaryCallSettings - retrieveRegisterParametersSettings() { - return retrieveRegisterParametersSettings; - } - - /** Returns the object with the settings used for calls to registerDomain. */ - public UnaryCallSettings registerDomainSettings() { - return registerDomainSettings; - } - - /** Returns the object with the settings used for calls to registerDomain. */ - public OperationCallSettings - registerDomainOperationSettings() { - return registerDomainOperationSettings; - } - - /** Returns the object with the settings used for calls to retrieveTransferParameters. */ - public UnaryCallSettings - retrieveTransferParametersSettings() { - return retrieveTransferParametersSettings; - } - - /** Returns the object with the settings used for calls to transferDomain. */ - public UnaryCallSettings transferDomainSettings() { - return transferDomainSettings; - } - - /** Returns the object with the settings used for calls to transferDomain. */ - public OperationCallSettings - transferDomainOperationSettings() { - return transferDomainOperationSettings; - } - - /** Returns the object with the settings used for calls to listRegistrations. */ - public PagedCallSettings< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings() { - return listRegistrationsSettings; - } - - /** Returns the object with the settings used for calls to getRegistration. */ - public UnaryCallSettings getRegistrationSettings() { - return getRegistrationSettings; - } - - /** Returns the object with the settings used for calls to updateRegistration. */ - public UnaryCallSettings updateRegistrationSettings() { - return updateRegistrationSettings; - } - - /** Returns the object with the settings used for calls to updateRegistration. */ - public OperationCallSettings - updateRegistrationOperationSettings() { - return updateRegistrationOperationSettings; - } - - /** Returns the object with the settings used for calls to configureManagementSettings. */ - public UnaryCallSettings - configureManagementSettingsSettings() { - return configureManagementSettingsSettings; - } - - /** Returns the object with the settings used for calls to configureManagementSettings. */ - public OperationCallSettings - configureManagementSettingsOperationSettings() { - return configureManagementSettingsOperationSettings; - } - - /** Returns the object with the settings used for calls to configureDnsSettings. */ - public UnaryCallSettings configureDnsSettingsSettings() { - return configureDnsSettingsSettings; - } - - /** Returns the object with the settings used for calls to configureDnsSettings. */ - public OperationCallSettings - configureDnsSettingsOperationSettings() { - return configureDnsSettingsOperationSettings; - } - - /** Returns the object with the settings used for calls to configureContactSettings. */ - public UnaryCallSettings - configureContactSettingsSettings() { - return configureContactSettingsSettings; - } - - /** Returns the object with the settings used for calls to configureContactSettings. */ - public OperationCallSettings - configureContactSettingsOperationSettings() { - return configureContactSettingsOperationSettings; - } - - /** Returns the object with the settings used for calls to exportRegistration. */ - public UnaryCallSettings exportRegistrationSettings() { - return exportRegistrationSettings; - } - - /** Returns the object with the settings used for calls to exportRegistration. */ - public OperationCallSettings - exportRegistrationOperationSettings() { - return exportRegistrationOperationSettings; - } - - /** Returns the object with the settings used for calls to deleteRegistration. */ - public UnaryCallSettings deleteRegistrationSettings() { - return deleteRegistrationSettings; - } - - /** Returns the object with the settings used for calls to deleteRegistration. */ - public OperationCallSettings - deleteRegistrationOperationSettings() { - return deleteRegistrationOperationSettings; - } - - /** Returns the object with the settings used for calls to retrieveAuthorizationCode. */ - public UnaryCallSettings - retrieveAuthorizationCodeSettings() { - return retrieveAuthorizationCodeSettings; - } - - /** Returns the object with the settings used for calls to resetAuthorizationCode. */ - public UnaryCallSettings - resetAuthorizationCodeSettings() { - return resetAuthorizationCodeSettings; - } - - public DomainsStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcDomainsStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonDomainsStub.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 "domains.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "domains.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(DomainsStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(DomainsStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DomainsStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected DomainsStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - searchDomainsSettings = settingsBuilder.searchDomainsSettings().build(); - retrieveRegisterParametersSettings = - settingsBuilder.retrieveRegisterParametersSettings().build(); - registerDomainSettings = settingsBuilder.registerDomainSettings().build(); - registerDomainOperationSettings = settingsBuilder.registerDomainOperationSettings().build(); - retrieveTransferParametersSettings = - settingsBuilder.retrieveTransferParametersSettings().build(); - transferDomainSettings = settingsBuilder.transferDomainSettings().build(); - transferDomainOperationSettings = settingsBuilder.transferDomainOperationSettings().build(); - listRegistrationsSettings = settingsBuilder.listRegistrationsSettings().build(); - getRegistrationSettings = settingsBuilder.getRegistrationSettings().build(); - updateRegistrationSettings = settingsBuilder.updateRegistrationSettings().build(); - updateRegistrationOperationSettings = - settingsBuilder.updateRegistrationOperationSettings().build(); - configureManagementSettingsSettings = - settingsBuilder.configureManagementSettingsSettings().build(); - configureManagementSettingsOperationSettings = - settingsBuilder.configureManagementSettingsOperationSettings().build(); - configureDnsSettingsSettings = settingsBuilder.configureDnsSettingsSettings().build(); - configureDnsSettingsOperationSettings = - settingsBuilder.configureDnsSettingsOperationSettings().build(); - configureContactSettingsSettings = settingsBuilder.configureContactSettingsSettings().build(); - configureContactSettingsOperationSettings = - settingsBuilder.configureContactSettingsOperationSettings().build(); - exportRegistrationSettings = settingsBuilder.exportRegistrationSettings().build(); - exportRegistrationOperationSettings = - settingsBuilder.exportRegistrationOperationSettings().build(); - deleteRegistrationSettings = settingsBuilder.deleteRegistrationSettings().build(); - deleteRegistrationOperationSettings = - settingsBuilder.deleteRegistrationOperationSettings().build(); - retrieveAuthorizationCodeSettings = settingsBuilder.retrieveAuthorizationCodeSettings().build(); - resetAuthorizationCodeSettings = settingsBuilder.resetAuthorizationCodeSettings().build(); - } - - /** Builder for DomainsStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - searchDomainsSettings; - private final UnaryCallSettings.Builder< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersSettings; - private final UnaryCallSettings.Builder - registerDomainSettings; - private final OperationCallSettings.Builder< - RegisterDomainRequest, Registration, OperationMetadata> - registerDomainOperationSettings; - private final UnaryCallSettings.Builder< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersSettings; - private final UnaryCallSettings.Builder - transferDomainSettings; - private final OperationCallSettings.Builder< - TransferDomainRequest, Registration, OperationMetadata> - transferDomainOperationSettings; - private final PagedCallSettings.Builder< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings; - private final UnaryCallSettings.Builder - getRegistrationSettings; - private final UnaryCallSettings.Builder - updateRegistrationSettings; - private final OperationCallSettings.Builder< - UpdateRegistrationRequest, Registration, OperationMetadata> - updateRegistrationOperationSettings; - private final UnaryCallSettings.Builder - configureManagementSettingsSettings; - private final OperationCallSettings.Builder< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationSettings; - private final UnaryCallSettings.Builder - configureDnsSettingsSettings; - private final OperationCallSettings.Builder< - ConfigureDnsSettingsRequest, Registration, OperationMetadata> - configureDnsSettingsOperationSettings; - private final UnaryCallSettings.Builder - configureContactSettingsSettings; - private final OperationCallSettings.Builder< - ConfigureContactSettingsRequest, Registration, OperationMetadata> - configureContactSettingsOperationSettings; - private final UnaryCallSettings.Builder - exportRegistrationSettings; - private final OperationCallSettings.Builder< - ExportRegistrationRequest, Registration, OperationMetadata> - exportRegistrationOperationSettings; - private final UnaryCallSettings.Builder - deleteRegistrationSettings; - private final OperationCallSettings.Builder - deleteRegistrationOperationSettings; - private final UnaryCallSettings.Builder - retrieveAuthorizationCodeSettings; - private final UnaryCallSettings.Builder - resetAuthorizationCodeSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - searchDomainsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - retrieveRegisterParametersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - registerDomainSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - registerDomainOperationSettings = OperationCallSettings.newBuilder(); - retrieveTransferParametersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - transferDomainSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - transferDomainOperationSettings = OperationCallSettings.newBuilder(); - listRegistrationsSettings = PagedCallSettings.newBuilder(LIST_REGISTRATIONS_PAGE_STR_FACT); - getRegistrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateRegistrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateRegistrationOperationSettings = OperationCallSettings.newBuilder(); - configureManagementSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - configureManagementSettingsOperationSettings = OperationCallSettings.newBuilder(); - configureDnsSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - configureDnsSettingsOperationSettings = OperationCallSettings.newBuilder(); - configureContactSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - configureContactSettingsOperationSettings = OperationCallSettings.newBuilder(); - exportRegistrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - exportRegistrationOperationSettings = OperationCallSettings.newBuilder(); - deleteRegistrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteRegistrationOperationSettings = OperationCallSettings.newBuilder(); - retrieveAuthorizationCodeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - resetAuthorizationCodeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - searchDomainsSettings, - retrieveRegisterParametersSettings, - registerDomainSettings, - retrieveTransferParametersSettings, - transferDomainSettings, - listRegistrationsSettings, - getRegistrationSettings, - updateRegistrationSettings, - configureManagementSettingsSettings, - configureDnsSettingsSettings, - configureContactSettingsSettings, - exportRegistrationSettings, - deleteRegistrationSettings, - retrieveAuthorizationCodeSettings, - resetAuthorizationCodeSettings); - initDefaults(this); - } - - protected Builder(DomainsStubSettings settings) { - super(settings); - - searchDomainsSettings = settings.searchDomainsSettings.toBuilder(); - retrieveRegisterParametersSettings = settings.retrieveRegisterParametersSettings.toBuilder(); - registerDomainSettings = settings.registerDomainSettings.toBuilder(); - registerDomainOperationSettings = settings.registerDomainOperationSettings.toBuilder(); - retrieveTransferParametersSettings = settings.retrieveTransferParametersSettings.toBuilder(); - transferDomainSettings = settings.transferDomainSettings.toBuilder(); - transferDomainOperationSettings = settings.transferDomainOperationSettings.toBuilder(); - listRegistrationsSettings = settings.listRegistrationsSettings.toBuilder(); - getRegistrationSettings = settings.getRegistrationSettings.toBuilder(); - updateRegistrationSettings = settings.updateRegistrationSettings.toBuilder(); - updateRegistrationOperationSettings = - settings.updateRegistrationOperationSettings.toBuilder(); - configureManagementSettingsSettings = - settings.configureManagementSettingsSettings.toBuilder(); - configureManagementSettingsOperationSettings = - settings.configureManagementSettingsOperationSettings.toBuilder(); - configureDnsSettingsSettings = settings.configureDnsSettingsSettings.toBuilder(); - configureDnsSettingsOperationSettings = - settings.configureDnsSettingsOperationSettings.toBuilder(); - configureContactSettingsSettings = settings.configureContactSettingsSettings.toBuilder(); - configureContactSettingsOperationSettings = - settings.configureContactSettingsOperationSettings.toBuilder(); - exportRegistrationSettings = settings.exportRegistrationSettings.toBuilder(); - exportRegistrationOperationSettings = - settings.exportRegistrationOperationSettings.toBuilder(); - deleteRegistrationSettings = settings.deleteRegistrationSettings.toBuilder(); - deleteRegistrationOperationSettings = - settings.deleteRegistrationOperationSettings.toBuilder(); - retrieveAuthorizationCodeSettings = settings.retrieveAuthorizationCodeSettings.toBuilder(); - resetAuthorizationCodeSettings = settings.resetAuthorizationCodeSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - searchDomainsSettings, - retrieveRegisterParametersSettings, - registerDomainSettings, - retrieveTransferParametersSettings, - transferDomainSettings, - listRegistrationsSettings, - getRegistrationSettings, - updateRegistrationSettings, - configureManagementSettingsSettings, - configureDnsSettingsSettings, - configureContactSettingsSettings, - exportRegistrationSettings, - deleteRegistrationSettings, - retrieveAuthorizationCodeSettings, - resetAuthorizationCodeSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .searchDomainsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .retrieveRegisterParametersSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .registerDomainSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .retrieveTransferParametersSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .transferDomainSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .listRegistrationsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .getRegistrationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .updateRegistrationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .configureManagementSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .configureDnsSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .configureContactSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .exportRegistrationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .deleteRegistrationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .retrieveAuthorizationCodeSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .resetAuthorizationCodeSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .registerDomainOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .transferDomainOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .updateRegistrationOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .configureManagementSettingsOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .configureDnsSettingsOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .configureContactSettingsOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .exportRegistrationOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .deleteRegistrationOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to searchDomains. */ - public UnaryCallSettings.Builder - searchDomainsSettings() { - return searchDomainsSettings; - } - - /** Returns the builder for the settings used for calls to retrieveRegisterParameters. */ - public UnaryCallSettings.Builder< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersSettings() { - return retrieveRegisterParametersSettings; - } - - /** Returns the builder for the settings used for calls to registerDomain. */ - public UnaryCallSettings.Builder registerDomainSettings() { - return registerDomainSettings; - } - - /** Returns the builder for the settings used for calls to registerDomain. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - registerDomainOperationSettings() { - return registerDomainOperationSettings; - } - - /** Returns the builder for the settings used for calls to retrieveTransferParameters. */ - public UnaryCallSettings.Builder< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersSettings() { - return retrieveTransferParametersSettings; - } - - /** Returns the builder for the settings used for calls to transferDomain. */ - public UnaryCallSettings.Builder transferDomainSettings() { - return transferDomainSettings; - } - - /** Returns the builder for the settings used for calls to transferDomain. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - transferDomainOperationSettings() { - return transferDomainOperationSettings; - } - - /** Returns the builder for the settings used for calls to listRegistrations. */ - public PagedCallSettings.Builder< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings() { - return listRegistrationsSettings; - } - - /** Returns the builder for the settings used for calls to getRegistration. */ - public UnaryCallSettings.Builder - getRegistrationSettings() { - return getRegistrationSettings; - } - - /** Returns the builder for the settings used for calls to updateRegistration. */ - public UnaryCallSettings.Builder - updateRegistrationSettings() { - return updateRegistrationSettings; - } - - /** Returns the builder for the settings used for calls to updateRegistration. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - updateRegistrationOperationSettings() { - return updateRegistrationOperationSettings; - } - - /** Returns the builder for the settings used for calls to configureManagementSettings. */ - public UnaryCallSettings.Builder - configureManagementSettingsSettings() { - return configureManagementSettingsSettings; - } - - /** Returns the builder for the settings used for calls to configureManagementSettings. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationSettings() { - return configureManagementSettingsOperationSettings; - } - - /** Returns the builder for the settings used for calls to configureDnsSettings. */ - public UnaryCallSettings.Builder - configureDnsSettingsSettings() { - return configureDnsSettingsSettings; - } - - /** Returns the builder for the settings used for calls to configureDnsSettings. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - ConfigureDnsSettingsRequest, Registration, OperationMetadata> - configureDnsSettingsOperationSettings() { - return configureDnsSettingsOperationSettings; - } - - /** Returns the builder for the settings used for calls to configureContactSettings. */ - public UnaryCallSettings.Builder - configureContactSettingsSettings() { - return configureContactSettingsSettings; - } - - /** Returns the builder for the settings used for calls to configureContactSettings. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - ConfigureContactSettingsRequest, Registration, OperationMetadata> - configureContactSettingsOperationSettings() { - return configureContactSettingsOperationSettings; - } - - /** Returns the builder for the settings used for calls to exportRegistration. */ - public UnaryCallSettings.Builder - exportRegistrationSettings() { - return exportRegistrationSettings; - } - - /** Returns the builder for the settings used for calls to exportRegistration. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - exportRegistrationOperationSettings() { - return exportRegistrationOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteRegistration. */ - public UnaryCallSettings.Builder - deleteRegistrationSettings() { - return deleteRegistrationSettings; - } - - /** Returns the builder for the settings used for calls to deleteRegistration. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteRegistrationOperationSettings() { - return deleteRegistrationOperationSettings; - } - - /** Returns the builder for the settings used for calls to retrieveAuthorizationCode. */ - public UnaryCallSettings.Builder - retrieveAuthorizationCodeSettings() { - return retrieveAuthorizationCodeSettings; - } - - /** Returns the builder for the settings used for calls to resetAuthorizationCode. */ - public UnaryCallSettings.Builder - resetAuthorizationCodeSettings() { - return resetAuthorizationCodeSettings; - } - - @Override - public DomainsStubSettings build() throws IOException { - return new DomainsStubSettings(this); - } - } -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/GrpcDomainsCallableFactory.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/GrpcDomainsCallableFactory.java deleted file mode 100644 index d1f23d98..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/GrpcDomainsCallableFactory.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.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 Domains service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcDomainsCallableFactory 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-domains/src/main/java/com/google/cloud/domains/v1/stub/GrpcDomainsStub.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/GrpcDomainsStub.java deleted file mode 100644 index 0c0deccc..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/GrpcDomainsStub.java +++ /dev/null @@ -1,768 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.stub; - -import static com.google.cloud.domains.v1.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.domains.v1.AuthorizationCode; -import com.google.cloud.domains.v1.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1.DeleteRegistrationRequest; -import com.google.cloud.domains.v1.ExportRegistrationRequest; -import com.google.cloud.domains.v1.GetRegistrationRequest; -import com.google.cloud.domains.v1.ListRegistrationsRequest; -import com.google.cloud.domains.v1.ListRegistrationsResponse; -import com.google.cloud.domains.v1.OperationMetadata; -import com.google.cloud.domains.v1.RegisterDomainRequest; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.ResetAuthorizationCodeRequest; -import com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest; -import com.google.cloud.domains.v1.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1.RetrieveRegisterParametersResponse; -import com.google.cloud.domains.v1.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1.RetrieveTransferParametersResponse; -import com.google.cloud.domains.v1.SearchDomainsRequest; -import com.google.cloud.domains.v1.SearchDomainsResponse; -import com.google.cloud.domains.v1.TransferDomainRequest; -import com.google.cloud.domains.v1.UpdateRegistrationRequest; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the Domains service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcDomainsStub extends DomainsStub { - private static final MethodDescriptor - searchDomainsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1.Domains/SearchDomains") - .setRequestMarshaller( - ProtoUtils.marshaller(SearchDomainsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(SearchDomainsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1.Domains/RetrieveRegisterParameters") - .setRequestMarshaller( - ProtoUtils.marshaller(RetrieveRegisterParametersRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(RetrieveRegisterParametersResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - registerDomainMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1.Domains/RegisterDomain") - .setRequestMarshaller( - ProtoUtils.marshaller(RegisterDomainRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1.Domains/RetrieveTransferParameters") - .setRequestMarshaller( - ProtoUtils.marshaller(RetrieveTransferParametersRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(RetrieveTransferParametersResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - transferDomainMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1.Domains/TransferDomain") - .setRequestMarshaller( - ProtoUtils.marshaller(TransferDomainRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listRegistrationsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1.Domains/ListRegistrations") - .setRequestMarshaller( - ProtoUtils.marshaller(ListRegistrationsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListRegistrationsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getRegistrationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1.Domains/GetRegistration") - .setRequestMarshaller( - ProtoUtils.marshaller(GetRegistrationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Registration.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateRegistrationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1.Domains/UpdateRegistration") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateRegistrationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - configureManagementSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1.Domains/ConfigureManagementSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(ConfigureManagementSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - configureDnsSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1.Domains/ConfigureDnsSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(ConfigureDnsSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - configureContactSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1.Domains/ConfigureContactSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(ConfigureContactSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - exportRegistrationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1.Domains/ExportRegistration") - .setRequestMarshaller( - ProtoUtils.marshaller(ExportRegistrationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteRegistrationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1.Domains/DeleteRegistration") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteRegistrationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - retrieveAuthorizationCodeMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1.Domains/RetrieveAuthorizationCode") - .setRequestMarshaller( - ProtoUtils.marshaller(RetrieveAuthorizationCodeRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AuthorizationCode.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - resetAuthorizationCodeMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1.Domains/ResetAuthorizationCode") - .setRequestMarshaller( - ProtoUtils.marshaller(ResetAuthorizationCodeRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AuthorizationCode.getDefaultInstance())) - .build(); - - private final UnaryCallable searchDomainsCallable; - private final UnaryCallable - retrieveRegisterParametersCallable; - private final UnaryCallable registerDomainCallable; - private final OperationCallable - registerDomainOperationCallable; - private final UnaryCallable - retrieveTransferParametersCallable; - private final UnaryCallable transferDomainCallable; - private final OperationCallable - transferDomainOperationCallable; - private final UnaryCallable - listRegistrationsCallable; - private final UnaryCallable - listRegistrationsPagedCallable; - private final UnaryCallable getRegistrationCallable; - private final UnaryCallable updateRegistrationCallable; - private final OperationCallable - updateRegistrationOperationCallable; - private final UnaryCallable - configureManagementSettingsCallable; - private final OperationCallable< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationCallable; - private final UnaryCallable configureDnsSettingsCallable; - private final OperationCallable - configureDnsSettingsOperationCallable; - private final UnaryCallable - configureContactSettingsCallable; - private final OperationCallable - configureContactSettingsOperationCallable; - private final UnaryCallable exportRegistrationCallable; - private final OperationCallable - exportRegistrationOperationCallable; - private final UnaryCallable deleteRegistrationCallable; - private final OperationCallable - deleteRegistrationOperationCallable; - private final UnaryCallable - retrieveAuthorizationCodeCallable; - private final UnaryCallable - resetAuthorizationCodeCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcDomainsStub create(DomainsStubSettings settings) throws IOException { - return new GrpcDomainsStub(settings, ClientContext.create(settings)); - } - - public static final GrpcDomainsStub create(ClientContext clientContext) throws IOException { - return new GrpcDomainsStub(DomainsStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcDomainsStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcDomainsStub( - DomainsStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcDomainsStub, 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 GrpcDomainsStub(DomainsStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcDomainsCallableFactory()); - } - - /** - * Constructs an instance of GrpcDomainsStub, 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 GrpcDomainsStub( - DomainsStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings searchDomainsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(searchDomainsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("location", String.valueOf(request.getLocation())); - return params.build(); - }) - .build(); - GrpcCallSettings - retrieveRegisterParametersTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(retrieveRegisterParametersMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("location", String.valueOf(request.getLocation())); - return params.build(); - }) - .build(); - GrpcCallSettings registerDomainTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(registerDomainMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - retrieveTransferParametersTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(retrieveTransferParametersMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("location", String.valueOf(request.getLocation())); - return params.build(); - }) - .build(); - GrpcCallSettings transferDomainTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(transferDomainMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - listRegistrationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listRegistrationsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getRegistrationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getRegistrationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings updateRegistrationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateRegistrationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "registration.name", String.valueOf(request.getRegistration().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - configureManagementSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(configureManagementSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("registration", String.valueOf(request.getRegistration())); - return params.build(); - }) - .build(); - GrpcCallSettings configureDnsSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(configureDnsSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("registration", String.valueOf(request.getRegistration())); - return params.build(); - }) - .build(); - GrpcCallSettings - configureContactSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(configureContactSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("registration", String.valueOf(request.getRegistration())); - return params.build(); - }) - .build(); - GrpcCallSettings exportRegistrationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(exportRegistrationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteRegistrationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteRegistrationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - retrieveAuthorizationCodeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(retrieveAuthorizationCodeMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("registration", String.valueOf(request.getRegistration())); - return params.build(); - }) - .build(); - GrpcCallSettings - resetAuthorizationCodeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(resetAuthorizationCodeMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("registration", String.valueOf(request.getRegistration())); - return params.build(); - }) - .build(); - - this.searchDomainsCallable = - callableFactory.createUnaryCallable( - searchDomainsTransportSettings, settings.searchDomainsSettings(), clientContext); - this.retrieveRegisterParametersCallable = - callableFactory.createUnaryCallable( - retrieveRegisterParametersTransportSettings, - settings.retrieveRegisterParametersSettings(), - clientContext); - this.registerDomainCallable = - callableFactory.createUnaryCallable( - registerDomainTransportSettings, settings.registerDomainSettings(), clientContext); - this.registerDomainOperationCallable = - callableFactory.createOperationCallable( - registerDomainTransportSettings, - settings.registerDomainOperationSettings(), - clientContext, - operationsStub); - this.retrieveTransferParametersCallable = - callableFactory.createUnaryCallable( - retrieveTransferParametersTransportSettings, - settings.retrieveTransferParametersSettings(), - clientContext); - this.transferDomainCallable = - callableFactory.createUnaryCallable( - transferDomainTransportSettings, settings.transferDomainSettings(), clientContext); - this.transferDomainOperationCallable = - callableFactory.createOperationCallable( - transferDomainTransportSettings, - settings.transferDomainOperationSettings(), - clientContext, - operationsStub); - this.listRegistrationsCallable = - callableFactory.createUnaryCallable( - listRegistrationsTransportSettings, - settings.listRegistrationsSettings(), - clientContext); - this.listRegistrationsPagedCallable = - callableFactory.createPagedCallable( - listRegistrationsTransportSettings, - settings.listRegistrationsSettings(), - clientContext); - this.getRegistrationCallable = - callableFactory.createUnaryCallable( - getRegistrationTransportSettings, settings.getRegistrationSettings(), clientContext); - this.updateRegistrationCallable = - callableFactory.createUnaryCallable( - updateRegistrationTransportSettings, - settings.updateRegistrationSettings(), - clientContext); - this.updateRegistrationOperationCallable = - callableFactory.createOperationCallable( - updateRegistrationTransportSettings, - settings.updateRegistrationOperationSettings(), - clientContext, - operationsStub); - this.configureManagementSettingsCallable = - callableFactory.createUnaryCallable( - configureManagementSettingsTransportSettings, - settings.configureManagementSettingsSettings(), - clientContext); - this.configureManagementSettingsOperationCallable = - callableFactory.createOperationCallable( - configureManagementSettingsTransportSettings, - settings.configureManagementSettingsOperationSettings(), - clientContext, - operationsStub); - this.configureDnsSettingsCallable = - callableFactory.createUnaryCallable( - configureDnsSettingsTransportSettings, - settings.configureDnsSettingsSettings(), - clientContext); - this.configureDnsSettingsOperationCallable = - callableFactory.createOperationCallable( - configureDnsSettingsTransportSettings, - settings.configureDnsSettingsOperationSettings(), - clientContext, - operationsStub); - this.configureContactSettingsCallable = - callableFactory.createUnaryCallable( - configureContactSettingsTransportSettings, - settings.configureContactSettingsSettings(), - clientContext); - this.configureContactSettingsOperationCallable = - callableFactory.createOperationCallable( - configureContactSettingsTransportSettings, - settings.configureContactSettingsOperationSettings(), - clientContext, - operationsStub); - this.exportRegistrationCallable = - callableFactory.createUnaryCallable( - exportRegistrationTransportSettings, - settings.exportRegistrationSettings(), - clientContext); - this.exportRegistrationOperationCallable = - callableFactory.createOperationCallable( - exportRegistrationTransportSettings, - settings.exportRegistrationOperationSettings(), - clientContext, - operationsStub); - this.deleteRegistrationCallable = - callableFactory.createUnaryCallable( - deleteRegistrationTransportSettings, - settings.deleteRegistrationSettings(), - clientContext); - this.deleteRegistrationOperationCallable = - callableFactory.createOperationCallable( - deleteRegistrationTransportSettings, - settings.deleteRegistrationOperationSettings(), - clientContext, - operationsStub); - this.retrieveAuthorizationCodeCallable = - callableFactory.createUnaryCallable( - retrieveAuthorizationCodeTransportSettings, - settings.retrieveAuthorizationCodeSettings(), - clientContext); - this.resetAuthorizationCodeCallable = - callableFactory.createUnaryCallable( - resetAuthorizationCodeTransportSettings, - settings.resetAuthorizationCodeSettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable searchDomainsCallable() { - return searchDomainsCallable; - } - - @Override - public UnaryCallable - retrieveRegisterParametersCallable() { - return retrieveRegisterParametersCallable; - } - - @Override - public UnaryCallable registerDomainCallable() { - return registerDomainCallable; - } - - @Override - public OperationCallable - registerDomainOperationCallable() { - return registerDomainOperationCallable; - } - - @Override - public UnaryCallable - retrieveTransferParametersCallable() { - return retrieveTransferParametersCallable; - } - - @Override - public UnaryCallable transferDomainCallable() { - return transferDomainCallable; - } - - @Override - public OperationCallable - transferDomainOperationCallable() { - return transferDomainOperationCallable; - } - - @Override - public UnaryCallable - listRegistrationsCallable() { - return listRegistrationsCallable; - } - - @Override - public UnaryCallable - listRegistrationsPagedCallable() { - return listRegistrationsPagedCallable; - } - - @Override - public UnaryCallable getRegistrationCallable() { - return getRegistrationCallable; - } - - @Override - public UnaryCallable updateRegistrationCallable() { - return updateRegistrationCallable; - } - - @Override - public OperationCallable - updateRegistrationOperationCallable() { - return updateRegistrationOperationCallable; - } - - @Override - public UnaryCallable - configureManagementSettingsCallable() { - return configureManagementSettingsCallable; - } - - @Override - public OperationCallable - configureManagementSettingsOperationCallable() { - return configureManagementSettingsOperationCallable; - } - - @Override - public UnaryCallable configureDnsSettingsCallable() { - return configureDnsSettingsCallable; - } - - @Override - public OperationCallable - configureDnsSettingsOperationCallable() { - return configureDnsSettingsOperationCallable; - } - - @Override - public UnaryCallable - configureContactSettingsCallable() { - return configureContactSettingsCallable; - } - - @Override - public OperationCallable - configureContactSettingsOperationCallable() { - return configureContactSettingsOperationCallable; - } - - @Override - public UnaryCallable exportRegistrationCallable() { - return exportRegistrationCallable; - } - - @Override - public OperationCallable - exportRegistrationOperationCallable() { - return exportRegistrationOperationCallable; - } - - @Override - public UnaryCallable deleteRegistrationCallable() { - return deleteRegistrationCallable; - } - - @Override - public OperationCallable - deleteRegistrationOperationCallable() { - return deleteRegistrationOperationCallable; - } - - @Override - public UnaryCallable - retrieveAuthorizationCodeCallable() { - return retrieveAuthorizationCodeCallable; - } - - @Override - public UnaryCallable - resetAuthorizationCodeCallable() { - return resetAuthorizationCodeCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/HttpJsonDomainsCallableFactory.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/HttpJsonDomainsCallableFactory.java deleted file mode 100644 index 270f0dc6..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/HttpJsonDomainsCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the Domains service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonDomainsCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/HttpJsonDomainsStub.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/HttpJsonDomainsStub.java deleted file mode 100644 index aac03e7e..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/HttpJsonDomainsStub.java +++ /dev/null @@ -1,1141 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.stub; - -import static com.google.cloud.domains.v1.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.domains.v1.AuthorizationCode; -import com.google.cloud.domains.v1.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1.DeleteRegistrationRequest; -import com.google.cloud.domains.v1.ExportRegistrationRequest; -import com.google.cloud.domains.v1.GetRegistrationRequest; -import com.google.cloud.domains.v1.ListRegistrationsRequest; -import com.google.cloud.domains.v1.ListRegistrationsResponse; -import com.google.cloud.domains.v1.OperationMetadata; -import com.google.cloud.domains.v1.RegisterDomainRequest; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.ResetAuthorizationCodeRequest; -import com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest; -import com.google.cloud.domains.v1.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1.RetrieveRegisterParametersResponse; -import com.google.cloud.domains.v1.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1.RetrieveTransferParametersResponse; -import com.google.cloud.domains.v1.SearchDomainsRequest; -import com.google.cloud.domains.v1.SearchDomainsResponse; -import com.google.cloud.domains.v1.TransferDomainRequest; -import com.google.cloud.domains.v1.UpdateRegistrationRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the Domains service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonDomainsStub extends DomainsStub { - private static final TypeRegistry typeRegistry = - TypeRegistry.newBuilder() - .add(OperationMetadata.getDescriptor()) - .add(Empty.getDescriptor()) - .add(Registration.getDescriptor()) - .build(); - - private static final ApiMethodDescriptor - searchDomainsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1.Domains/SearchDomains") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{location=projects/*/locations/*}/registrations:searchDomains", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "location", request.getLocation()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "query", request.getQuery()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SearchDomainsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName("google.cloud.domains.v1.Domains/RetrieveRegisterParameters") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{location=projects/*/locations/*}/registrations:retrieveRegisterParameters", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "location", request.getLocation()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "domainName", request.getDomainName()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(RetrieveRegisterParametersResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - registerDomainMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1.Domains/RegisterDomain") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/registrations:register", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (RegisterDomainRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName("google.cloud.domains.v1.Domains/RetrieveTransferParameters") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{location=projects/*/locations/*}/registrations:retrieveTransferParameters", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "location", request.getLocation()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "domainName", request.getDomainName()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(RetrieveTransferParametersResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - transferDomainMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1.Domains/TransferDomain") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/registrations:transfer", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (TransferDomainRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - listRegistrationsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1.Domains/ListRegistrations") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/registrations", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListRegistrationsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getRegistrationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1.Domains/GetRegistration") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/registrations/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Registration.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateRegistrationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1.Domains/UpdateRegistration") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{registration.name=projects/*/locations/*/registrations/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration.name", request.getRegistration().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("registration", request.getRegistration(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (UpdateRegistrationRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - configureManagementSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1.Domains/ConfigureManagementSettings") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{registration=projects/*/locations/*/registrations/*}:configureManagementSettings", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration", request.getRegistration()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", request.toBuilder().clearRegistration().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (ConfigureManagementSettingsRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - configureDnsSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1.Domains/ConfigureDnsSettings") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{registration=projects/*/locations/*/registrations/*}:configureDnsSettings", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration", request.getRegistration()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", request.toBuilder().clearRegistration().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (ConfigureDnsSettingsRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - configureContactSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1.Domains/ConfigureContactSettings") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{registration=projects/*/locations/*/registrations/*}:configureContactSettings", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration", request.getRegistration()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", request.toBuilder().clearRegistration().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (ConfigureContactSettingsRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - exportRegistrationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1.Domains/ExportRegistration") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/registrations/*}:export", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (ExportRegistrationRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - deleteRegistrationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1.Domains/DeleteRegistration") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/registrations/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (DeleteRegistrationRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - retrieveAuthorizationCodeMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1.Domains/RetrieveAuthorizationCode") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{registration=projects/*/locations/*/registrations/*}:retrieveAuthorizationCode", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration", request.getRegistration()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AuthorizationCode.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - resetAuthorizationCodeMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1.Domains/ResetAuthorizationCode") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{registration=projects/*/locations/*/registrations/*}:resetAuthorizationCode", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration", request.getRegistration()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", request.toBuilder().clearRegistration().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AuthorizationCode.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable searchDomainsCallable; - private final UnaryCallable - retrieveRegisterParametersCallable; - private final UnaryCallable registerDomainCallable; - private final OperationCallable - registerDomainOperationCallable; - private final UnaryCallable - retrieveTransferParametersCallable; - private final UnaryCallable transferDomainCallable; - private final OperationCallable - transferDomainOperationCallable; - private final UnaryCallable - listRegistrationsCallable; - private final UnaryCallable - listRegistrationsPagedCallable; - private final UnaryCallable getRegistrationCallable; - private final UnaryCallable updateRegistrationCallable; - private final OperationCallable - updateRegistrationOperationCallable; - private final UnaryCallable - configureManagementSettingsCallable; - private final OperationCallable< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationCallable; - private final UnaryCallable configureDnsSettingsCallable; - private final OperationCallable - configureDnsSettingsOperationCallable; - private final UnaryCallable - configureContactSettingsCallable; - private final OperationCallable - configureContactSettingsOperationCallable; - private final UnaryCallable exportRegistrationCallable; - private final OperationCallable - exportRegistrationOperationCallable; - private final UnaryCallable deleteRegistrationCallable; - private final OperationCallable - deleteRegistrationOperationCallable; - private final UnaryCallable - retrieveAuthorizationCodeCallable; - private final UnaryCallable - resetAuthorizationCodeCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonOperationsStub httpJsonOperationsStub; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonDomainsStub create(DomainsStubSettings settings) throws IOException { - return new HttpJsonDomainsStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonDomainsStub create(ClientContext clientContext) throws IOException { - return new HttpJsonDomainsStub(DomainsStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonDomainsStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonDomainsStub( - DomainsStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonDomainsStub, 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 HttpJsonDomainsStub(DomainsStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new HttpJsonDomainsCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonDomainsStub, 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 HttpJsonDomainsStub( - DomainsStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.httpJsonOperationsStub = - HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); - - HttpJsonCallSettings - searchDomainsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(searchDomainsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - retrieveRegisterParametersTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(retrieveRegisterParametersMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings registerDomainTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(registerDomainMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - retrieveTransferParametersTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(retrieveTransferParametersMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings transferDomainTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(transferDomainMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listRegistrationsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listRegistrationsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getRegistrationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getRegistrationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings updateRegistrationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateRegistrationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - configureManagementSettingsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(configureManagementSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - configureDnsSettingsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(configureDnsSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - configureContactSettingsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(configureContactSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings exportRegistrationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(exportRegistrationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteRegistrationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteRegistrationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - retrieveAuthorizationCodeTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(retrieveAuthorizationCodeMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - resetAuthorizationCodeTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(resetAuthorizationCodeMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - - this.searchDomainsCallable = - callableFactory.createUnaryCallable( - searchDomainsTransportSettings, settings.searchDomainsSettings(), clientContext); - this.retrieveRegisterParametersCallable = - callableFactory.createUnaryCallable( - retrieveRegisterParametersTransportSettings, - settings.retrieveRegisterParametersSettings(), - clientContext); - this.registerDomainCallable = - callableFactory.createUnaryCallable( - registerDomainTransportSettings, settings.registerDomainSettings(), clientContext); - this.registerDomainOperationCallable = - callableFactory.createOperationCallable( - registerDomainTransportSettings, - settings.registerDomainOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.retrieveTransferParametersCallable = - callableFactory.createUnaryCallable( - retrieveTransferParametersTransportSettings, - settings.retrieveTransferParametersSettings(), - clientContext); - this.transferDomainCallable = - callableFactory.createUnaryCallable( - transferDomainTransportSettings, settings.transferDomainSettings(), clientContext); - this.transferDomainOperationCallable = - callableFactory.createOperationCallable( - transferDomainTransportSettings, - settings.transferDomainOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.listRegistrationsCallable = - callableFactory.createUnaryCallable( - listRegistrationsTransportSettings, - settings.listRegistrationsSettings(), - clientContext); - this.listRegistrationsPagedCallable = - callableFactory.createPagedCallable( - listRegistrationsTransportSettings, - settings.listRegistrationsSettings(), - clientContext); - this.getRegistrationCallable = - callableFactory.createUnaryCallable( - getRegistrationTransportSettings, settings.getRegistrationSettings(), clientContext); - this.updateRegistrationCallable = - callableFactory.createUnaryCallable( - updateRegistrationTransportSettings, - settings.updateRegistrationSettings(), - clientContext); - this.updateRegistrationOperationCallable = - callableFactory.createOperationCallable( - updateRegistrationTransportSettings, - settings.updateRegistrationOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.configureManagementSettingsCallable = - callableFactory.createUnaryCallable( - configureManagementSettingsTransportSettings, - settings.configureManagementSettingsSettings(), - clientContext); - this.configureManagementSettingsOperationCallable = - callableFactory.createOperationCallable( - configureManagementSettingsTransportSettings, - settings.configureManagementSettingsOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.configureDnsSettingsCallable = - callableFactory.createUnaryCallable( - configureDnsSettingsTransportSettings, - settings.configureDnsSettingsSettings(), - clientContext); - this.configureDnsSettingsOperationCallable = - callableFactory.createOperationCallable( - configureDnsSettingsTransportSettings, - settings.configureDnsSettingsOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.configureContactSettingsCallable = - callableFactory.createUnaryCallable( - configureContactSettingsTransportSettings, - settings.configureContactSettingsSettings(), - clientContext); - this.configureContactSettingsOperationCallable = - callableFactory.createOperationCallable( - configureContactSettingsTransportSettings, - settings.configureContactSettingsOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.exportRegistrationCallable = - callableFactory.createUnaryCallable( - exportRegistrationTransportSettings, - settings.exportRegistrationSettings(), - clientContext); - this.exportRegistrationOperationCallable = - callableFactory.createOperationCallable( - exportRegistrationTransportSettings, - settings.exportRegistrationOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.deleteRegistrationCallable = - callableFactory.createUnaryCallable( - deleteRegistrationTransportSettings, - settings.deleteRegistrationSettings(), - clientContext); - this.deleteRegistrationOperationCallable = - callableFactory.createOperationCallable( - deleteRegistrationTransportSettings, - settings.deleteRegistrationOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.retrieveAuthorizationCodeCallable = - callableFactory.createUnaryCallable( - retrieveAuthorizationCodeTransportSettings, - settings.retrieveAuthorizationCodeSettings(), - clientContext); - this.resetAuthorizationCodeCallable = - callableFactory.createUnaryCallable( - resetAuthorizationCodeTransportSettings, - settings.resetAuthorizationCodeSettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(searchDomainsMethodDescriptor); - methodDescriptors.add(retrieveRegisterParametersMethodDescriptor); - methodDescriptors.add(registerDomainMethodDescriptor); - methodDescriptors.add(retrieveTransferParametersMethodDescriptor); - methodDescriptors.add(transferDomainMethodDescriptor); - methodDescriptors.add(listRegistrationsMethodDescriptor); - methodDescriptors.add(getRegistrationMethodDescriptor); - methodDescriptors.add(updateRegistrationMethodDescriptor); - methodDescriptors.add(configureManagementSettingsMethodDescriptor); - methodDescriptors.add(configureDnsSettingsMethodDescriptor); - methodDescriptors.add(configureContactSettingsMethodDescriptor); - methodDescriptors.add(exportRegistrationMethodDescriptor); - methodDescriptors.add(deleteRegistrationMethodDescriptor); - methodDescriptors.add(retrieveAuthorizationCodeMethodDescriptor); - methodDescriptors.add(resetAuthorizationCodeMethodDescriptor); - return methodDescriptors; - } - - public HttpJsonOperationsStub getHttpJsonOperationsStub() { - return httpJsonOperationsStub; - } - - @Override - public UnaryCallable searchDomainsCallable() { - return searchDomainsCallable; - } - - @Override - public UnaryCallable - retrieveRegisterParametersCallable() { - return retrieveRegisterParametersCallable; - } - - @Override - public UnaryCallable registerDomainCallable() { - return registerDomainCallable; - } - - @Override - public OperationCallable - registerDomainOperationCallable() { - return registerDomainOperationCallable; - } - - @Override - public UnaryCallable - retrieveTransferParametersCallable() { - return retrieveTransferParametersCallable; - } - - @Override - public UnaryCallable transferDomainCallable() { - return transferDomainCallable; - } - - @Override - public OperationCallable - transferDomainOperationCallable() { - return transferDomainOperationCallable; - } - - @Override - public UnaryCallable - listRegistrationsCallable() { - return listRegistrationsCallable; - } - - @Override - public UnaryCallable - listRegistrationsPagedCallable() { - return listRegistrationsPagedCallable; - } - - @Override - public UnaryCallable getRegistrationCallable() { - return getRegistrationCallable; - } - - @Override - public UnaryCallable updateRegistrationCallable() { - return updateRegistrationCallable; - } - - @Override - public OperationCallable - updateRegistrationOperationCallable() { - return updateRegistrationOperationCallable; - } - - @Override - public UnaryCallable - configureManagementSettingsCallable() { - return configureManagementSettingsCallable; - } - - @Override - public OperationCallable - configureManagementSettingsOperationCallable() { - return configureManagementSettingsOperationCallable; - } - - @Override - public UnaryCallable configureDnsSettingsCallable() { - return configureDnsSettingsCallable; - } - - @Override - public OperationCallable - configureDnsSettingsOperationCallable() { - return configureDnsSettingsOperationCallable; - } - - @Override - public UnaryCallable - configureContactSettingsCallable() { - return configureContactSettingsCallable; - } - - @Override - public OperationCallable - configureContactSettingsOperationCallable() { - return configureContactSettingsOperationCallable; - } - - @Override - public UnaryCallable exportRegistrationCallable() { - return exportRegistrationCallable; - } - - @Override - public OperationCallable - exportRegistrationOperationCallable() { - return exportRegistrationOperationCallable; - } - - @Override - public UnaryCallable deleteRegistrationCallable() { - return deleteRegistrationCallable; - } - - @Override - public OperationCallable - deleteRegistrationOperationCallable() { - return deleteRegistrationOperationCallable; - } - - @Override - public UnaryCallable - retrieveAuthorizationCodeCallable() { - return retrieveAuthorizationCodeCallable; - } - - @Override - public UnaryCallable - resetAuthorizationCodeCallable() { - return resetAuthorizationCodeCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java deleted file mode 100644 index fbc2a706..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java +++ /dev/null @@ -1,2911 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.httpjson.longrunning.OperationsClient; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.domains.v1alpha2.stub.DomainsStub; -import com.google.cloud.domains.v1alpha2.stub.DomainsStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.type.Money; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: The Cloud Domains API enables management and configuration of domain names. - * - *

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

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

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

To customize credentials: - * - *

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

To customize the endpoint: - * - *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class DomainsClient implements BackgroundResource { - private final DomainsSettings settings; - private final DomainsStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of DomainsClient with default settings. */ - public static final DomainsClient create() throws IOException { - return create(DomainsSettings.newBuilder().build()); - } - - /** - * Constructs an instance of DomainsClient, 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 DomainsClient create(DomainsSettings settings) throws IOException { - return new DomainsClient(settings); - } - - /** - * Constructs an instance of DomainsClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(DomainsSettings). - */ - public static final DomainsClient create(DomainsStub stub) { - return new DomainsClient(stub); - } - - /** - * Constructs an instance of DomainsClient, 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 DomainsClient(DomainsSettings settings) throws IOException { - this.settings = settings; - this.stub = ((DomainsStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected DomainsClient(DomainsStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final DomainsSettings getSettings() { - return settings; - } - - public DomainsStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches for available domain names similar to the provided query. - * - *

Availability results from this method are approximate; call `RetrieveRegisterParameters` on - * a domain before registering to confirm availability. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String query = "query107944136";
-   *   SearchDomainsResponse response = domainsClient.searchDomains(location, query);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param query Required. String used to search for available domain names. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SearchDomainsResponse searchDomains(LocationName location, String query) { - SearchDomainsRequest request = - SearchDomainsRequest.newBuilder() - .setLocation(location == null ? null : location.toString()) - .setQuery(query) - .build(); - return searchDomains(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches for available domain names similar to the provided query. - * - *

Availability results from this method are approximate; call `RetrieveRegisterParameters` on - * a domain before registering to confirm availability. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String location = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String query = "query107944136";
-   *   SearchDomainsResponse response = domainsClient.searchDomains(location, query);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param query Required. String used to search for available domain names. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SearchDomainsResponse searchDomains(String location, String query) { - SearchDomainsRequest request = - SearchDomainsRequest.newBuilder().setLocation(location).setQuery(query).build(); - return searchDomains(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches for available domain names similar to the provided query. - * - *

Availability results from this method are approximate; call `RetrieveRegisterParameters` on - * a domain before registering to confirm availability. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   SearchDomainsRequest request =
-   *       SearchDomainsRequest.newBuilder()
-   *           .setQuery("query107944136")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   SearchDomainsResponse response = domainsClient.searchDomains(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SearchDomainsResponse searchDomains(SearchDomainsRequest request) { - return searchDomainsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches for available domain names similar to the provided query. - * - *

Availability results from this method are approximate; call `RetrieveRegisterParameters` on - * a domain before registering to confirm availability. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   SearchDomainsRequest request =
-   *       SearchDomainsRequest.newBuilder()
-   *           .setQuery("query107944136")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.searchDomainsCallable().futureCall(request);
-   *   // Do something.
-   *   SearchDomainsResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable searchDomainsCallable() { - return stub.searchDomainsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to register a new domain name, including price and up-to-date - * availability. Use the returned values to call `RegisterDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String domainName = "domainName-1244085905";
-   *   RetrieveRegisterParametersResponse response =
-   *       domainsClient.retrieveRegisterParameters(location, domainName);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param domainName Required. The domain name. Unicode domain names must be expressed in Punycode - * format. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveRegisterParametersResponse retrieveRegisterParameters( - LocationName location, String domainName) { - RetrieveRegisterParametersRequest request = - RetrieveRegisterParametersRequest.newBuilder() - .setLocation(location == null ? null : location.toString()) - .setDomainName(domainName) - .build(); - return retrieveRegisterParameters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to register a new domain name, including price and up-to-date - * availability. Use the returned values to call `RegisterDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String location = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String domainName = "domainName-1244085905";
-   *   RetrieveRegisterParametersResponse response =
-   *       domainsClient.retrieveRegisterParameters(location, domainName);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param domainName Required. The domain name. Unicode domain names must be expressed in Punycode - * format. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveRegisterParametersResponse retrieveRegisterParameters( - String location, String domainName) { - RetrieveRegisterParametersRequest request = - RetrieveRegisterParametersRequest.newBuilder() - .setLocation(location) - .setDomainName(domainName) - .build(); - return retrieveRegisterParameters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to register a new domain name, including price and up-to-date - * availability. Use the returned values to call `RegisterDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveRegisterParametersRequest request =
-   *       RetrieveRegisterParametersRequest.newBuilder()
-   *           .setDomainName("domainName-1244085905")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   RetrieveRegisterParametersResponse response =
-   *       domainsClient.retrieveRegisterParameters(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveRegisterParametersResponse retrieveRegisterParameters( - RetrieveRegisterParametersRequest request) { - return retrieveRegisterParametersCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to register a new domain name, including price and up-to-date - * availability. Use the returned values to call `RegisterDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveRegisterParametersRequest request =
-   *       RetrieveRegisterParametersRequest.newBuilder()
-   *           .setDomainName("domainName-1244085905")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.retrieveRegisterParametersCallable().futureCall(request);
-   *   // Do something.
-   *   RetrieveRegisterParametersResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - retrieveRegisterParametersCallable() { - return stub.retrieveRegisterParametersCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Registers a new domain name and creates a corresponding `Registration` resource. - * - *

Call `RetrieveRegisterParameters` first to check availability of the domain name and - * determine parameters like price that are needed to build a call to this method. - * - *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which - * resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully - * registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the - * domain was not registered successfully, and you can safely delete the resource and retry - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Registration registration = Registration.newBuilder().build();
-   *   Money yearlyPrice = Money.newBuilder().build();
-   *   Registration response =
-   *       domainsClient.registerDomainAsync(parent, registration, yearlyPrice).get();
-   * }
-   * }
- * - * @param parent Required. The parent resource of the `Registration`. Must be in the format - * `projects/*/locations/*`. - * @param registration Required. The complete `Registration` resource to be created. - * @param yearlyPrice Required. Yearly price to register or renew the domain. The value that - * should be put here can be obtained from RetrieveRegisterParameters or SearchDomains calls. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture registerDomainAsync( - LocationName parent, Registration registration, Money yearlyPrice) { - RegisterDomainRequest request = - RegisterDomainRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setRegistration(registration) - .setYearlyPrice(yearlyPrice) - .build(); - return registerDomainAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Registers a new domain name and creates a corresponding `Registration` resource. - * - *

Call `RetrieveRegisterParameters` first to check availability of the domain name and - * determine parameters like price that are needed to build a call to this method. - * - *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which - * resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully - * registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the - * domain was not registered successfully, and you can safely delete the resource and retry - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Registration registration = Registration.newBuilder().build();
-   *   Money yearlyPrice = Money.newBuilder().build();
-   *   Registration response =
-   *       domainsClient.registerDomainAsync(parent, registration, yearlyPrice).get();
-   * }
-   * }
- * - * @param parent Required. The parent resource of the `Registration`. Must be in the format - * `projects/*/locations/*`. - * @param registration Required. The complete `Registration` resource to be created. - * @param yearlyPrice Required. Yearly price to register or renew the domain. The value that - * should be put here can be obtained from RetrieveRegisterParameters or SearchDomains calls. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture registerDomainAsync( - String parent, Registration registration, Money yearlyPrice) { - RegisterDomainRequest request = - RegisterDomainRequest.newBuilder() - .setParent(parent) - .setRegistration(registration) - .setYearlyPrice(yearlyPrice) - .build(); - return registerDomainAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Registers a new domain name and creates a corresponding `Registration` resource. - * - *

Call `RetrieveRegisterParameters` first to check availability of the domain name and - * determine parameters like price that are needed to build a call to this method. - * - *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which - * resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully - * registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the - * domain was not registered successfully, and you can safely delete the resource and retry - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegisterDomainRequest request =
-   *       RegisterDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllDomainNotices(new ArrayList())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   Registration response = domainsClient.registerDomainAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture registerDomainAsync( - RegisterDomainRequest request) { - return registerDomainOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Registers a new domain name and creates a corresponding `Registration` resource. - * - *

Call `RetrieveRegisterParameters` first to check availability of the domain name and - * determine parameters like price that are needed to build a call to this method. - * - *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which - * resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully - * registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the - * domain was not registered successfully, and you can safely delete the resource and retry - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegisterDomainRequest request =
-   *       RegisterDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllDomainNotices(new ArrayList())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.registerDomainOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - registerDomainOperationCallable() { - return stub.registerDomainOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Registers a new domain name and creates a corresponding `Registration` resource. - * - *

Call `RetrieveRegisterParameters` first to check availability of the domain name and - * determine parameters like price that are needed to build a call to this method. - * - *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which - * resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully - * registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the - * domain was not registered successfully, and you can safely delete the resource and retry - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegisterDomainRequest request =
-   *       RegisterDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllDomainNotices(new ArrayList())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future = domainsClient.registerDomainCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable registerDomainCallable() { - return stub.registerDomainCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For - * domains managed by Google Domains, transferring to Cloud Domains is not supported. - * - *

Use the returned values to call `TransferDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String domainName = "domainName-1244085905";
-   *   RetrieveTransferParametersResponse response =
-   *       domainsClient.retrieveTransferParameters(location, domainName);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param domainName Required. The domain name. Unicode domain names must be expressed in Punycode - * format. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveTransferParametersResponse retrieveTransferParameters( - LocationName location, String domainName) { - RetrieveTransferParametersRequest request = - RetrieveTransferParametersRequest.newBuilder() - .setLocation(location == null ? null : location.toString()) - .setDomainName(domainName) - .build(); - return retrieveTransferParameters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For - * domains managed by Google Domains, transferring to Cloud Domains is not supported. - * - *

Use the returned values to call `TransferDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String location = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String domainName = "domainName-1244085905";
-   *   RetrieveTransferParametersResponse response =
-   *       domainsClient.retrieveTransferParameters(location, domainName);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param domainName Required. The domain name. Unicode domain names must be expressed in Punycode - * format. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveTransferParametersResponse retrieveTransferParameters( - String location, String domainName) { - RetrieveTransferParametersRequest request = - RetrieveTransferParametersRequest.newBuilder() - .setLocation(location) - .setDomainName(domainName) - .build(); - return retrieveTransferParameters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For - * domains managed by Google Domains, transferring to Cloud Domains is not supported. - * - *

Use the returned values to call `TransferDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveTransferParametersRequest request =
-   *       RetrieveTransferParametersRequest.newBuilder()
-   *           .setDomainName("domainName-1244085905")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   RetrieveTransferParametersResponse response =
-   *       domainsClient.retrieveTransferParameters(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveTransferParametersResponse retrieveTransferParameters( - RetrieveTransferParametersRequest request) { - return retrieveTransferParametersCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For - * domains managed by Google Domains, transferring to Cloud Domains is not supported. - * - *

Use the returned values to call `TransferDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveTransferParametersRequest request =
-   *       RetrieveTransferParametersRequest.newBuilder()
-   *           .setDomainName("domainName-1244085905")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.retrieveTransferParametersCallable().futureCall(request);
-   *   // Do something.
-   *   RetrieveTransferParametersResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - retrieveTransferParametersCallable() { - return stub.retrieveTransferParametersCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google - * Domains, transferring to Cloud Domains is not supported. - * - *

Before calling this method, go to the domain's current registrar to unlock the domain for - * transfer and retrieve the domain's transfer authorization code. Then call - * `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to - * build a call to this method. - * - *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take - * several days to complete the transfer process. The registrant can often speed up this process - * by approving the transfer through the current registrar, either by clicking a link in an email - * from the registrar or by visiting the registrar's website. - * - *

A few minutes after transfer approval, the resource transitions to state `ACTIVE`, - * indicating that the transfer was successful. If the transfer is rejected or the request expires - * without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, - * you can safely delete the resource and retry the transfer. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Registration registration = Registration.newBuilder().build();
-   *   Money yearlyPrice = Money.newBuilder().build();
-   *   AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .transferDomainAsync(parent, registration, yearlyPrice, authorizationCode)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. The parent resource of the `Registration`. Must be in the format - * `projects/*/locations/*`. - * @param registration Required. The complete `Registration` resource to be created. - *

You can leave `registration.dns_settings` unset to import the domain's current DNS - * configuration from its current registrar. Use this option only if you are sure that the - * domain's current DNS service does not cease upon transfer, as is often the case for DNS - * services provided for free by the registrar. - * @param yearlyPrice Required. Acknowledgement of the price to transfer or renew the domain for - * one year. Call `RetrieveTransferParameters` to obtain the price, which you must - * acknowledge. - * @param authorizationCode The domain's transfer authorization code. You can obtain this from the - * domain's current registrar. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture transferDomainAsync( - LocationName parent, - Registration registration, - Money yearlyPrice, - AuthorizationCode authorizationCode) { - TransferDomainRequest request = - TransferDomainRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setRegistration(registration) - .setYearlyPrice(yearlyPrice) - .setAuthorizationCode(authorizationCode) - .build(); - return transferDomainAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google - * Domains, transferring to Cloud Domains is not supported. - * - *

Before calling this method, go to the domain's current registrar to unlock the domain for - * transfer and retrieve the domain's transfer authorization code. Then call - * `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to - * build a call to this method. - * - *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take - * several days to complete the transfer process. The registrant can often speed up this process - * by approving the transfer through the current registrar, either by clicking a link in an email - * from the registrar or by visiting the registrar's website. - * - *

A few minutes after transfer approval, the resource transitions to state `ACTIVE`, - * indicating that the transfer was successful. If the transfer is rejected or the request expires - * without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, - * you can safely delete the resource and retry the transfer. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Registration registration = Registration.newBuilder().build();
-   *   Money yearlyPrice = Money.newBuilder().build();
-   *   AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .transferDomainAsync(parent, registration, yearlyPrice, authorizationCode)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. The parent resource of the `Registration`. Must be in the format - * `projects/*/locations/*`. - * @param registration Required. The complete `Registration` resource to be created. - *

You can leave `registration.dns_settings` unset to import the domain's current DNS - * configuration from its current registrar. Use this option only if you are sure that the - * domain's current DNS service does not cease upon transfer, as is often the case for DNS - * services provided for free by the registrar. - * @param yearlyPrice Required. Acknowledgement of the price to transfer or renew the domain for - * one year. Call `RetrieveTransferParameters` to obtain the price, which you must - * acknowledge. - * @param authorizationCode The domain's transfer authorization code. You can obtain this from the - * domain's current registrar. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture transferDomainAsync( - String parent, - Registration registration, - Money yearlyPrice, - AuthorizationCode authorizationCode) { - TransferDomainRequest request = - TransferDomainRequest.newBuilder() - .setParent(parent) - .setRegistration(registration) - .setYearlyPrice(yearlyPrice) - .setAuthorizationCode(authorizationCode) - .build(); - return transferDomainAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google - * Domains, transferring to Cloud Domains is not supported. - * - *

Before calling this method, go to the domain's current registrar to unlock the domain for - * transfer and retrieve the domain's transfer authorization code. Then call - * `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to - * build a call to this method. - * - *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take - * several days to complete the transfer process. The registrant can often speed up this process - * by approving the transfer through the current registrar, either by clicking a link in an email - * from the registrar or by visiting the registrar's website. - * - *

A few minutes after transfer approval, the resource transitions to state `ACTIVE`, - * indicating that the transfer was successful. If the transfer is rejected or the request expires - * without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, - * you can safely delete the resource and retry the transfer. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   TransferDomainRequest request =
-   *       TransferDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setAuthorizationCode(AuthorizationCode.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   Registration response = domainsClient.transferDomainAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture transferDomainAsync( - TransferDomainRequest request) { - return transferDomainOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google - * Domains, transferring to Cloud Domains is not supported. - * - *

Before calling this method, go to the domain's current registrar to unlock the domain for - * transfer and retrieve the domain's transfer authorization code. Then call - * `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to - * build a call to this method. - * - *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take - * several days to complete the transfer process. The registrant can often speed up this process - * by approving the transfer through the current registrar, either by clicking a link in an email - * from the registrar or by visiting the registrar's website. - * - *

A few minutes after transfer approval, the resource transitions to state `ACTIVE`, - * indicating that the transfer was successful. If the transfer is rejected or the request expires - * without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, - * you can safely delete the resource and retry the transfer. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   TransferDomainRequest request =
-   *       TransferDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setAuthorizationCode(AuthorizationCode.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.transferDomainOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - transferDomainOperationCallable() { - return stub.transferDomainOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google - * Domains, transferring to Cloud Domains is not supported. - * - *

Before calling this method, go to the domain's current registrar to unlock the domain for - * transfer and retrieve the domain's transfer authorization code. Then call - * `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to - * build a call to this method. - * - *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take - * several days to complete the transfer process. The registrant can often speed up this process - * by approving the transfer through the current registrar, either by clicking a link in an email - * from the registrar or by visiting the registrar's website. - * - *

A few minutes after transfer approval, the resource transitions to state `ACTIVE`, - * indicating that the transfer was successful. If the transfer is rejected or the request expires - * without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, - * you can safely delete the resource and retry the transfer. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   TransferDomainRequest request =
-   *       TransferDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setAuthorizationCode(AuthorizationCode.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future = domainsClient.transferDomainCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable transferDomainCallable() { - return stub.transferDomainCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the `Registration` resources in a project. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ListRegistrationsRequest request =
-   *       ListRegistrationsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   for (Registration element : domainsClient.listRegistrations(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 ListRegistrationsPagedResponse listRegistrations(ListRegistrationsRequest request) { - return listRegistrationsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the `Registration` resources in a project. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   GetRegistrationRequest request =
-   *       GetRegistrationRequest.newBuilder()
-   *           .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   ApiFuture future = domainsClient.getRegistrationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getRegistrationCallable() { - return stub.getRegistrationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates select fields of a `Registration` resource, notably `labels`. To update other fields, - * use the appropriate custom update method: - * - *
    - *
  • To update management settings, see `ConfigureManagementSettings` - *
  • To update DNS configuration, see `ConfigureDnsSettings` - *
  • To update contact information, see `ConfigureContactSettings` - *
- * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   Registration registration = Registration.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response = domainsClient.updateRegistrationAsync(registration, updateMask).get();
-   * }
-   * }
- * - * @param registration Fields of the `Registration` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the labels are being updated, the `update_mask` - * is `"labels"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateRegistrationAsync( - Registration registration, FieldMask updateMask) { - UpdateRegistrationRequest request = - UpdateRegistrationRequest.newBuilder() - .setRegistration(registration) - .setUpdateMask(updateMask) - .build(); - return updateRegistrationAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates select fields of a `Registration` resource, notably `labels`. To update other fields, - * use the appropriate custom update method: - * - *
    - *
  • To update management settings, see `ConfigureManagementSettings` - *
  • To update DNS configuration, see `ConfigureDnsSettings` - *
  • To update contact information, see `ConfigureContactSettings` - *
- * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   UpdateRegistrationRequest request =
-   *       UpdateRegistrationRequest.newBuilder()
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Registration response = domainsClient.updateRegistrationAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateRegistrationAsync( - UpdateRegistrationRequest request) { - return updateRegistrationOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates select fields of a `Registration` resource, notably `labels`. To update other fields, - * use the appropriate custom update method: - * - *
    - *
  • To update management settings, see `ConfigureManagementSettings` - *
  • To update DNS configuration, see `ConfigureDnsSettings` - *
  • To update contact information, see `ConfigureContactSettings` - *
- * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   UpdateRegistrationRequest request =
-   *       UpdateRegistrationRequest.newBuilder()
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.updateRegistrationOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - updateRegistrationOperationCallable() { - return stub.updateRegistrationOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates select fields of a `Registration` resource, notably `labels`. To update other fields, - * use the appropriate custom update method: - * - *
    - *
  • To update management settings, see `ConfigureManagementSettings` - *
  • To update DNS configuration, see `ConfigureDnsSettings` - *
  • To update contact information, see `ConfigureContactSettings` - *
- * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   UpdateRegistrationRequest request =
-   *       UpdateRegistrationRequest.newBuilder()
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = domainsClient.updateRegistrationCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateRegistrationCallable() { - return stub.updateRegistrationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s management settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   ManagementSettings managementSettings = ManagementSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .configureManagementSettingsAsync(registration, managementSettings, updateMask)
-   *           .get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose management settings are - * being updated, in the format `projects/*/locations/*/registrations/*`. - * @param managementSettings Fields of the `ManagementSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the transfer lock is being updated, the - * `update_mask` is `"transfer_lock_state"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureManagementSettingsAsync( - RegistrationName registration, ManagementSettings managementSettings, FieldMask updateMask) { - ConfigureManagementSettingsRequest request = - ConfigureManagementSettingsRequest.newBuilder() - .setRegistration(registration == null ? null : registration.toString()) - .setManagementSettings(managementSettings) - .setUpdateMask(updateMask) - .build(); - return configureManagementSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s management settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   ManagementSettings managementSettings = ManagementSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .configureManagementSettingsAsync(registration, managementSettings, updateMask)
-   *           .get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose management settings are - * being updated, in the format `projects/*/locations/*/registrations/*`. - * @param managementSettings Fields of the `ManagementSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the transfer lock is being updated, the - * `update_mask` is `"transfer_lock_state"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureManagementSettingsAsync( - String registration, ManagementSettings managementSettings, FieldMask updateMask) { - ConfigureManagementSettingsRequest request = - ConfigureManagementSettingsRequest.newBuilder() - .setRegistration(registration) - .setManagementSettings(managementSettings) - .setUpdateMask(updateMask) - .build(); - return configureManagementSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s management settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureManagementSettingsRequest request =
-   *       ConfigureManagementSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setManagementSettings(ManagementSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Registration response = domainsClient.configureManagementSettingsAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureManagementSettingsAsync( - ConfigureManagementSettingsRequest request) { - return configureManagementSettingsOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s management settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureManagementSettingsRequest request =
-   *       ConfigureManagementSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setManagementSettings(ManagementSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.configureManagementSettingsOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationCallable() { - return stub.configureManagementSettingsOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s management settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureManagementSettingsRequest request =
-   *       ConfigureManagementSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setManagementSettings(ManagementSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.configureManagementSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - configureManagementSettingsCallable() { - return stub.configureManagementSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s DNS settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   DnsSettings dnsSettings = DnsSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose DNS settings are being - * updated, in the format `projects/*/locations/*/registrations/*`. - * @param dnsSettings Fields of the `DnsSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the name servers are being updated for an - * existing Custom DNS configuration, the `update_mask` is `"custom_dns.name_servers"`. - *

When changing the DNS provider from one type to another, pass the new provider's field - * name as part of the field mask. For example, when changing from a Google Domains DNS - * configuration to a Custom DNS configuration, the `update_mask` is `"custom_dns"`. // - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureDnsSettingsAsync( - RegistrationName registration, DnsSettings dnsSettings, FieldMask updateMask) { - ConfigureDnsSettingsRequest request = - ConfigureDnsSettingsRequest.newBuilder() - .setRegistration(registration == null ? null : registration.toString()) - .setDnsSettings(dnsSettings) - .setUpdateMask(updateMask) - .build(); - return configureDnsSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s DNS settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   DnsSettings dnsSettings = DnsSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose DNS settings are being - * updated, in the format `projects/*/locations/*/registrations/*`. - * @param dnsSettings Fields of the `DnsSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the name servers are being updated for an - * existing Custom DNS configuration, the `update_mask` is `"custom_dns.name_servers"`. - *

When changing the DNS provider from one type to another, pass the new provider's field - * name as part of the field mask. For example, when changing from a Google Domains DNS - * configuration to a Custom DNS configuration, the `update_mask` is `"custom_dns"`. // - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureDnsSettingsAsync( - String registration, DnsSettings dnsSettings, FieldMask updateMask) { - ConfigureDnsSettingsRequest request = - ConfigureDnsSettingsRequest.newBuilder() - .setRegistration(registration) - .setDnsSettings(dnsSettings) - .setUpdateMask(updateMask) - .build(); - return configureDnsSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s DNS settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureDnsSettingsRequest request =
-   *       ConfigureDnsSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setDnsSettings(DnsSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   Registration response = domainsClient.configureDnsSettingsAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureDnsSettingsAsync( - ConfigureDnsSettingsRequest request) { - return configureDnsSettingsOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s DNS settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureDnsSettingsRequest request =
-   *       ConfigureDnsSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setDnsSettings(DnsSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.configureDnsSettingsOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - configureDnsSettingsOperationCallable() { - return stub.configureDnsSettingsOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s DNS settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureDnsSettingsRequest request =
-   *       ConfigureDnsSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setDnsSettings(DnsSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.configureDnsSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - configureDnsSettingsCallable() { - return stub.configureDnsSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's - * registrant contact . - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   ContactSettings contactSettings = ContactSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .configureContactSettingsAsync(registration, contactSettings, updateMask)
-   *           .get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose contact settings are being - * updated, in the format `projects/*/locations/*/registrations/*`. - * @param contactSettings Fields of the `ContactSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the registrant contact is being updated, the - * `update_mask` is `"registrant_contact"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureContactSettingsAsync( - RegistrationName registration, ContactSettings contactSettings, FieldMask updateMask) { - ConfigureContactSettingsRequest request = - ConfigureContactSettingsRequest.newBuilder() - .setRegistration(registration == null ? null : registration.toString()) - .setContactSettings(contactSettings) - .setUpdateMask(updateMask) - .build(); - return configureContactSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's - * registrant contact . - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   ContactSettings contactSettings = ContactSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .configureContactSettingsAsync(registration, contactSettings, updateMask)
-   *           .get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose contact settings are being - * updated, in the format `projects/*/locations/*/registrations/*`. - * @param contactSettings Fields of the `ContactSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the registrant contact is being updated, the - * `update_mask` is `"registrant_contact"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureContactSettingsAsync( - String registration, ContactSettings contactSettings, FieldMask updateMask) { - ConfigureContactSettingsRequest request = - ConfigureContactSettingsRequest.newBuilder() - .setRegistration(registration) - .setContactSettings(contactSettings) - .setUpdateMask(updateMask) - .build(); - return configureContactSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's - * registrant contact . - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureContactSettingsRequest request =
-   *       ConfigureContactSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setContactSettings(ContactSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   Registration response = domainsClient.configureContactSettingsAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureContactSettingsAsync( - ConfigureContactSettingsRequest request) { - return configureContactSettingsOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's - * registrant contact . - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureContactSettingsRequest request =
-   *       ConfigureContactSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setContactSettings(ContactSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.configureContactSettingsOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - configureContactSettingsOperationCallable() { - return stub.configureContactSettingsOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's - * registrant contact . - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureContactSettingsRequest request =
-   *       ConfigureContactSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setContactSettings(ContactSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.configureContactSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - configureContactSettingsCallable() { - return stub.configureContactSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. - * - *

When an active domain is successfully exported, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   Registration response = domainsClient.exportRegistrationAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the `Registration` to export, in the format - * `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture exportRegistrationAsync( - RegistrationName name) { - ExportRegistrationRequest request = - ExportRegistrationRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return exportRegistrationAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. - * - *

When an active domain is successfully exported, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   Registration response = domainsClient.exportRegistrationAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the `Registration` to export, in the format - * `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture exportRegistrationAsync( - String name) { - ExportRegistrationRequest request = - ExportRegistrationRequest.newBuilder().setName(name).build(); - return exportRegistrationAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. - * - *

When an active domain is successfully exported, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ExportRegistrationRequest request =
-   *       ExportRegistrationRequest.newBuilder()
-   *           .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   Registration response = domainsClient.exportRegistrationAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture exportRegistrationAsync( - ExportRegistrationRequest request) { - return exportRegistrationOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. - * - *

When an active domain is successfully exported, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ExportRegistrationRequest request =
-   *       ExportRegistrationRequest.newBuilder()
-   *           .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.exportRegistrationOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - exportRegistrationOperationCallable() { - return stub.exportRegistrationOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. - * - *

When an active domain is successfully exported, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

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

This method works on any `Registration` resource using [Subscription or Commitment - * billing](/domains/pricing#billing-models), provided that the resource was created at least 1 - * day in the past. - * - *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this - * method works if: - * - *

    - *
  • `state` is `EXPORTED` with `expire_time` in the past - *
  • `state` is `REGISTRATION_FAILED` - *
  • `state` is `TRANSFER_FAILED` - *
- * - *

When an active registration is successfully deleted, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

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

This method works on any `Registration` resource using [Subscription or Commitment - * billing](/domains/pricing#billing-models), provided that the resource was created at least 1 - * day in the past. - * - *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this - * method works if: - * - *

    - *
  • `state` is `EXPORTED` with `expire_time` in the past - *
  • `state` is `REGISTRATION_FAILED` - *
  • `state` is `TRANSFER_FAILED` - *
- * - *

When an active registration is successfully deleted, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

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

This method works on any `Registration` resource using [Subscription or Commitment - * billing](/domains/pricing#billing-models), provided that the resource was created at least 1 - * day in the past. - * - *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this - * method works if: - * - *

    - *
  • `state` is `EXPORTED` with `expire_time` in the past - *
  • `state` is `REGISTRATION_FAILED` - *
  • `state` is `TRANSFER_FAILED` - *
- * - *

When an active registration is successfully deleted, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

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

This method works on any `Registration` resource using [Subscription or Commitment - * billing](/domains/pricing#billing-models), provided that the resource was created at least 1 - * day in the past. - * - *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this - * method works if: - * - *

    - *
  • `state` is `EXPORTED` with `expire_time` in the past - *
  • `state` is `REGISTRATION_FAILED` - *
  • `state` is `TRANSFER_FAILED` - *
- * - *

When an active registration is successfully deleted, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

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

This method works on any `Registration` resource using [Subscription or Commitment - * billing](/domains/pricing#billing-models), provided that the resource was created at least 1 - * day in the past. - * - *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this - * method works if: - * - *

    - *
  • `state` is `EXPORTED` with `expire_time` in the past - *
  • `state` is `REGISTRATION_FAILED` - *
  • `state` is `TRANSFER_FAILED` - *
- * - *

When an active registration is successfully deleted, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   DeleteRegistrationRequest request =
-   *       DeleteRegistrationRequest.newBuilder()
-   *           .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   ApiFuture future = domainsClient.deleteRegistrationCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteRegistrationCallable() { - return stub.deleteRegistrationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the authorization code of the `Registration` for the purpose of transferring the domain to - * another registrar. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   AuthorizationCode response = domainsClient.retrieveAuthorizationCode(registration);
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose authorization code is being - * retrieved, in the format `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode retrieveAuthorizationCode(RegistrationName registration) { - RetrieveAuthorizationCodeRequest request = - RetrieveAuthorizationCodeRequest.newBuilder() - .setRegistration(registration == null ? null : registration.toString()) - .build(); - return retrieveAuthorizationCode(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the authorization code of the `Registration` for the purpose of transferring the domain to - * another registrar. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   AuthorizationCode response = domainsClient.retrieveAuthorizationCode(registration);
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose authorization code is being - * retrieved, in the format `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode retrieveAuthorizationCode(String registration) { - RetrieveAuthorizationCodeRequest request = - RetrieveAuthorizationCodeRequest.newBuilder().setRegistration(registration).build(); - return retrieveAuthorizationCode(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the authorization code of the `Registration` for the purpose of transferring the domain to - * another registrar. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveAuthorizationCodeRequest request =
-   *       RetrieveAuthorizationCodeRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   AuthorizationCode response = domainsClient.retrieveAuthorizationCode(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode retrieveAuthorizationCode( - RetrieveAuthorizationCodeRequest request) { - return retrieveAuthorizationCodeCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the authorization code of the `Registration` for the purpose of transferring the domain to - * another registrar. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveAuthorizationCodeRequest request =
-   *       RetrieveAuthorizationCodeRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.retrieveAuthorizationCodeCallable().futureCall(request);
-   *   // Do something.
-   *   AuthorizationCode response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - retrieveAuthorizationCodeCallable() { - return stub.retrieveAuthorizationCodeCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resets the authorization code of the `Registration` to a new random string. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   AuthorizationCode response = domainsClient.resetAuthorizationCode(registration);
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose authorization code is being - * reset, in the format `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode resetAuthorizationCode(RegistrationName registration) { - ResetAuthorizationCodeRequest request = - ResetAuthorizationCodeRequest.newBuilder() - .setRegistration(registration == null ? null : registration.toString()) - .build(); - return resetAuthorizationCode(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resets the authorization code of the `Registration` to a new random string. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   AuthorizationCode response = domainsClient.resetAuthorizationCode(registration);
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose authorization code is being - * reset, in the format `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode resetAuthorizationCode(String registration) { - ResetAuthorizationCodeRequest request = - ResetAuthorizationCodeRequest.newBuilder().setRegistration(registration).build(); - return resetAuthorizationCode(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resets the authorization code of the `Registration` to a new random string. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ResetAuthorizationCodeRequest request =
-   *       ResetAuthorizationCodeRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   AuthorizationCode response = domainsClient.resetAuthorizationCode(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode resetAuthorizationCode(ResetAuthorizationCodeRequest request) { - return resetAuthorizationCodeCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resets the authorization code of the `Registration` to a new random string. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ResetAuthorizationCodeRequest request =
-   *       ResetAuthorizationCodeRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.resetAuthorizationCodeCallable().futureCall(request);
-   *   // Do something.
-   *   AuthorizationCode response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - resetAuthorizationCodeCallable() { - return stub.resetAuthorizationCodeCallable(); - } - - @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 ListRegistrationsPagedResponse - extends AbstractPagedListResponse< - ListRegistrationsRequest, - ListRegistrationsResponse, - Registration, - ListRegistrationsPage, - ListRegistrationsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListRegistrationsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListRegistrationsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListRegistrationsPagedResponse(ListRegistrationsPage page) { - super(page, ListRegistrationsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListRegistrationsPage - extends AbstractPage< - ListRegistrationsRequest, - ListRegistrationsResponse, - Registration, - ListRegistrationsPage> { - - private ListRegistrationsPage( - PageContext context, - ListRegistrationsResponse response) { - super(context, response); - } - - private static ListRegistrationsPage createEmptyPage() { - return new ListRegistrationsPage(null, null); - } - - @Override - protected ListRegistrationsPage createPage( - PageContext context, - ListRegistrationsResponse response) { - return new ListRegistrationsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListRegistrationsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListRegistrationsRequest, - ListRegistrationsResponse, - Registration, - ListRegistrationsPage, - ListRegistrationsFixedSizeCollection> { - - private ListRegistrationsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListRegistrationsFixedSizeCollection createEmptyCollection() { - return new ListRegistrationsFixedSizeCollection(null, 0); - } - - @Override - protected ListRegistrationsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListRegistrationsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsSettings.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsSettings.java deleted file mode 100644 index 44399ccf..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsSettings.java +++ /dev/null @@ -1,470 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2; - -import static com.google.cloud.domains.v1alpha2.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.domains.v1alpha2.stub.DomainsStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link DomainsClient}. - * - *

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

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

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DomainsSettings.Builder domainsSettingsBuilder = DomainsSettings.newBuilder();
- * domainsSettingsBuilder
- *     .searchDomainsSettings()
- *     .setRetrySettings(
- *         domainsSettingsBuilder.searchDomainsSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * DomainsSettings domainsSettings = domainsSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class DomainsSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to searchDomains. */ - public UnaryCallSettings searchDomainsSettings() { - return ((DomainsStubSettings) getStubSettings()).searchDomainsSettings(); - } - - /** Returns the object with the settings used for calls to retrieveRegisterParameters. */ - public UnaryCallSettings - retrieveRegisterParametersSettings() { - return ((DomainsStubSettings) getStubSettings()).retrieveRegisterParametersSettings(); - } - - /** Returns the object with the settings used for calls to registerDomain. */ - public UnaryCallSettings registerDomainSettings() { - return ((DomainsStubSettings) getStubSettings()).registerDomainSettings(); - } - - /** Returns the object with the settings used for calls to registerDomain. */ - public OperationCallSettings - registerDomainOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).registerDomainOperationSettings(); - } - - /** Returns the object with the settings used for calls to retrieveTransferParameters. */ - public UnaryCallSettings - retrieveTransferParametersSettings() { - return ((DomainsStubSettings) getStubSettings()).retrieveTransferParametersSettings(); - } - - /** Returns the object with the settings used for calls to transferDomain. */ - public UnaryCallSettings transferDomainSettings() { - return ((DomainsStubSettings) getStubSettings()).transferDomainSettings(); - } - - /** Returns the object with the settings used for calls to transferDomain. */ - public OperationCallSettings - transferDomainOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).transferDomainOperationSettings(); - } - - /** Returns the object with the settings used for calls to listRegistrations. */ - public PagedCallSettings< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings() { - return ((DomainsStubSettings) getStubSettings()).listRegistrationsSettings(); - } - - /** Returns the object with the settings used for calls to getRegistration. */ - public UnaryCallSettings getRegistrationSettings() { - return ((DomainsStubSettings) getStubSettings()).getRegistrationSettings(); - } - - /** Returns the object with the settings used for calls to updateRegistration. */ - public UnaryCallSettings updateRegistrationSettings() { - return ((DomainsStubSettings) getStubSettings()).updateRegistrationSettings(); - } - - /** Returns the object with the settings used for calls to updateRegistration. */ - public OperationCallSettings - updateRegistrationOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).updateRegistrationOperationSettings(); - } - - /** Returns the object with the settings used for calls to configureManagementSettings. */ - public UnaryCallSettings - configureManagementSettingsSettings() { - return ((DomainsStubSettings) getStubSettings()).configureManagementSettingsSettings(); - } - - /** Returns the object with the settings used for calls to configureManagementSettings. */ - public OperationCallSettings - configureManagementSettingsOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).configureManagementSettingsOperationSettings(); - } - - /** Returns the object with the settings used for calls to configureDnsSettings. */ - public UnaryCallSettings configureDnsSettingsSettings() { - return ((DomainsStubSettings) getStubSettings()).configureDnsSettingsSettings(); - } - - /** Returns the object with the settings used for calls to configureDnsSettings. */ - public OperationCallSettings - configureDnsSettingsOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).configureDnsSettingsOperationSettings(); - } - - /** Returns the object with the settings used for calls to configureContactSettings. */ - public UnaryCallSettings - configureContactSettingsSettings() { - return ((DomainsStubSettings) getStubSettings()).configureContactSettingsSettings(); - } - - /** Returns the object with the settings used for calls to configureContactSettings. */ - public OperationCallSettings - configureContactSettingsOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).configureContactSettingsOperationSettings(); - } - - /** Returns the object with the settings used for calls to exportRegistration. */ - public UnaryCallSettings exportRegistrationSettings() { - return ((DomainsStubSettings) getStubSettings()).exportRegistrationSettings(); - } - - /** Returns the object with the settings used for calls to exportRegistration. */ - public OperationCallSettings - exportRegistrationOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).exportRegistrationOperationSettings(); - } - - /** Returns the object with the settings used for calls to deleteRegistration. */ - public UnaryCallSettings deleteRegistrationSettings() { - return ((DomainsStubSettings) getStubSettings()).deleteRegistrationSettings(); - } - - /** Returns the object with the settings used for calls to deleteRegistration. */ - public OperationCallSettings - deleteRegistrationOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).deleteRegistrationOperationSettings(); - } - - /** Returns the object with the settings used for calls to retrieveAuthorizationCode. */ - public UnaryCallSettings - retrieveAuthorizationCodeSettings() { - return ((DomainsStubSettings) getStubSettings()).retrieveAuthorizationCodeSettings(); - } - - /** Returns the object with the settings used for calls to resetAuthorizationCode. */ - public UnaryCallSettings - resetAuthorizationCodeSettings() { - return ((DomainsStubSettings) getStubSettings()).resetAuthorizationCodeSettings(); - } - - public static final DomainsSettings create(DomainsStubSettings stub) throws IOException { - return new DomainsSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return DomainsStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return DomainsStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DomainsStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return DomainsStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return DomainsStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return DomainsStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return DomainsStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DomainsStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected DomainsSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for DomainsSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(DomainsStubSettings.newBuilder(clientContext)); - } - - protected Builder(DomainsSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(DomainsStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(DomainsStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(DomainsStubSettings.newHttpJsonBuilder()); - } - - public DomainsStubSettings.Builder getStubSettingsBuilder() { - return ((DomainsStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to searchDomains. */ - public UnaryCallSettings.Builder - searchDomainsSettings() { - return getStubSettingsBuilder().searchDomainsSettings(); - } - - /** Returns the builder for the settings used for calls to retrieveRegisterParameters. */ - public UnaryCallSettings.Builder< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersSettings() { - return getStubSettingsBuilder().retrieveRegisterParametersSettings(); - } - - /** Returns the builder for the settings used for calls to registerDomain. */ - public UnaryCallSettings.Builder registerDomainSettings() { - return getStubSettingsBuilder().registerDomainSettings(); - } - - /** Returns the builder for the settings used for calls to registerDomain. */ - public OperationCallSettings.Builder - registerDomainOperationSettings() { - return getStubSettingsBuilder().registerDomainOperationSettings(); - } - - /** Returns the builder for the settings used for calls to retrieveTransferParameters. */ - public UnaryCallSettings.Builder< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersSettings() { - return getStubSettingsBuilder().retrieveTransferParametersSettings(); - } - - /** Returns the builder for the settings used for calls to transferDomain. */ - public UnaryCallSettings.Builder transferDomainSettings() { - return getStubSettingsBuilder().transferDomainSettings(); - } - - /** Returns the builder for the settings used for calls to transferDomain. */ - public OperationCallSettings.Builder - transferDomainOperationSettings() { - return getStubSettingsBuilder().transferDomainOperationSettings(); - } - - /** Returns the builder for the settings used for calls to listRegistrations. */ - public PagedCallSettings.Builder< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings() { - return getStubSettingsBuilder().listRegistrationsSettings(); - } - - /** Returns the builder for the settings used for calls to getRegistration. */ - public UnaryCallSettings.Builder - getRegistrationSettings() { - return getStubSettingsBuilder().getRegistrationSettings(); - } - - /** Returns the builder for the settings used for calls to updateRegistration. */ - public UnaryCallSettings.Builder - updateRegistrationSettings() { - return getStubSettingsBuilder().updateRegistrationSettings(); - } - - /** Returns the builder for the settings used for calls to updateRegistration. */ - public OperationCallSettings.Builder - updateRegistrationOperationSettings() { - return getStubSettingsBuilder().updateRegistrationOperationSettings(); - } - - /** Returns the builder for the settings used for calls to configureManagementSettings. */ - public UnaryCallSettings.Builder - configureManagementSettingsSettings() { - return getStubSettingsBuilder().configureManagementSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to configureManagementSettings. */ - public OperationCallSettings.Builder< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationSettings() { - return getStubSettingsBuilder().configureManagementSettingsOperationSettings(); - } - - /** Returns the builder for the settings used for calls to configureDnsSettings. */ - public UnaryCallSettings.Builder - configureDnsSettingsSettings() { - return getStubSettingsBuilder().configureDnsSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to configureDnsSettings. */ - public OperationCallSettings.Builder< - ConfigureDnsSettingsRequest, Registration, OperationMetadata> - configureDnsSettingsOperationSettings() { - return getStubSettingsBuilder().configureDnsSettingsOperationSettings(); - } - - /** Returns the builder for the settings used for calls to configureContactSettings. */ - public UnaryCallSettings.Builder - configureContactSettingsSettings() { - return getStubSettingsBuilder().configureContactSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to configureContactSettings. */ - public OperationCallSettings.Builder< - ConfigureContactSettingsRequest, Registration, OperationMetadata> - configureContactSettingsOperationSettings() { - return getStubSettingsBuilder().configureContactSettingsOperationSettings(); - } - - /** Returns the builder for the settings used for calls to exportRegistration. */ - public UnaryCallSettings.Builder - exportRegistrationSettings() { - return getStubSettingsBuilder().exportRegistrationSettings(); - } - - /** Returns the builder for the settings used for calls to exportRegistration. */ - public OperationCallSettings.Builder - exportRegistrationOperationSettings() { - return getStubSettingsBuilder().exportRegistrationOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteRegistration. */ - public UnaryCallSettings.Builder - deleteRegistrationSettings() { - return getStubSettingsBuilder().deleteRegistrationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteRegistration. */ - public OperationCallSettings.Builder - deleteRegistrationOperationSettings() { - return getStubSettingsBuilder().deleteRegistrationOperationSettings(); - } - - /** Returns the builder for the settings used for calls to retrieveAuthorizationCode. */ - public UnaryCallSettings.Builder - retrieveAuthorizationCodeSettings() { - return getStubSettingsBuilder().retrieveAuthorizationCodeSettings(); - } - - /** Returns the builder for the settings used for calls to resetAuthorizationCode. */ - public UnaryCallSettings.Builder - resetAuthorizationCodeSettings() { - return getStubSettingsBuilder().resetAuthorizationCodeSettings(); - } - - @Override - public DomainsSettings build() throws IOException { - return new DomainsSettings(this); - } - } -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/gapic_metadata.json b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/gapic_metadata.json deleted file mode 100644 index 3486fdeb..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/gapic_metadata.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.domains.v1alpha2", - "libraryPackage": "com.google.cloud.domains.v1alpha2", - "services": { - "Domains": { - "clients": { - "grpc": { - "libraryClient": "DomainsClient", - "rpcs": { - "ConfigureContactSettings": { - "methods": ["configureContactSettingsAsync", "configureContactSettingsAsync", "configureContactSettingsAsync", "configureContactSettingsOperationCallable", "configureContactSettingsCallable"] - }, - "ConfigureDnsSettings": { - "methods": ["configureDnsSettingsAsync", "configureDnsSettingsAsync", "configureDnsSettingsAsync", "configureDnsSettingsOperationCallable", "configureDnsSettingsCallable"] - }, - "ConfigureManagementSettings": { - "methods": ["configureManagementSettingsAsync", "configureManagementSettingsAsync", "configureManagementSettingsAsync", "configureManagementSettingsOperationCallable", "configureManagementSettingsCallable"] - }, - "DeleteRegistration": { - "methods": ["deleteRegistrationAsync", "deleteRegistrationAsync", "deleteRegistrationAsync", "deleteRegistrationOperationCallable", "deleteRegistrationCallable"] - }, - "ExportRegistration": { - "methods": ["exportRegistrationAsync", "exportRegistrationAsync", "exportRegistrationAsync", "exportRegistrationOperationCallable", "exportRegistrationCallable"] - }, - "GetRegistration": { - "methods": ["getRegistration", "getRegistration", "getRegistration", "getRegistrationCallable"] - }, - "ListRegistrations": { - "methods": ["listRegistrations", "listRegistrations", "listRegistrations", "listRegistrationsPagedCallable", "listRegistrationsCallable"] - }, - "RegisterDomain": { - "methods": ["registerDomainAsync", "registerDomainAsync", "registerDomainAsync", "registerDomainOperationCallable", "registerDomainCallable"] - }, - "ResetAuthorizationCode": { - "methods": ["resetAuthorizationCode", "resetAuthorizationCode", "resetAuthorizationCode", "resetAuthorizationCodeCallable"] - }, - "RetrieveAuthorizationCode": { - "methods": ["retrieveAuthorizationCode", "retrieveAuthorizationCode", "retrieveAuthorizationCode", "retrieveAuthorizationCodeCallable"] - }, - "RetrieveRegisterParameters": { - "methods": ["retrieveRegisterParameters", "retrieveRegisterParameters", "retrieveRegisterParameters", "retrieveRegisterParametersCallable"] - }, - "RetrieveTransferParameters": { - "methods": ["retrieveTransferParameters", "retrieveTransferParameters", "retrieveTransferParameters", "retrieveTransferParametersCallable"] - }, - "SearchDomains": { - "methods": ["searchDomains", "searchDomains", "searchDomains", "searchDomainsCallable"] - }, - "TransferDomain": { - "methods": ["transferDomainAsync", "transferDomainAsync", "transferDomainAsync", "transferDomainOperationCallable", "transferDomainCallable"] - }, - "UpdateRegistration": { - "methods": ["updateRegistrationAsync", "updateRegistrationAsync", "updateRegistrationOperationCallable", "updateRegistrationCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/package-info.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/package-info.java deleted file mode 100644 index 355487cb..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/package-info.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * A client to Cloud Domains API - * - *

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

======================= DomainsClient ======================= - * - *

Service Description: The Cloud Domains API enables management and configuration of domain - * names. - * - *

Sample for DomainsClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (DomainsClient domainsClient = DomainsClient.create()) {
- *   LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
- *   String query = "query107944136";
- *   SearchDomainsResponse response = domainsClient.searchDomains(location, query);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.domains.v1alpha2; - -import javax.annotation.Generated; diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStub.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStub.java deleted file mode 100644 index 5465e5ab..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStub.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.stub; - -import static com.google.cloud.domains.v1alpha2.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.domains.v1alpha2.AuthorizationCode; -import com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest; -import com.google.cloud.domains.v1alpha2.ExportRegistrationRequest; -import com.google.cloud.domains.v1alpha2.GetRegistrationRequest; -import com.google.cloud.domains.v1alpha2.ListRegistrationsRequest; -import com.google.cloud.domains.v1alpha2.ListRegistrationsResponse; -import com.google.cloud.domains.v1alpha2.OperationMetadata; -import com.google.cloud.domains.v1alpha2.RegisterDomainRequest; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest; -import com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest; -import com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse; -import com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse; -import com.google.cloud.domains.v1alpha2.SearchDomainsRequest; -import com.google.cloud.domains.v1alpha2.SearchDomainsResponse; -import com.google.cloud.domains.v1alpha2.TransferDomainRequest; -import com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the Domains service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class DomainsStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - return null; - } - - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { - return null; - } - - public UnaryCallable searchDomainsCallable() { - throw new UnsupportedOperationException("Not implemented: searchDomainsCallable()"); - } - - public UnaryCallable - retrieveRegisterParametersCallable() { - throw new UnsupportedOperationException( - "Not implemented: retrieveRegisterParametersCallable()"); - } - - public OperationCallable - registerDomainOperationCallable() { - throw new UnsupportedOperationException("Not implemented: registerDomainOperationCallable()"); - } - - public UnaryCallable registerDomainCallable() { - throw new UnsupportedOperationException("Not implemented: registerDomainCallable()"); - } - - public UnaryCallable - retrieveTransferParametersCallable() { - throw new UnsupportedOperationException( - "Not implemented: retrieveTransferParametersCallable()"); - } - - public OperationCallable - transferDomainOperationCallable() { - throw new UnsupportedOperationException("Not implemented: transferDomainOperationCallable()"); - } - - public UnaryCallable transferDomainCallable() { - throw new UnsupportedOperationException("Not implemented: transferDomainCallable()"); - } - - public UnaryCallable - listRegistrationsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listRegistrationsPagedCallable()"); - } - - public UnaryCallable - listRegistrationsCallable() { - throw new UnsupportedOperationException("Not implemented: listRegistrationsCallable()"); - } - - public UnaryCallable getRegistrationCallable() { - throw new UnsupportedOperationException("Not implemented: getRegistrationCallable()"); - } - - public OperationCallable - updateRegistrationOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateRegistrationOperationCallable()"); - } - - public UnaryCallable updateRegistrationCallable() { - throw new UnsupportedOperationException("Not implemented: updateRegistrationCallable()"); - } - - public OperationCallable - configureManagementSettingsOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: configureManagementSettingsOperationCallable()"); - } - - public UnaryCallable - configureManagementSettingsCallable() { - throw new UnsupportedOperationException( - "Not implemented: configureManagementSettingsCallable()"); - } - - public OperationCallable - configureDnsSettingsOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: configureDnsSettingsOperationCallable()"); - } - - public UnaryCallable configureDnsSettingsCallable() { - throw new UnsupportedOperationException("Not implemented: configureDnsSettingsCallable()"); - } - - public OperationCallable - configureContactSettingsOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: configureContactSettingsOperationCallable()"); - } - - public UnaryCallable - configureContactSettingsCallable() { - throw new UnsupportedOperationException("Not implemented: configureContactSettingsCallable()"); - } - - public OperationCallable - exportRegistrationOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: exportRegistrationOperationCallable()"); - } - - public UnaryCallable exportRegistrationCallable() { - throw new UnsupportedOperationException("Not implemented: exportRegistrationCallable()"); - } - - public OperationCallable - deleteRegistrationOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteRegistrationOperationCallable()"); - } - - public UnaryCallable deleteRegistrationCallable() { - throw new UnsupportedOperationException("Not implemented: deleteRegistrationCallable()"); - } - - public UnaryCallable - retrieveAuthorizationCodeCallable() { - throw new UnsupportedOperationException("Not implemented: retrieveAuthorizationCodeCallable()"); - } - - public UnaryCallable - resetAuthorizationCodeCallable() { - throw new UnsupportedOperationException("Not implemented: resetAuthorizationCodeCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java deleted file mode 100644 index 44611099..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java +++ /dev/null @@ -1,1158 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.stub; - -import static com.google.cloud.domains.v1alpha2.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.domains.v1alpha2.AuthorizationCode; -import com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest; -import com.google.cloud.domains.v1alpha2.ExportRegistrationRequest; -import com.google.cloud.domains.v1alpha2.GetRegistrationRequest; -import com.google.cloud.domains.v1alpha2.ListRegistrationsRequest; -import com.google.cloud.domains.v1alpha2.ListRegistrationsResponse; -import com.google.cloud.domains.v1alpha2.OperationMetadata; -import com.google.cloud.domains.v1alpha2.RegisterDomainRequest; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest; -import com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest; -import com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse; -import com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse; -import com.google.cloud.domains.v1alpha2.SearchDomainsRequest; -import com.google.cloud.domains.v1alpha2.SearchDomainsResponse; -import com.google.cloud.domains.v1alpha2.TransferDomainRequest; -import com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link DomainsStub}. - * - *

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

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

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DomainsStubSettings.Builder domainsSettingsBuilder = DomainsStubSettings.newBuilder();
- * domainsSettingsBuilder
- *     .searchDomainsSettings()
- *     .setRetrySettings(
- *         domainsSettingsBuilder.searchDomainsSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * DomainsStubSettings domainsSettings = domainsSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class DomainsStubSettings 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 - searchDomainsSettings; - private final UnaryCallSettings< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersSettings; - private final UnaryCallSettings registerDomainSettings; - private final OperationCallSettings - registerDomainOperationSettings; - private final UnaryCallSettings< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersSettings; - private final UnaryCallSettings transferDomainSettings; - private final OperationCallSettings - transferDomainOperationSettings; - private final PagedCallSettings< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings; - private final UnaryCallSettings getRegistrationSettings; - private final UnaryCallSettings updateRegistrationSettings; - private final OperationCallSettings - updateRegistrationOperationSettings; - private final UnaryCallSettings - configureManagementSettingsSettings; - private final OperationCallSettings< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationSettings; - private final UnaryCallSettings - configureDnsSettingsSettings; - private final OperationCallSettings - configureDnsSettingsOperationSettings; - private final UnaryCallSettings - configureContactSettingsSettings; - private final OperationCallSettings< - ConfigureContactSettingsRequest, Registration, OperationMetadata> - configureContactSettingsOperationSettings; - private final UnaryCallSettings exportRegistrationSettings; - private final OperationCallSettings - exportRegistrationOperationSettings; - private final UnaryCallSettings deleteRegistrationSettings; - private final OperationCallSettings - deleteRegistrationOperationSettings; - private final UnaryCallSettings - retrieveAuthorizationCodeSettings; - private final UnaryCallSettings - resetAuthorizationCodeSettings; - - private static final PagedListDescriptor< - ListRegistrationsRequest, ListRegistrationsResponse, Registration> - LIST_REGISTRATIONS_PAGE_STR_DESC = - new PagedListDescriptor< - ListRegistrationsRequest, ListRegistrationsResponse, Registration>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListRegistrationsRequest injectToken( - ListRegistrationsRequest payload, String token) { - return ListRegistrationsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListRegistrationsRequest injectPageSize( - ListRegistrationsRequest payload, int pageSize) { - return ListRegistrationsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListRegistrationsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListRegistrationsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListRegistrationsResponse payload) { - return payload.getRegistrationsList() == null - ? ImmutableList.of() - : payload.getRegistrationsList(); - } - }; - - private static final PagedListResponseFactory< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - LIST_REGISTRATIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListRegistrationsRequest, - ListRegistrationsResponse, - ListRegistrationsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListRegistrationsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_REGISTRATIONS_PAGE_STR_DESC, request, context); - return ListRegistrationsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to searchDomains. */ - public UnaryCallSettings searchDomainsSettings() { - return searchDomainsSettings; - } - - /** Returns the object with the settings used for calls to retrieveRegisterParameters. */ - public UnaryCallSettings - retrieveRegisterParametersSettings() { - return retrieveRegisterParametersSettings; - } - - /** Returns the object with the settings used for calls to registerDomain. */ - public UnaryCallSettings registerDomainSettings() { - return registerDomainSettings; - } - - /** Returns the object with the settings used for calls to registerDomain. */ - public OperationCallSettings - registerDomainOperationSettings() { - return registerDomainOperationSettings; - } - - /** Returns the object with the settings used for calls to retrieveTransferParameters. */ - public UnaryCallSettings - retrieveTransferParametersSettings() { - return retrieveTransferParametersSettings; - } - - /** Returns the object with the settings used for calls to transferDomain. */ - public UnaryCallSettings transferDomainSettings() { - return transferDomainSettings; - } - - /** Returns the object with the settings used for calls to transferDomain. */ - public OperationCallSettings - transferDomainOperationSettings() { - return transferDomainOperationSettings; - } - - /** Returns the object with the settings used for calls to listRegistrations. */ - public PagedCallSettings< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings() { - return listRegistrationsSettings; - } - - /** Returns the object with the settings used for calls to getRegistration. */ - public UnaryCallSettings getRegistrationSettings() { - return getRegistrationSettings; - } - - /** Returns the object with the settings used for calls to updateRegistration. */ - public UnaryCallSettings updateRegistrationSettings() { - return updateRegistrationSettings; - } - - /** Returns the object with the settings used for calls to updateRegistration. */ - public OperationCallSettings - updateRegistrationOperationSettings() { - return updateRegistrationOperationSettings; - } - - /** Returns the object with the settings used for calls to configureManagementSettings. */ - public UnaryCallSettings - configureManagementSettingsSettings() { - return configureManagementSettingsSettings; - } - - /** Returns the object with the settings used for calls to configureManagementSettings. */ - public OperationCallSettings - configureManagementSettingsOperationSettings() { - return configureManagementSettingsOperationSettings; - } - - /** Returns the object with the settings used for calls to configureDnsSettings. */ - public UnaryCallSettings configureDnsSettingsSettings() { - return configureDnsSettingsSettings; - } - - /** Returns the object with the settings used for calls to configureDnsSettings. */ - public OperationCallSettings - configureDnsSettingsOperationSettings() { - return configureDnsSettingsOperationSettings; - } - - /** Returns the object with the settings used for calls to configureContactSettings. */ - public UnaryCallSettings - configureContactSettingsSettings() { - return configureContactSettingsSettings; - } - - /** Returns the object with the settings used for calls to configureContactSettings. */ - public OperationCallSettings - configureContactSettingsOperationSettings() { - return configureContactSettingsOperationSettings; - } - - /** Returns the object with the settings used for calls to exportRegistration. */ - public UnaryCallSettings exportRegistrationSettings() { - return exportRegistrationSettings; - } - - /** Returns the object with the settings used for calls to exportRegistration. */ - public OperationCallSettings - exportRegistrationOperationSettings() { - return exportRegistrationOperationSettings; - } - - /** Returns the object with the settings used for calls to deleteRegistration. */ - public UnaryCallSettings deleteRegistrationSettings() { - return deleteRegistrationSettings; - } - - /** Returns the object with the settings used for calls to deleteRegistration. */ - public OperationCallSettings - deleteRegistrationOperationSettings() { - return deleteRegistrationOperationSettings; - } - - /** Returns the object with the settings used for calls to retrieveAuthorizationCode. */ - public UnaryCallSettings - retrieveAuthorizationCodeSettings() { - return retrieveAuthorizationCodeSettings; - } - - /** Returns the object with the settings used for calls to resetAuthorizationCode. */ - public UnaryCallSettings - resetAuthorizationCodeSettings() { - return resetAuthorizationCodeSettings; - } - - public DomainsStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcDomainsStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonDomainsStub.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 "domains.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "domains.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(DomainsStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(DomainsStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DomainsStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected DomainsStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - searchDomainsSettings = settingsBuilder.searchDomainsSettings().build(); - retrieveRegisterParametersSettings = - settingsBuilder.retrieveRegisterParametersSettings().build(); - registerDomainSettings = settingsBuilder.registerDomainSettings().build(); - registerDomainOperationSettings = settingsBuilder.registerDomainOperationSettings().build(); - retrieveTransferParametersSettings = - settingsBuilder.retrieveTransferParametersSettings().build(); - transferDomainSettings = settingsBuilder.transferDomainSettings().build(); - transferDomainOperationSettings = settingsBuilder.transferDomainOperationSettings().build(); - listRegistrationsSettings = settingsBuilder.listRegistrationsSettings().build(); - getRegistrationSettings = settingsBuilder.getRegistrationSettings().build(); - updateRegistrationSettings = settingsBuilder.updateRegistrationSettings().build(); - updateRegistrationOperationSettings = - settingsBuilder.updateRegistrationOperationSettings().build(); - configureManagementSettingsSettings = - settingsBuilder.configureManagementSettingsSettings().build(); - configureManagementSettingsOperationSettings = - settingsBuilder.configureManagementSettingsOperationSettings().build(); - configureDnsSettingsSettings = settingsBuilder.configureDnsSettingsSettings().build(); - configureDnsSettingsOperationSettings = - settingsBuilder.configureDnsSettingsOperationSettings().build(); - configureContactSettingsSettings = settingsBuilder.configureContactSettingsSettings().build(); - configureContactSettingsOperationSettings = - settingsBuilder.configureContactSettingsOperationSettings().build(); - exportRegistrationSettings = settingsBuilder.exportRegistrationSettings().build(); - exportRegistrationOperationSettings = - settingsBuilder.exportRegistrationOperationSettings().build(); - deleteRegistrationSettings = settingsBuilder.deleteRegistrationSettings().build(); - deleteRegistrationOperationSettings = - settingsBuilder.deleteRegistrationOperationSettings().build(); - retrieveAuthorizationCodeSettings = settingsBuilder.retrieveAuthorizationCodeSettings().build(); - resetAuthorizationCodeSettings = settingsBuilder.resetAuthorizationCodeSettings().build(); - } - - /** Builder for DomainsStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - searchDomainsSettings; - private final UnaryCallSettings.Builder< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersSettings; - private final UnaryCallSettings.Builder - registerDomainSettings; - private final OperationCallSettings.Builder< - RegisterDomainRequest, Registration, OperationMetadata> - registerDomainOperationSettings; - private final UnaryCallSettings.Builder< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersSettings; - private final UnaryCallSettings.Builder - transferDomainSettings; - private final OperationCallSettings.Builder< - TransferDomainRequest, Registration, OperationMetadata> - transferDomainOperationSettings; - private final PagedCallSettings.Builder< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings; - private final UnaryCallSettings.Builder - getRegistrationSettings; - private final UnaryCallSettings.Builder - updateRegistrationSettings; - private final OperationCallSettings.Builder< - UpdateRegistrationRequest, Registration, OperationMetadata> - updateRegistrationOperationSettings; - private final UnaryCallSettings.Builder - configureManagementSettingsSettings; - private final OperationCallSettings.Builder< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationSettings; - private final UnaryCallSettings.Builder - configureDnsSettingsSettings; - private final OperationCallSettings.Builder< - ConfigureDnsSettingsRequest, Registration, OperationMetadata> - configureDnsSettingsOperationSettings; - private final UnaryCallSettings.Builder - configureContactSettingsSettings; - private final OperationCallSettings.Builder< - ConfigureContactSettingsRequest, Registration, OperationMetadata> - configureContactSettingsOperationSettings; - private final UnaryCallSettings.Builder - exportRegistrationSettings; - private final OperationCallSettings.Builder< - ExportRegistrationRequest, Registration, OperationMetadata> - exportRegistrationOperationSettings; - private final UnaryCallSettings.Builder - deleteRegistrationSettings; - private final OperationCallSettings.Builder - deleteRegistrationOperationSettings; - private final UnaryCallSettings.Builder - retrieveAuthorizationCodeSettings; - private final UnaryCallSettings.Builder - resetAuthorizationCodeSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - searchDomainsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - retrieveRegisterParametersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - registerDomainSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - registerDomainOperationSettings = OperationCallSettings.newBuilder(); - retrieveTransferParametersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - transferDomainSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - transferDomainOperationSettings = OperationCallSettings.newBuilder(); - listRegistrationsSettings = PagedCallSettings.newBuilder(LIST_REGISTRATIONS_PAGE_STR_FACT); - getRegistrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateRegistrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateRegistrationOperationSettings = OperationCallSettings.newBuilder(); - configureManagementSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - configureManagementSettingsOperationSettings = OperationCallSettings.newBuilder(); - configureDnsSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - configureDnsSettingsOperationSettings = OperationCallSettings.newBuilder(); - configureContactSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - configureContactSettingsOperationSettings = OperationCallSettings.newBuilder(); - exportRegistrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - exportRegistrationOperationSettings = OperationCallSettings.newBuilder(); - deleteRegistrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteRegistrationOperationSettings = OperationCallSettings.newBuilder(); - retrieveAuthorizationCodeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - resetAuthorizationCodeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - searchDomainsSettings, - retrieveRegisterParametersSettings, - registerDomainSettings, - retrieveTransferParametersSettings, - transferDomainSettings, - listRegistrationsSettings, - getRegistrationSettings, - updateRegistrationSettings, - configureManagementSettingsSettings, - configureDnsSettingsSettings, - configureContactSettingsSettings, - exportRegistrationSettings, - deleteRegistrationSettings, - retrieveAuthorizationCodeSettings, - resetAuthorizationCodeSettings); - initDefaults(this); - } - - protected Builder(DomainsStubSettings settings) { - super(settings); - - searchDomainsSettings = settings.searchDomainsSettings.toBuilder(); - retrieveRegisterParametersSettings = settings.retrieveRegisterParametersSettings.toBuilder(); - registerDomainSettings = settings.registerDomainSettings.toBuilder(); - registerDomainOperationSettings = settings.registerDomainOperationSettings.toBuilder(); - retrieveTransferParametersSettings = settings.retrieveTransferParametersSettings.toBuilder(); - transferDomainSettings = settings.transferDomainSettings.toBuilder(); - transferDomainOperationSettings = settings.transferDomainOperationSettings.toBuilder(); - listRegistrationsSettings = settings.listRegistrationsSettings.toBuilder(); - getRegistrationSettings = settings.getRegistrationSettings.toBuilder(); - updateRegistrationSettings = settings.updateRegistrationSettings.toBuilder(); - updateRegistrationOperationSettings = - settings.updateRegistrationOperationSettings.toBuilder(); - configureManagementSettingsSettings = - settings.configureManagementSettingsSettings.toBuilder(); - configureManagementSettingsOperationSettings = - settings.configureManagementSettingsOperationSettings.toBuilder(); - configureDnsSettingsSettings = settings.configureDnsSettingsSettings.toBuilder(); - configureDnsSettingsOperationSettings = - settings.configureDnsSettingsOperationSettings.toBuilder(); - configureContactSettingsSettings = settings.configureContactSettingsSettings.toBuilder(); - configureContactSettingsOperationSettings = - settings.configureContactSettingsOperationSettings.toBuilder(); - exportRegistrationSettings = settings.exportRegistrationSettings.toBuilder(); - exportRegistrationOperationSettings = - settings.exportRegistrationOperationSettings.toBuilder(); - deleteRegistrationSettings = settings.deleteRegistrationSettings.toBuilder(); - deleteRegistrationOperationSettings = - settings.deleteRegistrationOperationSettings.toBuilder(); - retrieveAuthorizationCodeSettings = settings.retrieveAuthorizationCodeSettings.toBuilder(); - resetAuthorizationCodeSettings = settings.resetAuthorizationCodeSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - searchDomainsSettings, - retrieveRegisterParametersSettings, - registerDomainSettings, - retrieveTransferParametersSettings, - transferDomainSettings, - listRegistrationsSettings, - getRegistrationSettings, - updateRegistrationSettings, - configureManagementSettingsSettings, - configureDnsSettingsSettings, - configureContactSettingsSettings, - exportRegistrationSettings, - deleteRegistrationSettings, - retrieveAuthorizationCodeSettings, - resetAuthorizationCodeSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .searchDomainsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .retrieveRegisterParametersSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .registerDomainSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .retrieveTransferParametersSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .transferDomainSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .listRegistrationsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .getRegistrationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .updateRegistrationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .configureManagementSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .configureDnsSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .configureContactSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .exportRegistrationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .deleteRegistrationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .retrieveAuthorizationCodeSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .resetAuthorizationCodeSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .registerDomainOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .transferDomainOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .updateRegistrationOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .configureManagementSettingsOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .configureDnsSettingsOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .configureContactSettingsOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .exportRegistrationOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .deleteRegistrationOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to searchDomains. */ - public UnaryCallSettings.Builder - searchDomainsSettings() { - return searchDomainsSettings; - } - - /** Returns the builder for the settings used for calls to retrieveRegisterParameters. */ - public UnaryCallSettings.Builder< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersSettings() { - return retrieveRegisterParametersSettings; - } - - /** Returns the builder for the settings used for calls to registerDomain. */ - public UnaryCallSettings.Builder registerDomainSettings() { - return registerDomainSettings; - } - - /** Returns the builder for the settings used for calls to registerDomain. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - registerDomainOperationSettings() { - return registerDomainOperationSettings; - } - - /** Returns the builder for the settings used for calls to retrieveTransferParameters. */ - public UnaryCallSettings.Builder< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersSettings() { - return retrieveTransferParametersSettings; - } - - /** Returns the builder for the settings used for calls to transferDomain. */ - public UnaryCallSettings.Builder transferDomainSettings() { - return transferDomainSettings; - } - - /** Returns the builder for the settings used for calls to transferDomain. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - transferDomainOperationSettings() { - return transferDomainOperationSettings; - } - - /** Returns the builder for the settings used for calls to listRegistrations. */ - public PagedCallSettings.Builder< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings() { - return listRegistrationsSettings; - } - - /** Returns the builder for the settings used for calls to getRegistration. */ - public UnaryCallSettings.Builder - getRegistrationSettings() { - return getRegistrationSettings; - } - - /** Returns the builder for the settings used for calls to updateRegistration. */ - public UnaryCallSettings.Builder - updateRegistrationSettings() { - return updateRegistrationSettings; - } - - /** Returns the builder for the settings used for calls to updateRegistration. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - updateRegistrationOperationSettings() { - return updateRegistrationOperationSettings; - } - - /** Returns the builder for the settings used for calls to configureManagementSettings. */ - public UnaryCallSettings.Builder - configureManagementSettingsSettings() { - return configureManagementSettingsSettings; - } - - /** Returns the builder for the settings used for calls to configureManagementSettings. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationSettings() { - return configureManagementSettingsOperationSettings; - } - - /** Returns the builder for the settings used for calls to configureDnsSettings. */ - public UnaryCallSettings.Builder - configureDnsSettingsSettings() { - return configureDnsSettingsSettings; - } - - /** Returns the builder for the settings used for calls to configureDnsSettings. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - ConfigureDnsSettingsRequest, Registration, OperationMetadata> - configureDnsSettingsOperationSettings() { - return configureDnsSettingsOperationSettings; - } - - /** Returns the builder for the settings used for calls to configureContactSettings. */ - public UnaryCallSettings.Builder - configureContactSettingsSettings() { - return configureContactSettingsSettings; - } - - /** Returns the builder for the settings used for calls to configureContactSettings. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - ConfigureContactSettingsRequest, Registration, OperationMetadata> - configureContactSettingsOperationSettings() { - return configureContactSettingsOperationSettings; - } - - /** Returns the builder for the settings used for calls to exportRegistration. */ - public UnaryCallSettings.Builder - exportRegistrationSettings() { - return exportRegistrationSettings; - } - - /** Returns the builder for the settings used for calls to exportRegistration. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - exportRegistrationOperationSettings() { - return exportRegistrationOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteRegistration. */ - public UnaryCallSettings.Builder - deleteRegistrationSettings() { - return deleteRegistrationSettings; - } - - /** Returns the builder for the settings used for calls to deleteRegistration. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteRegistrationOperationSettings() { - return deleteRegistrationOperationSettings; - } - - /** Returns the builder for the settings used for calls to retrieveAuthorizationCode. */ - public UnaryCallSettings.Builder - retrieveAuthorizationCodeSettings() { - return retrieveAuthorizationCodeSettings; - } - - /** Returns the builder for the settings used for calls to resetAuthorizationCode. */ - public UnaryCallSettings.Builder - resetAuthorizationCodeSettings() { - return resetAuthorizationCodeSettings; - } - - @Override - public DomainsStubSettings build() throws IOException { - return new DomainsStubSettings(this); - } - } -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/GrpcDomainsCallableFactory.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/GrpcDomainsCallableFactory.java deleted file mode 100644 index da2b047d..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/GrpcDomainsCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the Domains service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcDomainsCallableFactory 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-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/GrpcDomainsStub.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/GrpcDomainsStub.java deleted file mode 100644 index 228b7369..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/GrpcDomainsStub.java +++ /dev/null @@ -1,771 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.stub; - -import static com.google.cloud.domains.v1alpha2.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.domains.v1alpha2.AuthorizationCode; -import com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest; -import com.google.cloud.domains.v1alpha2.ExportRegistrationRequest; -import com.google.cloud.domains.v1alpha2.GetRegistrationRequest; -import com.google.cloud.domains.v1alpha2.ListRegistrationsRequest; -import com.google.cloud.domains.v1alpha2.ListRegistrationsResponse; -import com.google.cloud.domains.v1alpha2.OperationMetadata; -import com.google.cloud.domains.v1alpha2.RegisterDomainRequest; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest; -import com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest; -import com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse; -import com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse; -import com.google.cloud.domains.v1alpha2.SearchDomainsRequest; -import com.google.cloud.domains.v1alpha2.SearchDomainsResponse; -import com.google.cloud.domains.v1alpha2.TransferDomainRequest; -import com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the Domains service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcDomainsStub extends DomainsStub { - private static final MethodDescriptor - searchDomainsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/SearchDomains") - .setRequestMarshaller( - ProtoUtils.marshaller(SearchDomainsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(SearchDomainsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/RetrieveRegisterParameters") - .setRequestMarshaller( - ProtoUtils.marshaller(RetrieveRegisterParametersRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(RetrieveRegisterParametersResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - registerDomainMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/RegisterDomain") - .setRequestMarshaller( - ProtoUtils.marshaller(RegisterDomainRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/RetrieveTransferParameters") - .setRequestMarshaller( - ProtoUtils.marshaller(RetrieveTransferParametersRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(RetrieveTransferParametersResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - transferDomainMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/TransferDomain") - .setRequestMarshaller( - ProtoUtils.marshaller(TransferDomainRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listRegistrationsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/ListRegistrations") - .setRequestMarshaller( - ProtoUtils.marshaller(ListRegistrationsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListRegistrationsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getRegistrationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/GetRegistration") - .setRequestMarshaller( - ProtoUtils.marshaller(GetRegistrationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Registration.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateRegistrationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/UpdateRegistration") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateRegistrationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - configureManagementSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.domains.v1alpha2.Domains/ConfigureManagementSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(ConfigureManagementSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - configureDnsSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/ConfigureDnsSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(ConfigureDnsSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - configureContactSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/ConfigureContactSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(ConfigureContactSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - exportRegistrationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/ExportRegistration") - .setRequestMarshaller( - ProtoUtils.marshaller(ExportRegistrationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteRegistrationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/DeleteRegistration") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteRegistrationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - retrieveAuthorizationCodeMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/RetrieveAuthorizationCode") - .setRequestMarshaller( - ProtoUtils.marshaller(RetrieveAuthorizationCodeRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AuthorizationCode.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - resetAuthorizationCodeMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/ResetAuthorizationCode") - .setRequestMarshaller( - ProtoUtils.marshaller(ResetAuthorizationCodeRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AuthorizationCode.getDefaultInstance())) - .build(); - - private final UnaryCallable searchDomainsCallable; - private final UnaryCallable - retrieveRegisterParametersCallable; - private final UnaryCallable registerDomainCallable; - private final OperationCallable - registerDomainOperationCallable; - private final UnaryCallable - retrieveTransferParametersCallable; - private final UnaryCallable transferDomainCallable; - private final OperationCallable - transferDomainOperationCallable; - private final UnaryCallable - listRegistrationsCallable; - private final UnaryCallable - listRegistrationsPagedCallable; - private final UnaryCallable getRegistrationCallable; - private final UnaryCallable updateRegistrationCallable; - private final OperationCallable - updateRegistrationOperationCallable; - private final UnaryCallable - configureManagementSettingsCallable; - private final OperationCallable< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationCallable; - private final UnaryCallable configureDnsSettingsCallable; - private final OperationCallable - configureDnsSettingsOperationCallable; - private final UnaryCallable - configureContactSettingsCallable; - private final OperationCallable - configureContactSettingsOperationCallable; - private final UnaryCallable exportRegistrationCallable; - private final OperationCallable - exportRegistrationOperationCallable; - private final UnaryCallable deleteRegistrationCallable; - private final OperationCallable - deleteRegistrationOperationCallable; - private final UnaryCallable - retrieveAuthorizationCodeCallable; - private final UnaryCallable - resetAuthorizationCodeCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcDomainsStub create(DomainsStubSettings settings) throws IOException { - return new GrpcDomainsStub(settings, ClientContext.create(settings)); - } - - public static final GrpcDomainsStub create(ClientContext clientContext) throws IOException { - return new GrpcDomainsStub(DomainsStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcDomainsStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcDomainsStub( - DomainsStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcDomainsStub, 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 GrpcDomainsStub(DomainsStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcDomainsCallableFactory()); - } - - /** - * Constructs an instance of GrpcDomainsStub, 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 GrpcDomainsStub( - DomainsStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings searchDomainsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(searchDomainsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("location", String.valueOf(request.getLocation())); - return params.build(); - }) - .build(); - GrpcCallSettings - retrieveRegisterParametersTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(retrieveRegisterParametersMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("location", String.valueOf(request.getLocation())); - return params.build(); - }) - .build(); - GrpcCallSettings registerDomainTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(registerDomainMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - retrieveTransferParametersTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(retrieveTransferParametersMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("location", String.valueOf(request.getLocation())); - return params.build(); - }) - .build(); - GrpcCallSettings transferDomainTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(transferDomainMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - listRegistrationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listRegistrationsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getRegistrationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getRegistrationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings updateRegistrationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateRegistrationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "registration.name", String.valueOf(request.getRegistration().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - configureManagementSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(configureManagementSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("registration", String.valueOf(request.getRegistration())); - return params.build(); - }) - .build(); - GrpcCallSettings configureDnsSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(configureDnsSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("registration", String.valueOf(request.getRegistration())); - return params.build(); - }) - .build(); - GrpcCallSettings - configureContactSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(configureContactSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("registration", String.valueOf(request.getRegistration())); - return params.build(); - }) - .build(); - GrpcCallSettings exportRegistrationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(exportRegistrationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteRegistrationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteRegistrationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - retrieveAuthorizationCodeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(retrieveAuthorizationCodeMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("registration", String.valueOf(request.getRegistration())); - return params.build(); - }) - .build(); - GrpcCallSettings - resetAuthorizationCodeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(resetAuthorizationCodeMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("registration", String.valueOf(request.getRegistration())); - return params.build(); - }) - .build(); - - this.searchDomainsCallable = - callableFactory.createUnaryCallable( - searchDomainsTransportSettings, settings.searchDomainsSettings(), clientContext); - this.retrieveRegisterParametersCallable = - callableFactory.createUnaryCallable( - retrieveRegisterParametersTransportSettings, - settings.retrieveRegisterParametersSettings(), - clientContext); - this.registerDomainCallable = - callableFactory.createUnaryCallable( - registerDomainTransportSettings, settings.registerDomainSettings(), clientContext); - this.registerDomainOperationCallable = - callableFactory.createOperationCallable( - registerDomainTransportSettings, - settings.registerDomainOperationSettings(), - clientContext, - operationsStub); - this.retrieveTransferParametersCallable = - callableFactory.createUnaryCallable( - retrieveTransferParametersTransportSettings, - settings.retrieveTransferParametersSettings(), - clientContext); - this.transferDomainCallable = - callableFactory.createUnaryCallable( - transferDomainTransportSettings, settings.transferDomainSettings(), clientContext); - this.transferDomainOperationCallable = - callableFactory.createOperationCallable( - transferDomainTransportSettings, - settings.transferDomainOperationSettings(), - clientContext, - operationsStub); - this.listRegistrationsCallable = - callableFactory.createUnaryCallable( - listRegistrationsTransportSettings, - settings.listRegistrationsSettings(), - clientContext); - this.listRegistrationsPagedCallable = - callableFactory.createPagedCallable( - listRegistrationsTransportSettings, - settings.listRegistrationsSettings(), - clientContext); - this.getRegistrationCallable = - callableFactory.createUnaryCallable( - getRegistrationTransportSettings, settings.getRegistrationSettings(), clientContext); - this.updateRegistrationCallable = - callableFactory.createUnaryCallable( - updateRegistrationTransportSettings, - settings.updateRegistrationSettings(), - clientContext); - this.updateRegistrationOperationCallable = - callableFactory.createOperationCallable( - updateRegistrationTransportSettings, - settings.updateRegistrationOperationSettings(), - clientContext, - operationsStub); - this.configureManagementSettingsCallable = - callableFactory.createUnaryCallable( - configureManagementSettingsTransportSettings, - settings.configureManagementSettingsSettings(), - clientContext); - this.configureManagementSettingsOperationCallable = - callableFactory.createOperationCallable( - configureManagementSettingsTransportSettings, - settings.configureManagementSettingsOperationSettings(), - clientContext, - operationsStub); - this.configureDnsSettingsCallable = - callableFactory.createUnaryCallable( - configureDnsSettingsTransportSettings, - settings.configureDnsSettingsSettings(), - clientContext); - this.configureDnsSettingsOperationCallable = - callableFactory.createOperationCallable( - configureDnsSettingsTransportSettings, - settings.configureDnsSettingsOperationSettings(), - clientContext, - operationsStub); - this.configureContactSettingsCallable = - callableFactory.createUnaryCallable( - configureContactSettingsTransportSettings, - settings.configureContactSettingsSettings(), - clientContext); - this.configureContactSettingsOperationCallable = - callableFactory.createOperationCallable( - configureContactSettingsTransportSettings, - settings.configureContactSettingsOperationSettings(), - clientContext, - operationsStub); - this.exportRegistrationCallable = - callableFactory.createUnaryCallable( - exportRegistrationTransportSettings, - settings.exportRegistrationSettings(), - clientContext); - this.exportRegistrationOperationCallable = - callableFactory.createOperationCallable( - exportRegistrationTransportSettings, - settings.exportRegistrationOperationSettings(), - clientContext, - operationsStub); - this.deleteRegistrationCallable = - callableFactory.createUnaryCallable( - deleteRegistrationTransportSettings, - settings.deleteRegistrationSettings(), - clientContext); - this.deleteRegistrationOperationCallable = - callableFactory.createOperationCallable( - deleteRegistrationTransportSettings, - settings.deleteRegistrationOperationSettings(), - clientContext, - operationsStub); - this.retrieveAuthorizationCodeCallable = - callableFactory.createUnaryCallable( - retrieveAuthorizationCodeTransportSettings, - settings.retrieveAuthorizationCodeSettings(), - clientContext); - this.resetAuthorizationCodeCallable = - callableFactory.createUnaryCallable( - resetAuthorizationCodeTransportSettings, - settings.resetAuthorizationCodeSettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable searchDomainsCallable() { - return searchDomainsCallable; - } - - @Override - public UnaryCallable - retrieveRegisterParametersCallable() { - return retrieveRegisterParametersCallable; - } - - @Override - public UnaryCallable registerDomainCallable() { - return registerDomainCallable; - } - - @Override - public OperationCallable - registerDomainOperationCallable() { - return registerDomainOperationCallable; - } - - @Override - public UnaryCallable - retrieveTransferParametersCallable() { - return retrieveTransferParametersCallable; - } - - @Override - public UnaryCallable transferDomainCallable() { - return transferDomainCallable; - } - - @Override - public OperationCallable - transferDomainOperationCallable() { - return transferDomainOperationCallable; - } - - @Override - public UnaryCallable - listRegistrationsCallable() { - return listRegistrationsCallable; - } - - @Override - public UnaryCallable - listRegistrationsPagedCallable() { - return listRegistrationsPagedCallable; - } - - @Override - public UnaryCallable getRegistrationCallable() { - return getRegistrationCallable; - } - - @Override - public UnaryCallable updateRegistrationCallable() { - return updateRegistrationCallable; - } - - @Override - public OperationCallable - updateRegistrationOperationCallable() { - return updateRegistrationOperationCallable; - } - - @Override - public UnaryCallable - configureManagementSettingsCallable() { - return configureManagementSettingsCallable; - } - - @Override - public OperationCallable - configureManagementSettingsOperationCallable() { - return configureManagementSettingsOperationCallable; - } - - @Override - public UnaryCallable configureDnsSettingsCallable() { - return configureDnsSettingsCallable; - } - - @Override - public OperationCallable - configureDnsSettingsOperationCallable() { - return configureDnsSettingsOperationCallable; - } - - @Override - public UnaryCallable - configureContactSettingsCallable() { - return configureContactSettingsCallable; - } - - @Override - public OperationCallable - configureContactSettingsOperationCallable() { - return configureContactSettingsOperationCallable; - } - - @Override - public UnaryCallable exportRegistrationCallable() { - return exportRegistrationCallable; - } - - @Override - public OperationCallable - exportRegistrationOperationCallable() { - return exportRegistrationOperationCallable; - } - - @Override - public UnaryCallable deleteRegistrationCallable() { - return deleteRegistrationCallable; - } - - @Override - public OperationCallable - deleteRegistrationOperationCallable() { - return deleteRegistrationOperationCallable; - } - - @Override - public UnaryCallable - retrieveAuthorizationCodeCallable() { - return retrieveAuthorizationCodeCallable; - } - - @Override - public UnaryCallable - resetAuthorizationCodeCallable() { - return resetAuthorizationCodeCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/HttpJsonDomainsCallableFactory.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/HttpJsonDomainsCallableFactory.java deleted file mode 100644 index 4b9cb199..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/HttpJsonDomainsCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the Domains service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonDomainsCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/HttpJsonDomainsStub.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/HttpJsonDomainsStub.java deleted file mode 100644 index 9abdd14b..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/HttpJsonDomainsStub.java +++ /dev/null @@ -1,1142 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.stub; - -import static com.google.cloud.domains.v1alpha2.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.domains.v1alpha2.AuthorizationCode; -import com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest; -import com.google.cloud.domains.v1alpha2.ExportRegistrationRequest; -import com.google.cloud.domains.v1alpha2.GetRegistrationRequest; -import com.google.cloud.domains.v1alpha2.ListRegistrationsRequest; -import com.google.cloud.domains.v1alpha2.ListRegistrationsResponse; -import com.google.cloud.domains.v1alpha2.OperationMetadata; -import com.google.cloud.domains.v1alpha2.RegisterDomainRequest; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest; -import com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest; -import com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse; -import com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse; -import com.google.cloud.domains.v1alpha2.SearchDomainsRequest; -import com.google.cloud.domains.v1alpha2.SearchDomainsResponse; -import com.google.cloud.domains.v1alpha2.TransferDomainRequest; -import com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the Domains service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonDomainsStub extends DomainsStub { - private static final TypeRegistry typeRegistry = - TypeRegistry.newBuilder() - .add(Empty.getDescriptor()) - .add(Registration.getDescriptor()) - .add(OperationMetadata.getDescriptor()) - .build(); - - private static final ApiMethodDescriptor - searchDomainsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/SearchDomains") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{location=projects/*/locations/*}/registrations:searchDomains", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "location", request.getLocation()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "query", request.getQuery()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SearchDomainsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/RetrieveRegisterParameters") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{location=projects/*/locations/*}/registrations:retrieveRegisterParameters", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "location", request.getLocation()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "domainName", request.getDomainName()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(RetrieveRegisterParametersResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - registerDomainMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/RegisterDomain") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{parent=projects/*/locations/*}/registrations:register", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (RegisterDomainRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/RetrieveTransferParameters") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{location=projects/*/locations/*}/registrations:retrieveTransferParameters", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "location", request.getLocation()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "domainName", request.getDomainName()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(RetrieveTransferParametersResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - transferDomainMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/TransferDomain") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{parent=projects/*/locations/*}/registrations:transfer", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (TransferDomainRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - listRegistrationsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/ListRegistrations") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{parent=projects/*/locations/*}/registrations", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListRegistrationsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getRegistrationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/GetRegistration") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*/locations/*/registrations/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Registration.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateRegistrationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/UpdateRegistration") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{registration.name=projects/*/locations/*/registrations/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration.name", request.getRegistration().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("registration", request.getRegistration(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (UpdateRegistrationRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - configureManagementSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.domains.v1alpha2.Domains/ConfigureManagementSettings") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{registration=projects/*/locations/*/registrations/*}:configureManagementSettings", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration", request.getRegistration()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", request.toBuilder().clearRegistration().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (ConfigureManagementSettingsRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - configureDnsSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/ConfigureDnsSettings") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{registration=projects/*/locations/*/registrations/*}:configureDnsSettings", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration", request.getRegistration()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", request.toBuilder().clearRegistration().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (ConfigureDnsSettingsRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - configureContactSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/ConfigureContactSettings") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{registration=projects/*/locations/*/registrations/*}:configureContactSettings", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration", request.getRegistration()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", request.toBuilder().clearRegistration().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (ConfigureContactSettingsRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - exportRegistrationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/ExportRegistration") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*/locations/*/registrations/*}:export", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (ExportRegistrationRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - deleteRegistrationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/DeleteRegistration") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*/locations/*/registrations/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (DeleteRegistrationRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - retrieveAuthorizationCodeMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/RetrieveAuthorizationCode") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{registration=projects/*/locations/*/registrations/*}:retrieveAuthorizationCode", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration", request.getRegistration()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AuthorizationCode.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - resetAuthorizationCodeMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1alpha2.Domains/ResetAuthorizationCode") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{registration=projects/*/locations/*/registrations/*}:resetAuthorizationCode", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration", request.getRegistration()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", request.toBuilder().clearRegistration().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AuthorizationCode.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable searchDomainsCallable; - private final UnaryCallable - retrieveRegisterParametersCallable; - private final UnaryCallable registerDomainCallable; - private final OperationCallable - registerDomainOperationCallable; - private final UnaryCallable - retrieveTransferParametersCallable; - private final UnaryCallable transferDomainCallable; - private final OperationCallable - transferDomainOperationCallable; - private final UnaryCallable - listRegistrationsCallable; - private final UnaryCallable - listRegistrationsPagedCallable; - private final UnaryCallable getRegistrationCallable; - private final UnaryCallable updateRegistrationCallable; - private final OperationCallable - updateRegistrationOperationCallable; - private final UnaryCallable - configureManagementSettingsCallable; - private final OperationCallable< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationCallable; - private final UnaryCallable configureDnsSettingsCallable; - private final OperationCallable - configureDnsSettingsOperationCallable; - private final UnaryCallable - configureContactSettingsCallable; - private final OperationCallable - configureContactSettingsOperationCallable; - private final UnaryCallable exportRegistrationCallable; - private final OperationCallable - exportRegistrationOperationCallable; - private final UnaryCallable deleteRegistrationCallable; - private final OperationCallable - deleteRegistrationOperationCallable; - private final UnaryCallable - retrieveAuthorizationCodeCallable; - private final UnaryCallable - resetAuthorizationCodeCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonOperationsStub httpJsonOperationsStub; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonDomainsStub create(DomainsStubSettings settings) throws IOException { - return new HttpJsonDomainsStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonDomainsStub create(ClientContext clientContext) throws IOException { - return new HttpJsonDomainsStub(DomainsStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonDomainsStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonDomainsStub( - DomainsStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonDomainsStub, 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 HttpJsonDomainsStub(DomainsStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new HttpJsonDomainsCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonDomainsStub, 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 HttpJsonDomainsStub( - DomainsStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.httpJsonOperationsStub = - HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); - - HttpJsonCallSettings - searchDomainsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(searchDomainsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - retrieveRegisterParametersTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(retrieveRegisterParametersMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings registerDomainTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(registerDomainMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - retrieveTransferParametersTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(retrieveTransferParametersMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings transferDomainTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(transferDomainMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listRegistrationsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listRegistrationsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getRegistrationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getRegistrationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings updateRegistrationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateRegistrationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - configureManagementSettingsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(configureManagementSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - configureDnsSettingsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(configureDnsSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - configureContactSettingsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(configureContactSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings exportRegistrationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(exportRegistrationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteRegistrationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteRegistrationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - retrieveAuthorizationCodeTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(retrieveAuthorizationCodeMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - resetAuthorizationCodeTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(resetAuthorizationCodeMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - - this.searchDomainsCallable = - callableFactory.createUnaryCallable( - searchDomainsTransportSettings, settings.searchDomainsSettings(), clientContext); - this.retrieveRegisterParametersCallable = - callableFactory.createUnaryCallable( - retrieveRegisterParametersTransportSettings, - settings.retrieveRegisterParametersSettings(), - clientContext); - this.registerDomainCallable = - callableFactory.createUnaryCallable( - registerDomainTransportSettings, settings.registerDomainSettings(), clientContext); - this.registerDomainOperationCallable = - callableFactory.createOperationCallable( - registerDomainTransportSettings, - settings.registerDomainOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.retrieveTransferParametersCallable = - callableFactory.createUnaryCallable( - retrieveTransferParametersTransportSettings, - settings.retrieveTransferParametersSettings(), - clientContext); - this.transferDomainCallable = - callableFactory.createUnaryCallable( - transferDomainTransportSettings, settings.transferDomainSettings(), clientContext); - this.transferDomainOperationCallable = - callableFactory.createOperationCallable( - transferDomainTransportSettings, - settings.transferDomainOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.listRegistrationsCallable = - callableFactory.createUnaryCallable( - listRegistrationsTransportSettings, - settings.listRegistrationsSettings(), - clientContext); - this.listRegistrationsPagedCallable = - callableFactory.createPagedCallable( - listRegistrationsTransportSettings, - settings.listRegistrationsSettings(), - clientContext); - this.getRegistrationCallable = - callableFactory.createUnaryCallable( - getRegistrationTransportSettings, settings.getRegistrationSettings(), clientContext); - this.updateRegistrationCallable = - callableFactory.createUnaryCallable( - updateRegistrationTransportSettings, - settings.updateRegistrationSettings(), - clientContext); - this.updateRegistrationOperationCallable = - callableFactory.createOperationCallable( - updateRegistrationTransportSettings, - settings.updateRegistrationOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.configureManagementSettingsCallable = - callableFactory.createUnaryCallable( - configureManagementSettingsTransportSettings, - settings.configureManagementSettingsSettings(), - clientContext); - this.configureManagementSettingsOperationCallable = - callableFactory.createOperationCallable( - configureManagementSettingsTransportSettings, - settings.configureManagementSettingsOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.configureDnsSettingsCallable = - callableFactory.createUnaryCallable( - configureDnsSettingsTransportSettings, - settings.configureDnsSettingsSettings(), - clientContext); - this.configureDnsSettingsOperationCallable = - callableFactory.createOperationCallable( - configureDnsSettingsTransportSettings, - settings.configureDnsSettingsOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.configureContactSettingsCallable = - callableFactory.createUnaryCallable( - configureContactSettingsTransportSettings, - settings.configureContactSettingsSettings(), - clientContext); - this.configureContactSettingsOperationCallable = - callableFactory.createOperationCallable( - configureContactSettingsTransportSettings, - settings.configureContactSettingsOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.exportRegistrationCallable = - callableFactory.createUnaryCallable( - exportRegistrationTransportSettings, - settings.exportRegistrationSettings(), - clientContext); - this.exportRegistrationOperationCallable = - callableFactory.createOperationCallable( - exportRegistrationTransportSettings, - settings.exportRegistrationOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.deleteRegistrationCallable = - callableFactory.createUnaryCallable( - deleteRegistrationTransportSettings, - settings.deleteRegistrationSettings(), - clientContext); - this.deleteRegistrationOperationCallable = - callableFactory.createOperationCallable( - deleteRegistrationTransportSettings, - settings.deleteRegistrationOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.retrieveAuthorizationCodeCallable = - callableFactory.createUnaryCallable( - retrieveAuthorizationCodeTransportSettings, - settings.retrieveAuthorizationCodeSettings(), - clientContext); - this.resetAuthorizationCodeCallable = - callableFactory.createUnaryCallable( - resetAuthorizationCodeTransportSettings, - settings.resetAuthorizationCodeSettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(searchDomainsMethodDescriptor); - methodDescriptors.add(retrieveRegisterParametersMethodDescriptor); - methodDescriptors.add(registerDomainMethodDescriptor); - methodDescriptors.add(retrieveTransferParametersMethodDescriptor); - methodDescriptors.add(transferDomainMethodDescriptor); - methodDescriptors.add(listRegistrationsMethodDescriptor); - methodDescriptors.add(getRegistrationMethodDescriptor); - methodDescriptors.add(updateRegistrationMethodDescriptor); - methodDescriptors.add(configureManagementSettingsMethodDescriptor); - methodDescriptors.add(configureDnsSettingsMethodDescriptor); - methodDescriptors.add(configureContactSettingsMethodDescriptor); - methodDescriptors.add(exportRegistrationMethodDescriptor); - methodDescriptors.add(deleteRegistrationMethodDescriptor); - methodDescriptors.add(retrieveAuthorizationCodeMethodDescriptor); - methodDescriptors.add(resetAuthorizationCodeMethodDescriptor); - return methodDescriptors; - } - - public HttpJsonOperationsStub getHttpJsonOperationsStub() { - return httpJsonOperationsStub; - } - - @Override - public UnaryCallable searchDomainsCallable() { - return searchDomainsCallable; - } - - @Override - public UnaryCallable - retrieveRegisterParametersCallable() { - return retrieveRegisterParametersCallable; - } - - @Override - public UnaryCallable registerDomainCallable() { - return registerDomainCallable; - } - - @Override - public OperationCallable - registerDomainOperationCallable() { - return registerDomainOperationCallable; - } - - @Override - public UnaryCallable - retrieveTransferParametersCallable() { - return retrieveTransferParametersCallable; - } - - @Override - public UnaryCallable transferDomainCallable() { - return transferDomainCallable; - } - - @Override - public OperationCallable - transferDomainOperationCallable() { - return transferDomainOperationCallable; - } - - @Override - public UnaryCallable - listRegistrationsCallable() { - return listRegistrationsCallable; - } - - @Override - public UnaryCallable - listRegistrationsPagedCallable() { - return listRegistrationsPagedCallable; - } - - @Override - public UnaryCallable getRegistrationCallable() { - return getRegistrationCallable; - } - - @Override - public UnaryCallable updateRegistrationCallable() { - return updateRegistrationCallable; - } - - @Override - public OperationCallable - updateRegistrationOperationCallable() { - return updateRegistrationOperationCallable; - } - - @Override - public UnaryCallable - configureManagementSettingsCallable() { - return configureManagementSettingsCallable; - } - - @Override - public OperationCallable - configureManagementSettingsOperationCallable() { - return configureManagementSettingsOperationCallable; - } - - @Override - public UnaryCallable configureDnsSettingsCallable() { - return configureDnsSettingsCallable; - } - - @Override - public OperationCallable - configureDnsSettingsOperationCallable() { - return configureDnsSettingsOperationCallable; - } - - @Override - public UnaryCallable - configureContactSettingsCallable() { - return configureContactSettingsCallable; - } - - @Override - public OperationCallable - configureContactSettingsOperationCallable() { - return configureContactSettingsOperationCallable; - } - - @Override - public UnaryCallable exportRegistrationCallable() { - return exportRegistrationCallable; - } - - @Override - public OperationCallable - exportRegistrationOperationCallable() { - return exportRegistrationOperationCallable; - } - - @Override - public UnaryCallable deleteRegistrationCallable() { - return deleteRegistrationCallable; - } - - @Override - public OperationCallable - deleteRegistrationOperationCallable() { - return deleteRegistrationOperationCallable; - } - - @Override - public UnaryCallable - retrieveAuthorizationCodeCallable() { - return retrieveAuthorizationCodeCallable; - } - - @Override - public UnaryCallable - resetAuthorizationCodeCallable() { - return resetAuthorizationCodeCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java deleted file mode 100644 index 9547e499..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java +++ /dev/null @@ -1,2911 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.httpjson.longrunning.OperationsClient; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.domains.v1beta1.stub.DomainsStub; -import com.google.cloud.domains.v1beta1.stub.DomainsStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.type.Money; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: The Cloud Domains API enables management and configuration of domain names. - * - *

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

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

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

To customize credentials: - * - *

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

To customize the endpoint: - * - *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class DomainsClient implements BackgroundResource { - private final DomainsSettings settings; - private final DomainsStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of DomainsClient with default settings. */ - public static final DomainsClient create() throws IOException { - return create(DomainsSettings.newBuilder().build()); - } - - /** - * Constructs an instance of DomainsClient, 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 DomainsClient create(DomainsSettings settings) throws IOException { - return new DomainsClient(settings); - } - - /** - * Constructs an instance of DomainsClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(DomainsSettings). - */ - public static final DomainsClient create(DomainsStub stub) { - return new DomainsClient(stub); - } - - /** - * Constructs an instance of DomainsClient, 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 DomainsClient(DomainsSettings settings) throws IOException { - this.settings = settings; - this.stub = ((DomainsStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected DomainsClient(DomainsStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final DomainsSettings getSettings() { - return settings; - } - - public DomainsStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches for available domain names similar to the provided query. - * - *

Availability results from this method are approximate; call `RetrieveRegisterParameters` on - * a domain before registering to confirm availability. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String query = "query107944136";
-   *   SearchDomainsResponse response = domainsClient.searchDomains(location, query);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param query Required. String used to search for available domain names. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SearchDomainsResponse searchDomains(LocationName location, String query) { - SearchDomainsRequest request = - SearchDomainsRequest.newBuilder() - .setLocation(location == null ? null : location.toString()) - .setQuery(query) - .build(); - return searchDomains(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches for available domain names similar to the provided query. - * - *

Availability results from this method are approximate; call `RetrieveRegisterParameters` on - * a domain before registering to confirm availability. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String location = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String query = "query107944136";
-   *   SearchDomainsResponse response = domainsClient.searchDomains(location, query);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param query Required. String used to search for available domain names. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SearchDomainsResponse searchDomains(String location, String query) { - SearchDomainsRequest request = - SearchDomainsRequest.newBuilder().setLocation(location).setQuery(query).build(); - return searchDomains(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches for available domain names similar to the provided query. - * - *

Availability results from this method are approximate; call `RetrieveRegisterParameters` on - * a domain before registering to confirm availability. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   SearchDomainsRequest request =
-   *       SearchDomainsRequest.newBuilder()
-   *           .setQuery("query107944136")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   SearchDomainsResponse response = domainsClient.searchDomains(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SearchDomainsResponse searchDomains(SearchDomainsRequest request) { - return searchDomainsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches for available domain names similar to the provided query. - * - *

Availability results from this method are approximate; call `RetrieveRegisterParameters` on - * a domain before registering to confirm availability. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   SearchDomainsRequest request =
-   *       SearchDomainsRequest.newBuilder()
-   *           .setQuery("query107944136")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.searchDomainsCallable().futureCall(request);
-   *   // Do something.
-   *   SearchDomainsResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable searchDomainsCallable() { - return stub.searchDomainsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to register a new domain name, including price and up-to-date - * availability. Use the returned values to call `RegisterDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String domainName = "domainName-1244085905";
-   *   RetrieveRegisterParametersResponse response =
-   *       domainsClient.retrieveRegisterParameters(location, domainName);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param domainName Required. The domain name. Unicode domain names must be expressed in Punycode - * format. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveRegisterParametersResponse retrieveRegisterParameters( - LocationName location, String domainName) { - RetrieveRegisterParametersRequest request = - RetrieveRegisterParametersRequest.newBuilder() - .setLocation(location == null ? null : location.toString()) - .setDomainName(domainName) - .build(); - return retrieveRegisterParameters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to register a new domain name, including price and up-to-date - * availability. Use the returned values to call `RegisterDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String location = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String domainName = "domainName-1244085905";
-   *   RetrieveRegisterParametersResponse response =
-   *       domainsClient.retrieveRegisterParameters(location, domainName);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param domainName Required. The domain name. Unicode domain names must be expressed in Punycode - * format. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveRegisterParametersResponse retrieveRegisterParameters( - String location, String domainName) { - RetrieveRegisterParametersRequest request = - RetrieveRegisterParametersRequest.newBuilder() - .setLocation(location) - .setDomainName(domainName) - .build(); - return retrieveRegisterParameters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to register a new domain name, including price and up-to-date - * availability. Use the returned values to call `RegisterDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveRegisterParametersRequest request =
-   *       RetrieveRegisterParametersRequest.newBuilder()
-   *           .setDomainName("domainName-1244085905")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   RetrieveRegisterParametersResponse response =
-   *       domainsClient.retrieveRegisterParameters(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveRegisterParametersResponse retrieveRegisterParameters( - RetrieveRegisterParametersRequest request) { - return retrieveRegisterParametersCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to register a new domain name, including price and up-to-date - * availability. Use the returned values to call `RegisterDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveRegisterParametersRequest request =
-   *       RetrieveRegisterParametersRequest.newBuilder()
-   *           .setDomainName("domainName-1244085905")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.retrieveRegisterParametersCallable().futureCall(request);
-   *   // Do something.
-   *   RetrieveRegisterParametersResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - retrieveRegisterParametersCallable() { - return stub.retrieveRegisterParametersCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Registers a new domain name and creates a corresponding `Registration` resource. - * - *

Call `RetrieveRegisterParameters` first to check availability of the domain name and - * determine parameters like price that are needed to build a call to this method. - * - *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which - * resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully - * registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the - * domain was not registered successfully, and you can safely delete the resource and retry - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Registration registration = Registration.newBuilder().build();
-   *   Money yearlyPrice = Money.newBuilder().build();
-   *   Registration response =
-   *       domainsClient.registerDomainAsync(parent, registration, yearlyPrice).get();
-   * }
-   * }
- * - * @param parent Required. The parent resource of the `Registration`. Must be in the format - * `projects/*/locations/*`. - * @param registration Required. The complete `Registration` resource to be created. - * @param yearlyPrice Required. Yearly price to register or renew the domain. The value that - * should be put here can be obtained from RetrieveRegisterParameters or SearchDomains calls. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture registerDomainAsync( - LocationName parent, Registration registration, Money yearlyPrice) { - RegisterDomainRequest request = - RegisterDomainRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setRegistration(registration) - .setYearlyPrice(yearlyPrice) - .build(); - return registerDomainAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Registers a new domain name and creates a corresponding `Registration` resource. - * - *

Call `RetrieveRegisterParameters` first to check availability of the domain name and - * determine parameters like price that are needed to build a call to this method. - * - *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which - * resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully - * registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the - * domain was not registered successfully, and you can safely delete the resource and retry - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Registration registration = Registration.newBuilder().build();
-   *   Money yearlyPrice = Money.newBuilder().build();
-   *   Registration response =
-   *       domainsClient.registerDomainAsync(parent, registration, yearlyPrice).get();
-   * }
-   * }
- * - * @param parent Required. The parent resource of the `Registration`. Must be in the format - * `projects/*/locations/*`. - * @param registration Required. The complete `Registration` resource to be created. - * @param yearlyPrice Required. Yearly price to register or renew the domain. The value that - * should be put here can be obtained from RetrieveRegisterParameters or SearchDomains calls. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture registerDomainAsync( - String parent, Registration registration, Money yearlyPrice) { - RegisterDomainRequest request = - RegisterDomainRequest.newBuilder() - .setParent(parent) - .setRegistration(registration) - .setYearlyPrice(yearlyPrice) - .build(); - return registerDomainAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Registers a new domain name and creates a corresponding `Registration` resource. - * - *

Call `RetrieveRegisterParameters` first to check availability of the domain name and - * determine parameters like price that are needed to build a call to this method. - * - *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which - * resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully - * registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the - * domain was not registered successfully, and you can safely delete the resource and retry - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegisterDomainRequest request =
-   *       RegisterDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllDomainNotices(new ArrayList())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   Registration response = domainsClient.registerDomainAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture registerDomainAsync( - RegisterDomainRequest request) { - return registerDomainOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Registers a new domain name and creates a corresponding `Registration` resource. - * - *

Call `RetrieveRegisterParameters` first to check availability of the domain name and - * determine parameters like price that are needed to build a call to this method. - * - *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which - * resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully - * registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the - * domain was not registered successfully, and you can safely delete the resource and retry - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegisterDomainRequest request =
-   *       RegisterDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllDomainNotices(new ArrayList())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.registerDomainOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - registerDomainOperationCallable() { - return stub.registerDomainOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Registers a new domain name and creates a corresponding `Registration` resource. - * - *

Call `RetrieveRegisterParameters` first to check availability of the domain name and - * determine parameters like price that are needed to build a call to this method. - * - *

A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which - * resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully - * registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the - * domain was not registered successfully, and you can safely delete the resource and retry - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegisterDomainRequest request =
-   *       RegisterDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllDomainNotices(new ArrayList())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future = domainsClient.registerDomainCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable registerDomainCallable() { - return stub.registerDomainCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For - * domains managed by Google Domains, transferring to Cloud Domains is not supported. - * - *

Use the returned values to call `TransferDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String domainName = "domainName-1244085905";
-   *   RetrieveTransferParametersResponse response =
-   *       domainsClient.retrieveTransferParameters(location, domainName);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param domainName Required. The domain name. Unicode domain names must be expressed in Punycode - * format. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveTransferParametersResponse retrieveTransferParameters( - LocationName location, String domainName) { - RetrieveTransferParametersRequest request = - RetrieveTransferParametersRequest.newBuilder() - .setLocation(location == null ? null : location.toString()) - .setDomainName(domainName) - .build(); - return retrieveTransferParameters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For - * domains managed by Google Domains, transferring to Cloud Domains is not supported. - * - *

Use the returned values to call `TransferDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String location = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String domainName = "domainName-1244085905";
-   *   RetrieveTransferParametersResponse response =
-   *       domainsClient.retrieveTransferParameters(location, domainName);
-   * }
-   * }
- * - * @param location Required. The location. Must be in the format `projects/*/locations/*`. - * @param domainName Required. The domain name. Unicode domain names must be expressed in Punycode - * format. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveTransferParametersResponse retrieveTransferParameters( - String location, String domainName) { - RetrieveTransferParametersRequest request = - RetrieveTransferParametersRequest.newBuilder() - .setLocation(location) - .setDomainName(domainName) - .build(); - return retrieveTransferParameters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For - * domains managed by Google Domains, transferring to Cloud Domains is not supported. - * - *

Use the returned values to call `TransferDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveTransferParametersRequest request =
-   *       RetrieveTransferParametersRequest.newBuilder()
-   *           .setDomainName("domainName-1244085905")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   RetrieveTransferParametersResponse response =
-   *       domainsClient.retrieveTransferParameters(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetrieveTransferParametersResponse retrieveTransferParameters( - RetrieveTransferParametersRequest request) { - return retrieveTransferParametersCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For - * domains managed by Google Domains, transferring to Cloud Domains is not supported. - * - *

Use the returned values to call `TransferDomain`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveTransferParametersRequest request =
-   *       RetrieveTransferParametersRequest.newBuilder()
-   *           .setDomainName("domainName-1244085905")
-   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.retrieveTransferParametersCallable().futureCall(request);
-   *   // Do something.
-   *   RetrieveTransferParametersResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - retrieveTransferParametersCallable() { - return stub.retrieveTransferParametersCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google - * Domains, transferring to Cloud Domains is not supported. - * - *

Before calling this method, go to the domain's current registrar to unlock the domain for - * transfer and retrieve the domain's transfer authorization code. Then call - * `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to - * build a call to this method. - * - *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take - * several days to complete the transfer process. The registrant can often speed up this process - * by approving the transfer through the current registrar, either by clicking a link in an email - * from the registrar or by visiting the registrar's website. - * - *

A few minutes after transfer approval, the resource transitions to state `ACTIVE`, - * indicating that the transfer was successful. If the transfer is rejected or the request expires - * without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, - * you can safely delete the resource and retry the transfer. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Registration registration = Registration.newBuilder().build();
-   *   Money yearlyPrice = Money.newBuilder().build();
-   *   AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .transferDomainAsync(parent, registration, yearlyPrice, authorizationCode)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. The parent resource of the `Registration`. Must be in the format - * `projects/*/locations/*`. - * @param registration Required. The complete `Registration` resource to be created. - *

You can leave `registration.dns_settings` unset to import the domain's current DNS - * configuration from its current registrar. Use this option only if you are sure that the - * domain's current DNS service does not cease upon transfer, as is often the case for DNS - * services provided for free by the registrar. - * @param yearlyPrice Required. Acknowledgement of the price to transfer or renew the domain for - * one year. Call `RetrieveTransferParameters` to obtain the price, which you must - * acknowledge. - * @param authorizationCode The domain's transfer authorization code. You can obtain this from the - * domain's current registrar. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture transferDomainAsync( - LocationName parent, - Registration registration, - Money yearlyPrice, - AuthorizationCode authorizationCode) { - TransferDomainRequest request = - TransferDomainRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setRegistration(registration) - .setYearlyPrice(yearlyPrice) - .setAuthorizationCode(authorizationCode) - .build(); - return transferDomainAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google - * Domains, transferring to Cloud Domains is not supported. - * - *

Before calling this method, go to the domain's current registrar to unlock the domain for - * transfer and retrieve the domain's transfer authorization code. Then call - * `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to - * build a call to this method. - * - *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take - * several days to complete the transfer process. The registrant can often speed up this process - * by approving the transfer through the current registrar, either by clicking a link in an email - * from the registrar or by visiting the registrar's website. - * - *

A few minutes after transfer approval, the resource transitions to state `ACTIVE`, - * indicating that the transfer was successful. If the transfer is rejected or the request expires - * without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, - * you can safely delete the resource and retry the transfer. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Registration registration = Registration.newBuilder().build();
-   *   Money yearlyPrice = Money.newBuilder().build();
-   *   AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .transferDomainAsync(parent, registration, yearlyPrice, authorizationCode)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. The parent resource of the `Registration`. Must be in the format - * `projects/*/locations/*`. - * @param registration Required. The complete `Registration` resource to be created. - *

You can leave `registration.dns_settings` unset to import the domain's current DNS - * configuration from its current registrar. Use this option only if you are sure that the - * domain's current DNS service does not cease upon transfer, as is often the case for DNS - * services provided for free by the registrar. - * @param yearlyPrice Required. Acknowledgement of the price to transfer or renew the domain for - * one year. Call `RetrieveTransferParameters` to obtain the price, which you must - * acknowledge. - * @param authorizationCode The domain's transfer authorization code. You can obtain this from the - * domain's current registrar. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture transferDomainAsync( - String parent, - Registration registration, - Money yearlyPrice, - AuthorizationCode authorizationCode) { - TransferDomainRequest request = - TransferDomainRequest.newBuilder() - .setParent(parent) - .setRegistration(registration) - .setYearlyPrice(yearlyPrice) - .setAuthorizationCode(authorizationCode) - .build(); - return transferDomainAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google - * Domains, transferring to Cloud Domains is not supported. - * - *

Before calling this method, go to the domain's current registrar to unlock the domain for - * transfer and retrieve the domain's transfer authorization code. Then call - * `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to - * build a call to this method. - * - *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take - * several days to complete the transfer process. The registrant can often speed up this process - * by approving the transfer through the current registrar, either by clicking a link in an email - * from the registrar or by visiting the registrar's website. - * - *

A few minutes after transfer approval, the resource transitions to state `ACTIVE`, - * indicating that the transfer was successful. If the transfer is rejected or the request expires - * without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, - * you can safely delete the resource and retry the transfer. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   TransferDomainRequest request =
-   *       TransferDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setAuthorizationCode(AuthorizationCode.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   Registration response = domainsClient.transferDomainAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture transferDomainAsync( - TransferDomainRequest request) { - return transferDomainOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google - * Domains, transferring to Cloud Domains is not supported. - * - *

Before calling this method, go to the domain's current registrar to unlock the domain for - * transfer and retrieve the domain's transfer authorization code. Then call - * `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to - * build a call to this method. - * - *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take - * several days to complete the transfer process. The registrant can often speed up this process - * by approving the transfer through the current registrar, either by clicking a link in an email - * from the registrar or by visiting the registrar's website. - * - *

A few minutes after transfer approval, the resource transitions to state `ACTIVE`, - * indicating that the transfer was successful. If the transfer is rejected or the request expires - * without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, - * you can safely delete the resource and retry the transfer. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   TransferDomainRequest request =
-   *       TransferDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setAuthorizationCode(AuthorizationCode.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.transferDomainOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - transferDomainOperationCallable() { - return stub.transferDomainOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google - * Domains, transferring to Cloud Domains is not supported. - * - *

Before calling this method, go to the domain's current registrar to unlock the domain for - * transfer and retrieve the domain's transfer authorization code. Then call - * `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to - * build a call to this method. - * - *

A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take - * several days to complete the transfer process. The registrant can often speed up this process - * by approving the transfer through the current registrar, either by clicking a link in an email - * from the registrar or by visiting the registrar's website. - * - *

A few minutes after transfer approval, the resource transitions to state `ACTIVE`, - * indicating that the transfer was successful. If the transfer is rejected or the request expires - * without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, - * you can safely delete the resource and retry the transfer. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   TransferDomainRequest request =
-   *       TransferDomainRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setYearlyPrice(Money.newBuilder().build())
-   *           .setAuthorizationCode(AuthorizationCode.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future = domainsClient.transferDomainCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable transferDomainCallable() { - return stub.transferDomainCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the `Registration` resources in a project. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ListRegistrationsRequest request =
-   *       ListRegistrationsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   for (Registration element : domainsClient.listRegistrations(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 ListRegistrationsPagedResponse listRegistrations(ListRegistrationsRequest request) { - return listRegistrationsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the `Registration` resources in a project. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   GetRegistrationRequest request =
-   *       GetRegistrationRequest.newBuilder()
-   *           .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   ApiFuture future = domainsClient.getRegistrationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getRegistrationCallable() { - return stub.getRegistrationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates select fields of a `Registration` resource, notably `labels`. To update other fields, - * use the appropriate custom update method: - * - *
    - *
  • To update management settings, see `ConfigureManagementSettings` - *
  • To update DNS configuration, see `ConfigureDnsSettings` - *
  • To update contact information, see `ConfigureContactSettings` - *
- * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   Registration registration = Registration.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response = domainsClient.updateRegistrationAsync(registration, updateMask).get();
-   * }
-   * }
- * - * @param registration Fields of the `Registration` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the labels are being updated, the `update_mask` - * is `"labels"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateRegistrationAsync( - Registration registration, FieldMask updateMask) { - UpdateRegistrationRequest request = - UpdateRegistrationRequest.newBuilder() - .setRegistration(registration) - .setUpdateMask(updateMask) - .build(); - return updateRegistrationAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates select fields of a `Registration` resource, notably `labels`. To update other fields, - * use the appropriate custom update method: - * - *
    - *
  • To update management settings, see `ConfigureManagementSettings` - *
  • To update DNS configuration, see `ConfigureDnsSettings` - *
  • To update contact information, see `ConfigureContactSettings` - *
- * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   UpdateRegistrationRequest request =
-   *       UpdateRegistrationRequest.newBuilder()
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Registration response = domainsClient.updateRegistrationAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateRegistrationAsync( - UpdateRegistrationRequest request) { - return updateRegistrationOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates select fields of a `Registration` resource, notably `labels`. To update other fields, - * use the appropriate custom update method: - * - *
    - *
  • To update management settings, see `ConfigureManagementSettings` - *
  • To update DNS configuration, see `ConfigureDnsSettings` - *
  • To update contact information, see `ConfigureContactSettings` - *
- * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   UpdateRegistrationRequest request =
-   *       UpdateRegistrationRequest.newBuilder()
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.updateRegistrationOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - updateRegistrationOperationCallable() { - return stub.updateRegistrationOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates select fields of a `Registration` resource, notably `labels`. To update other fields, - * use the appropriate custom update method: - * - *
    - *
  • To update management settings, see `ConfigureManagementSettings` - *
  • To update DNS configuration, see `ConfigureDnsSettings` - *
  • To update contact information, see `ConfigureContactSettings` - *
- * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   UpdateRegistrationRequest request =
-   *       UpdateRegistrationRequest.newBuilder()
-   *           .setRegistration(Registration.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = domainsClient.updateRegistrationCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateRegistrationCallable() { - return stub.updateRegistrationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s management settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   ManagementSettings managementSettings = ManagementSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .configureManagementSettingsAsync(registration, managementSettings, updateMask)
-   *           .get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose management settings are - * being updated, in the format `projects/*/locations/*/registrations/*`. - * @param managementSettings Fields of the `ManagementSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the transfer lock is being updated, the - * `update_mask` is `"transfer_lock_state"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureManagementSettingsAsync( - RegistrationName registration, ManagementSettings managementSettings, FieldMask updateMask) { - ConfigureManagementSettingsRequest request = - ConfigureManagementSettingsRequest.newBuilder() - .setRegistration(registration == null ? null : registration.toString()) - .setManagementSettings(managementSettings) - .setUpdateMask(updateMask) - .build(); - return configureManagementSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s management settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   ManagementSettings managementSettings = ManagementSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .configureManagementSettingsAsync(registration, managementSettings, updateMask)
-   *           .get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose management settings are - * being updated, in the format `projects/*/locations/*/registrations/*`. - * @param managementSettings Fields of the `ManagementSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the transfer lock is being updated, the - * `update_mask` is `"transfer_lock_state"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureManagementSettingsAsync( - String registration, ManagementSettings managementSettings, FieldMask updateMask) { - ConfigureManagementSettingsRequest request = - ConfigureManagementSettingsRequest.newBuilder() - .setRegistration(registration) - .setManagementSettings(managementSettings) - .setUpdateMask(updateMask) - .build(); - return configureManagementSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s management settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureManagementSettingsRequest request =
-   *       ConfigureManagementSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setManagementSettings(ManagementSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Registration response = domainsClient.configureManagementSettingsAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureManagementSettingsAsync( - ConfigureManagementSettingsRequest request) { - return configureManagementSettingsOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s management settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureManagementSettingsRequest request =
-   *       ConfigureManagementSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setManagementSettings(ManagementSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.configureManagementSettingsOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationCallable() { - return stub.configureManagementSettingsOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s management settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureManagementSettingsRequest request =
-   *       ConfigureManagementSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setManagementSettings(ManagementSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.configureManagementSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - configureManagementSettingsCallable() { - return stub.configureManagementSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s DNS settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   DnsSettings dnsSettings = DnsSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose DNS settings are being - * updated, in the format `projects/*/locations/*/registrations/*`. - * @param dnsSettings Fields of the `DnsSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the name servers are being updated for an - * existing Custom DNS configuration, the `update_mask` is `"custom_dns.name_servers"`. - *

When changing the DNS provider from one type to another, pass the new provider's field - * name as part of the field mask. For example, when changing from a Google Domains DNS - * configuration to a Custom DNS configuration, the `update_mask` is `"custom_dns"`. // - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureDnsSettingsAsync( - RegistrationName registration, DnsSettings dnsSettings, FieldMask updateMask) { - ConfigureDnsSettingsRequest request = - ConfigureDnsSettingsRequest.newBuilder() - .setRegistration(registration == null ? null : registration.toString()) - .setDnsSettings(dnsSettings) - .setUpdateMask(updateMask) - .build(); - return configureDnsSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s DNS settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   DnsSettings dnsSettings = DnsSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose DNS settings are being - * updated, in the format `projects/*/locations/*/registrations/*`. - * @param dnsSettings Fields of the `DnsSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the name servers are being updated for an - * existing Custom DNS configuration, the `update_mask` is `"custom_dns.name_servers"`. - *

When changing the DNS provider from one type to another, pass the new provider's field - * name as part of the field mask. For example, when changing from a Google Domains DNS - * configuration to a Custom DNS configuration, the `update_mask` is `"custom_dns"`. // - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureDnsSettingsAsync( - String registration, DnsSettings dnsSettings, FieldMask updateMask) { - ConfigureDnsSettingsRequest request = - ConfigureDnsSettingsRequest.newBuilder() - .setRegistration(registration) - .setDnsSettings(dnsSettings) - .setUpdateMask(updateMask) - .build(); - return configureDnsSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s DNS settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureDnsSettingsRequest request =
-   *       ConfigureDnsSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setDnsSettings(DnsSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   Registration response = domainsClient.configureDnsSettingsAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureDnsSettingsAsync( - ConfigureDnsSettingsRequest request) { - return configureDnsSettingsOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s DNS settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureDnsSettingsRequest request =
-   *       ConfigureDnsSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setDnsSettings(DnsSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.configureDnsSettingsOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - configureDnsSettingsOperationCallable() { - return stub.configureDnsSettingsOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s DNS settings. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureDnsSettingsRequest request =
-   *       ConfigureDnsSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setDnsSettings(DnsSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.configureDnsSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - configureDnsSettingsCallable() { - return stub.configureDnsSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's - * registrant contact . - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   ContactSettings contactSettings = ContactSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .configureContactSettingsAsync(registration, contactSettings, updateMask)
-   *           .get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose contact settings are being - * updated, in the format `projects/*/locations/*/registrations/*`. - * @param contactSettings Fields of the `ContactSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the registrant contact is being updated, the - * `update_mask` is `"registrant_contact"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureContactSettingsAsync( - RegistrationName registration, ContactSettings contactSettings, FieldMask updateMask) { - ConfigureContactSettingsRequest request = - ConfigureContactSettingsRequest.newBuilder() - .setRegistration(registration == null ? null : registration.toString()) - .setContactSettings(contactSettings) - .setUpdateMask(updateMask) - .build(); - return configureContactSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's - * registrant contact . - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   ContactSettings contactSettings = ContactSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Registration response =
-   *       domainsClient
-   *           .configureContactSettingsAsync(registration, contactSettings, updateMask)
-   *           .get();
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose contact settings are being - * updated, in the format `projects/*/locations/*/registrations/*`. - * @param contactSettings Fields of the `ContactSettings` to update. - * @param updateMask Required. The field mask describing which fields to update as a - * comma-separated list. For example, if only the registrant contact is being updated, the - * `update_mask` is `"registrant_contact"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureContactSettingsAsync( - String registration, ContactSettings contactSettings, FieldMask updateMask) { - ConfigureContactSettingsRequest request = - ConfigureContactSettingsRequest.newBuilder() - .setRegistration(registration) - .setContactSettings(contactSettings) - .setUpdateMask(updateMask) - .build(); - return configureContactSettingsAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's - * registrant contact . - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureContactSettingsRequest request =
-   *       ConfigureContactSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setContactSettings(ContactSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   Registration response = domainsClient.configureContactSettingsAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture configureContactSettingsAsync( - ConfigureContactSettingsRequest request) { - return configureContactSettingsOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's - * registrant contact . - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureContactSettingsRequest request =
-   *       ConfigureContactSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setContactSettings(ContactSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.configureContactSettingsOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - configureContactSettingsOperationCallable() { - return stub.configureContactSettingsOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's - * registrant contact . - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ConfigureContactSettingsRequest request =
-   *       ConfigureContactSettingsRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .setContactSettings(ContactSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .addAllContactNotices(new ArrayList())
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.configureContactSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - configureContactSettingsCallable() { - return stub.configureContactSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. - * - *

When an active domain is successfully exported, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   Registration response = domainsClient.exportRegistrationAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the `Registration` to export, in the format - * `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture exportRegistrationAsync( - RegistrationName name) { - ExportRegistrationRequest request = - ExportRegistrationRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return exportRegistrationAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. - * - *

When an active domain is successfully exported, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   Registration response = domainsClient.exportRegistrationAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the `Registration` to export, in the format - * `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture exportRegistrationAsync( - String name) { - ExportRegistrationRequest request = - ExportRegistrationRequest.newBuilder().setName(name).build(); - return exportRegistrationAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. - * - *

When an active domain is successfully exported, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ExportRegistrationRequest request =
-   *       ExportRegistrationRequest.newBuilder()
-   *           .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   Registration response = domainsClient.exportRegistrationAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture exportRegistrationAsync( - ExportRegistrationRequest request) { - return exportRegistrationOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. - * - *

When an active domain is successfully exported, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ExportRegistrationRequest request =
-   *       ExportRegistrationRequest.newBuilder()
-   *           .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   OperationFuture future =
-   *       domainsClient.exportRegistrationOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Registration response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - exportRegistrationOperationCallable() { - return stub.exportRegistrationOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. - * - *

When an active domain is successfully exported, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

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

This method works on any `Registration` resource using [Subscription or Commitment - * billing](/domains/pricing#billing-models), provided that the resource was created at least 1 - * day in the past. - * - *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this - * method works if: - * - *

    - *
  • `state` is `EXPORTED` with `expire_time` in the past - *
  • `state` is `REGISTRATION_FAILED` - *
  • `state` is `TRANSFER_FAILED` - *
- * - *

When an active registration is successfully deleted, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

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

This method works on any `Registration` resource using [Subscription or Commitment - * billing](/domains/pricing#billing-models), provided that the resource was created at least 1 - * day in the past. - * - *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this - * method works if: - * - *

    - *
  • `state` is `EXPORTED` with `expire_time` in the past - *
  • `state` is `REGISTRATION_FAILED` - *
  • `state` is `TRANSFER_FAILED` - *
- * - *

When an active registration is successfully deleted, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

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

This method works on any `Registration` resource using [Subscription or Commitment - * billing](/domains/pricing#billing-models), provided that the resource was created at least 1 - * day in the past. - * - *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this - * method works if: - * - *

    - *
  • `state` is `EXPORTED` with `expire_time` in the past - *
  • `state` is `REGISTRATION_FAILED` - *
  • `state` is `TRANSFER_FAILED` - *
- * - *

When an active registration is successfully deleted, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

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

This method works on any `Registration` resource using [Subscription or Commitment - * billing](/domains/pricing#billing-models), provided that the resource was created at least 1 - * day in the past. - * - *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this - * method works if: - * - *

    - *
  • `state` is `EXPORTED` with `expire_time` in the past - *
  • `state` is `REGISTRATION_FAILED` - *
  • `state` is `TRANSFER_FAILED` - *
- * - *

When an active registration is successfully deleted, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

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

This method works on any `Registration` resource using [Subscription or Commitment - * billing](/domains/pricing#billing-models), provided that the resource was created at least 1 - * day in the past. - * - *

For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this - * method works if: - * - *

    - *
  • `state` is `EXPORTED` with `expire_time` in the past - *
  • `state` is `REGISTRATION_FAILED` - *
  • `state` is `TRANSFER_FAILED` - *
- * - *

When an active registration is successfully deleted, you can continue to use the domain in - * [Google Domains](https://domains.google/) until it expires. The calling user becomes the - * domain's sole owner in Google Domains, and permissions for the domain are subsequently managed - * there. The domain does not renew automatically unless the new owner sets up billing in Google - * Domains. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   DeleteRegistrationRequest request =
-   *       DeleteRegistrationRequest.newBuilder()
-   *           .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   ApiFuture future = domainsClient.deleteRegistrationCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteRegistrationCallable() { - return stub.deleteRegistrationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the authorization code of the `Registration` for the purpose of transferring the domain to - * another registrar. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   AuthorizationCode response = domainsClient.retrieveAuthorizationCode(registration);
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose authorization code is being - * retrieved, in the format `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode retrieveAuthorizationCode(RegistrationName registration) { - RetrieveAuthorizationCodeRequest request = - RetrieveAuthorizationCodeRequest.newBuilder() - .setRegistration(registration == null ? null : registration.toString()) - .build(); - return retrieveAuthorizationCode(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the authorization code of the `Registration` for the purpose of transferring the domain to - * another registrar. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   AuthorizationCode response = domainsClient.retrieveAuthorizationCode(registration);
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose authorization code is being - * retrieved, in the format `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode retrieveAuthorizationCode(String registration) { - RetrieveAuthorizationCodeRequest request = - RetrieveAuthorizationCodeRequest.newBuilder().setRegistration(registration).build(); - return retrieveAuthorizationCode(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the authorization code of the `Registration` for the purpose of transferring the domain to - * another registrar. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveAuthorizationCodeRequest request =
-   *       RetrieveAuthorizationCodeRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   AuthorizationCode response = domainsClient.retrieveAuthorizationCode(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode retrieveAuthorizationCode( - RetrieveAuthorizationCodeRequest request) { - return retrieveAuthorizationCodeCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the authorization code of the `Registration` for the purpose of transferring the domain to - * another registrar. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RetrieveAuthorizationCodeRequest request =
-   *       RetrieveAuthorizationCodeRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.retrieveAuthorizationCodeCallable().futureCall(request);
-   *   // Do something.
-   *   AuthorizationCode response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - retrieveAuthorizationCodeCallable() { - return stub.retrieveAuthorizationCodeCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resets the authorization code of the `Registration` to a new random string. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   RegistrationName registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]");
-   *   AuthorizationCode response = domainsClient.resetAuthorizationCode(registration);
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose authorization code is being - * reset, in the format `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode resetAuthorizationCode(RegistrationName registration) { - ResetAuthorizationCodeRequest request = - ResetAuthorizationCodeRequest.newBuilder() - .setRegistration(registration == null ? null : registration.toString()) - .build(); - return resetAuthorizationCode(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resets the authorization code of the `Registration` to a new random string. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   String registration =
-   *       RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString();
-   *   AuthorizationCode response = domainsClient.resetAuthorizationCode(registration);
-   * }
-   * }
- * - * @param registration Required. The name of the `Registration` whose authorization code is being - * reset, in the format `projects/*/locations/*/registrations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode resetAuthorizationCode(String registration) { - ResetAuthorizationCodeRequest request = - ResetAuthorizationCodeRequest.newBuilder().setRegistration(registration).build(); - return resetAuthorizationCode(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resets the authorization code of the `Registration` to a new random string. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ResetAuthorizationCodeRequest request =
-   *       ResetAuthorizationCodeRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   AuthorizationCode response = domainsClient.resetAuthorizationCode(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuthorizationCode resetAuthorizationCode(ResetAuthorizationCodeRequest request) { - return resetAuthorizationCodeCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resets the authorization code of the `Registration` to a new random string. - * - *

You can call this method only after 60 days have elapsed since the initial domain - * registration. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DomainsClient domainsClient = DomainsClient.create()) {
-   *   ResetAuthorizationCodeRequest request =
-   *       ResetAuthorizationCodeRequest.newBuilder()
-   *           .setRegistration(
-   *               RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       domainsClient.resetAuthorizationCodeCallable().futureCall(request);
-   *   // Do something.
-   *   AuthorizationCode response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - resetAuthorizationCodeCallable() { - return stub.resetAuthorizationCodeCallable(); - } - - @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 ListRegistrationsPagedResponse - extends AbstractPagedListResponse< - ListRegistrationsRequest, - ListRegistrationsResponse, - Registration, - ListRegistrationsPage, - ListRegistrationsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListRegistrationsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListRegistrationsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListRegistrationsPagedResponse(ListRegistrationsPage page) { - super(page, ListRegistrationsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListRegistrationsPage - extends AbstractPage< - ListRegistrationsRequest, - ListRegistrationsResponse, - Registration, - ListRegistrationsPage> { - - private ListRegistrationsPage( - PageContext context, - ListRegistrationsResponse response) { - super(context, response); - } - - private static ListRegistrationsPage createEmptyPage() { - return new ListRegistrationsPage(null, null); - } - - @Override - protected ListRegistrationsPage createPage( - PageContext context, - ListRegistrationsResponse response) { - return new ListRegistrationsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListRegistrationsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListRegistrationsRequest, - ListRegistrationsResponse, - Registration, - ListRegistrationsPage, - ListRegistrationsFixedSizeCollection> { - - private ListRegistrationsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListRegistrationsFixedSizeCollection createEmptyCollection() { - return new ListRegistrationsFixedSizeCollection(null, 0); - } - - @Override - protected ListRegistrationsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListRegistrationsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsSettings.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsSettings.java deleted file mode 100644 index f6516dd6..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsSettings.java +++ /dev/null @@ -1,470 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1; - -import static com.google.cloud.domains.v1beta1.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.domains.v1beta1.stub.DomainsStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link DomainsClient}. - * - *

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

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

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DomainsSettings.Builder domainsSettingsBuilder = DomainsSettings.newBuilder();
- * domainsSettingsBuilder
- *     .searchDomainsSettings()
- *     .setRetrySettings(
- *         domainsSettingsBuilder.searchDomainsSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * DomainsSettings domainsSettings = domainsSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class DomainsSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to searchDomains. */ - public UnaryCallSettings searchDomainsSettings() { - return ((DomainsStubSettings) getStubSettings()).searchDomainsSettings(); - } - - /** Returns the object with the settings used for calls to retrieveRegisterParameters. */ - public UnaryCallSettings - retrieveRegisterParametersSettings() { - return ((DomainsStubSettings) getStubSettings()).retrieveRegisterParametersSettings(); - } - - /** Returns the object with the settings used for calls to registerDomain. */ - public UnaryCallSettings registerDomainSettings() { - return ((DomainsStubSettings) getStubSettings()).registerDomainSettings(); - } - - /** Returns the object with the settings used for calls to registerDomain. */ - public OperationCallSettings - registerDomainOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).registerDomainOperationSettings(); - } - - /** Returns the object with the settings used for calls to retrieveTransferParameters. */ - public UnaryCallSettings - retrieveTransferParametersSettings() { - return ((DomainsStubSettings) getStubSettings()).retrieveTransferParametersSettings(); - } - - /** Returns the object with the settings used for calls to transferDomain. */ - public UnaryCallSettings transferDomainSettings() { - return ((DomainsStubSettings) getStubSettings()).transferDomainSettings(); - } - - /** Returns the object with the settings used for calls to transferDomain. */ - public OperationCallSettings - transferDomainOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).transferDomainOperationSettings(); - } - - /** Returns the object with the settings used for calls to listRegistrations. */ - public PagedCallSettings< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings() { - return ((DomainsStubSettings) getStubSettings()).listRegistrationsSettings(); - } - - /** Returns the object with the settings used for calls to getRegistration. */ - public UnaryCallSettings getRegistrationSettings() { - return ((DomainsStubSettings) getStubSettings()).getRegistrationSettings(); - } - - /** Returns the object with the settings used for calls to updateRegistration. */ - public UnaryCallSettings updateRegistrationSettings() { - return ((DomainsStubSettings) getStubSettings()).updateRegistrationSettings(); - } - - /** Returns the object with the settings used for calls to updateRegistration. */ - public OperationCallSettings - updateRegistrationOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).updateRegistrationOperationSettings(); - } - - /** Returns the object with the settings used for calls to configureManagementSettings. */ - public UnaryCallSettings - configureManagementSettingsSettings() { - return ((DomainsStubSettings) getStubSettings()).configureManagementSettingsSettings(); - } - - /** Returns the object with the settings used for calls to configureManagementSettings. */ - public OperationCallSettings - configureManagementSettingsOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).configureManagementSettingsOperationSettings(); - } - - /** Returns the object with the settings used for calls to configureDnsSettings. */ - public UnaryCallSettings configureDnsSettingsSettings() { - return ((DomainsStubSettings) getStubSettings()).configureDnsSettingsSettings(); - } - - /** Returns the object with the settings used for calls to configureDnsSettings. */ - public OperationCallSettings - configureDnsSettingsOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).configureDnsSettingsOperationSettings(); - } - - /** Returns the object with the settings used for calls to configureContactSettings. */ - public UnaryCallSettings - configureContactSettingsSettings() { - return ((DomainsStubSettings) getStubSettings()).configureContactSettingsSettings(); - } - - /** Returns the object with the settings used for calls to configureContactSettings. */ - public OperationCallSettings - configureContactSettingsOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).configureContactSettingsOperationSettings(); - } - - /** Returns the object with the settings used for calls to exportRegistration. */ - public UnaryCallSettings exportRegistrationSettings() { - return ((DomainsStubSettings) getStubSettings()).exportRegistrationSettings(); - } - - /** Returns the object with the settings used for calls to exportRegistration. */ - public OperationCallSettings - exportRegistrationOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).exportRegistrationOperationSettings(); - } - - /** Returns the object with the settings used for calls to deleteRegistration. */ - public UnaryCallSettings deleteRegistrationSettings() { - return ((DomainsStubSettings) getStubSettings()).deleteRegistrationSettings(); - } - - /** Returns the object with the settings used for calls to deleteRegistration. */ - public OperationCallSettings - deleteRegistrationOperationSettings() { - return ((DomainsStubSettings) getStubSettings()).deleteRegistrationOperationSettings(); - } - - /** Returns the object with the settings used for calls to retrieveAuthorizationCode. */ - public UnaryCallSettings - retrieveAuthorizationCodeSettings() { - return ((DomainsStubSettings) getStubSettings()).retrieveAuthorizationCodeSettings(); - } - - /** Returns the object with the settings used for calls to resetAuthorizationCode. */ - public UnaryCallSettings - resetAuthorizationCodeSettings() { - return ((DomainsStubSettings) getStubSettings()).resetAuthorizationCodeSettings(); - } - - public static final DomainsSettings create(DomainsStubSettings stub) throws IOException { - return new DomainsSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return DomainsStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return DomainsStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DomainsStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return DomainsStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return DomainsStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return DomainsStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return DomainsStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DomainsStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected DomainsSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for DomainsSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(DomainsStubSettings.newBuilder(clientContext)); - } - - protected Builder(DomainsSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(DomainsStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(DomainsStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(DomainsStubSettings.newHttpJsonBuilder()); - } - - public DomainsStubSettings.Builder getStubSettingsBuilder() { - return ((DomainsStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to searchDomains. */ - public UnaryCallSettings.Builder - searchDomainsSettings() { - return getStubSettingsBuilder().searchDomainsSettings(); - } - - /** Returns the builder for the settings used for calls to retrieveRegisterParameters. */ - public UnaryCallSettings.Builder< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersSettings() { - return getStubSettingsBuilder().retrieveRegisterParametersSettings(); - } - - /** Returns the builder for the settings used for calls to registerDomain. */ - public UnaryCallSettings.Builder registerDomainSettings() { - return getStubSettingsBuilder().registerDomainSettings(); - } - - /** Returns the builder for the settings used for calls to registerDomain. */ - public OperationCallSettings.Builder - registerDomainOperationSettings() { - return getStubSettingsBuilder().registerDomainOperationSettings(); - } - - /** Returns the builder for the settings used for calls to retrieveTransferParameters. */ - public UnaryCallSettings.Builder< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersSettings() { - return getStubSettingsBuilder().retrieveTransferParametersSettings(); - } - - /** Returns the builder for the settings used for calls to transferDomain. */ - public UnaryCallSettings.Builder transferDomainSettings() { - return getStubSettingsBuilder().transferDomainSettings(); - } - - /** Returns the builder for the settings used for calls to transferDomain. */ - public OperationCallSettings.Builder - transferDomainOperationSettings() { - return getStubSettingsBuilder().transferDomainOperationSettings(); - } - - /** Returns the builder for the settings used for calls to listRegistrations. */ - public PagedCallSettings.Builder< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings() { - return getStubSettingsBuilder().listRegistrationsSettings(); - } - - /** Returns the builder for the settings used for calls to getRegistration. */ - public UnaryCallSettings.Builder - getRegistrationSettings() { - return getStubSettingsBuilder().getRegistrationSettings(); - } - - /** Returns the builder for the settings used for calls to updateRegistration. */ - public UnaryCallSettings.Builder - updateRegistrationSettings() { - return getStubSettingsBuilder().updateRegistrationSettings(); - } - - /** Returns the builder for the settings used for calls to updateRegistration. */ - public OperationCallSettings.Builder - updateRegistrationOperationSettings() { - return getStubSettingsBuilder().updateRegistrationOperationSettings(); - } - - /** Returns the builder for the settings used for calls to configureManagementSettings. */ - public UnaryCallSettings.Builder - configureManagementSettingsSettings() { - return getStubSettingsBuilder().configureManagementSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to configureManagementSettings. */ - public OperationCallSettings.Builder< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationSettings() { - return getStubSettingsBuilder().configureManagementSettingsOperationSettings(); - } - - /** Returns the builder for the settings used for calls to configureDnsSettings. */ - public UnaryCallSettings.Builder - configureDnsSettingsSettings() { - return getStubSettingsBuilder().configureDnsSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to configureDnsSettings. */ - public OperationCallSettings.Builder< - ConfigureDnsSettingsRequest, Registration, OperationMetadata> - configureDnsSettingsOperationSettings() { - return getStubSettingsBuilder().configureDnsSettingsOperationSettings(); - } - - /** Returns the builder for the settings used for calls to configureContactSettings. */ - public UnaryCallSettings.Builder - configureContactSettingsSettings() { - return getStubSettingsBuilder().configureContactSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to configureContactSettings. */ - public OperationCallSettings.Builder< - ConfigureContactSettingsRequest, Registration, OperationMetadata> - configureContactSettingsOperationSettings() { - return getStubSettingsBuilder().configureContactSettingsOperationSettings(); - } - - /** Returns the builder for the settings used for calls to exportRegistration. */ - public UnaryCallSettings.Builder - exportRegistrationSettings() { - return getStubSettingsBuilder().exportRegistrationSettings(); - } - - /** Returns the builder for the settings used for calls to exportRegistration. */ - public OperationCallSettings.Builder - exportRegistrationOperationSettings() { - return getStubSettingsBuilder().exportRegistrationOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteRegistration. */ - public UnaryCallSettings.Builder - deleteRegistrationSettings() { - return getStubSettingsBuilder().deleteRegistrationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteRegistration. */ - public OperationCallSettings.Builder - deleteRegistrationOperationSettings() { - return getStubSettingsBuilder().deleteRegistrationOperationSettings(); - } - - /** Returns the builder for the settings used for calls to retrieveAuthorizationCode. */ - public UnaryCallSettings.Builder - retrieveAuthorizationCodeSettings() { - return getStubSettingsBuilder().retrieveAuthorizationCodeSettings(); - } - - /** Returns the builder for the settings used for calls to resetAuthorizationCode. */ - public UnaryCallSettings.Builder - resetAuthorizationCodeSettings() { - return getStubSettingsBuilder().resetAuthorizationCodeSettings(); - } - - @Override - public DomainsSettings build() throws IOException { - return new DomainsSettings(this); - } - } -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/gapic_metadata.json b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/gapic_metadata.json deleted file mode 100644 index 75266a8d..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/gapic_metadata.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.domains.v1beta1", - "libraryPackage": "com.google.cloud.domains.v1beta1", - "services": { - "Domains": { - "clients": { - "grpc": { - "libraryClient": "DomainsClient", - "rpcs": { - "ConfigureContactSettings": { - "methods": ["configureContactSettingsAsync", "configureContactSettingsAsync", "configureContactSettingsAsync", "configureContactSettingsOperationCallable", "configureContactSettingsCallable"] - }, - "ConfigureDnsSettings": { - "methods": ["configureDnsSettingsAsync", "configureDnsSettingsAsync", "configureDnsSettingsAsync", "configureDnsSettingsOperationCallable", "configureDnsSettingsCallable"] - }, - "ConfigureManagementSettings": { - "methods": ["configureManagementSettingsAsync", "configureManagementSettingsAsync", "configureManagementSettingsAsync", "configureManagementSettingsOperationCallable", "configureManagementSettingsCallable"] - }, - "DeleteRegistration": { - "methods": ["deleteRegistrationAsync", "deleteRegistrationAsync", "deleteRegistrationAsync", "deleteRegistrationOperationCallable", "deleteRegistrationCallable"] - }, - "ExportRegistration": { - "methods": ["exportRegistrationAsync", "exportRegistrationAsync", "exportRegistrationAsync", "exportRegistrationOperationCallable", "exportRegistrationCallable"] - }, - "GetRegistration": { - "methods": ["getRegistration", "getRegistration", "getRegistration", "getRegistrationCallable"] - }, - "ListRegistrations": { - "methods": ["listRegistrations", "listRegistrations", "listRegistrations", "listRegistrationsPagedCallable", "listRegistrationsCallable"] - }, - "RegisterDomain": { - "methods": ["registerDomainAsync", "registerDomainAsync", "registerDomainAsync", "registerDomainOperationCallable", "registerDomainCallable"] - }, - "ResetAuthorizationCode": { - "methods": ["resetAuthorizationCode", "resetAuthorizationCode", "resetAuthorizationCode", "resetAuthorizationCodeCallable"] - }, - "RetrieveAuthorizationCode": { - "methods": ["retrieveAuthorizationCode", "retrieveAuthorizationCode", "retrieveAuthorizationCode", "retrieveAuthorizationCodeCallable"] - }, - "RetrieveRegisterParameters": { - "methods": ["retrieveRegisterParameters", "retrieveRegisterParameters", "retrieveRegisterParameters", "retrieveRegisterParametersCallable"] - }, - "RetrieveTransferParameters": { - "methods": ["retrieveTransferParameters", "retrieveTransferParameters", "retrieveTransferParameters", "retrieveTransferParametersCallable"] - }, - "SearchDomains": { - "methods": ["searchDomains", "searchDomains", "searchDomains", "searchDomainsCallable"] - }, - "TransferDomain": { - "methods": ["transferDomainAsync", "transferDomainAsync", "transferDomainAsync", "transferDomainOperationCallable", "transferDomainCallable"] - }, - "UpdateRegistration": { - "methods": ["updateRegistrationAsync", "updateRegistrationAsync", "updateRegistrationOperationCallable", "updateRegistrationCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/package-info.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/package-info.java deleted file mode 100644 index 44f1ac67..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/package-info.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * A client to Cloud Domains API - * - *

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

======================= DomainsClient ======================= - * - *

Service Description: The Cloud Domains API enables management and configuration of domain - * names. - * - *

Sample for DomainsClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (DomainsClient domainsClient = DomainsClient.create()) {
- *   LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
- *   String query = "query107944136";
- *   SearchDomainsResponse response = domainsClient.searchDomains(location, query);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.domains.v1beta1; - -import javax.annotation.Generated; diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStub.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStub.java deleted file mode 100644 index fccd3612..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStub.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.stub; - -import static com.google.cloud.domains.v1beta1.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.domains.v1beta1.AuthorizationCode; -import com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1beta1.DeleteRegistrationRequest; -import com.google.cloud.domains.v1beta1.ExportRegistrationRequest; -import com.google.cloud.domains.v1beta1.GetRegistrationRequest; -import com.google.cloud.domains.v1beta1.ListRegistrationsRequest; -import com.google.cloud.domains.v1beta1.ListRegistrationsResponse; -import com.google.cloud.domains.v1beta1.OperationMetadata; -import com.google.cloud.domains.v1beta1.RegisterDomainRequest; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest; -import com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest; -import com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse; -import com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse; -import com.google.cloud.domains.v1beta1.SearchDomainsRequest; -import com.google.cloud.domains.v1beta1.SearchDomainsResponse; -import com.google.cloud.domains.v1beta1.TransferDomainRequest; -import com.google.cloud.domains.v1beta1.UpdateRegistrationRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the Domains service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class DomainsStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - return null; - } - - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { - return null; - } - - public UnaryCallable searchDomainsCallable() { - throw new UnsupportedOperationException("Not implemented: searchDomainsCallable()"); - } - - public UnaryCallable - retrieveRegisterParametersCallable() { - throw new UnsupportedOperationException( - "Not implemented: retrieveRegisterParametersCallable()"); - } - - public OperationCallable - registerDomainOperationCallable() { - throw new UnsupportedOperationException("Not implemented: registerDomainOperationCallable()"); - } - - public UnaryCallable registerDomainCallable() { - throw new UnsupportedOperationException("Not implemented: registerDomainCallable()"); - } - - public UnaryCallable - retrieveTransferParametersCallable() { - throw new UnsupportedOperationException( - "Not implemented: retrieveTransferParametersCallable()"); - } - - public OperationCallable - transferDomainOperationCallable() { - throw new UnsupportedOperationException("Not implemented: transferDomainOperationCallable()"); - } - - public UnaryCallable transferDomainCallable() { - throw new UnsupportedOperationException("Not implemented: transferDomainCallable()"); - } - - public UnaryCallable - listRegistrationsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listRegistrationsPagedCallable()"); - } - - public UnaryCallable - listRegistrationsCallable() { - throw new UnsupportedOperationException("Not implemented: listRegistrationsCallable()"); - } - - public UnaryCallable getRegistrationCallable() { - throw new UnsupportedOperationException("Not implemented: getRegistrationCallable()"); - } - - public OperationCallable - updateRegistrationOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateRegistrationOperationCallable()"); - } - - public UnaryCallable updateRegistrationCallable() { - throw new UnsupportedOperationException("Not implemented: updateRegistrationCallable()"); - } - - public OperationCallable - configureManagementSettingsOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: configureManagementSettingsOperationCallable()"); - } - - public UnaryCallable - configureManagementSettingsCallable() { - throw new UnsupportedOperationException( - "Not implemented: configureManagementSettingsCallable()"); - } - - public OperationCallable - configureDnsSettingsOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: configureDnsSettingsOperationCallable()"); - } - - public UnaryCallable configureDnsSettingsCallable() { - throw new UnsupportedOperationException("Not implemented: configureDnsSettingsCallable()"); - } - - public OperationCallable - configureContactSettingsOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: configureContactSettingsOperationCallable()"); - } - - public UnaryCallable - configureContactSettingsCallable() { - throw new UnsupportedOperationException("Not implemented: configureContactSettingsCallable()"); - } - - public OperationCallable - exportRegistrationOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: exportRegistrationOperationCallable()"); - } - - public UnaryCallable exportRegistrationCallable() { - throw new UnsupportedOperationException("Not implemented: exportRegistrationCallable()"); - } - - public OperationCallable - deleteRegistrationOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteRegistrationOperationCallable()"); - } - - public UnaryCallable deleteRegistrationCallable() { - throw new UnsupportedOperationException("Not implemented: deleteRegistrationCallable()"); - } - - public UnaryCallable - retrieveAuthorizationCodeCallable() { - throw new UnsupportedOperationException("Not implemented: retrieveAuthorizationCodeCallable()"); - } - - public UnaryCallable - resetAuthorizationCodeCallable() { - throw new UnsupportedOperationException("Not implemented: resetAuthorizationCodeCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStubSettings.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStubSettings.java deleted file mode 100644 index e053d763..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStubSettings.java +++ /dev/null @@ -1,1158 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.stub; - -import static com.google.cloud.domains.v1beta1.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.domains.v1beta1.AuthorizationCode; -import com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1beta1.DeleteRegistrationRequest; -import com.google.cloud.domains.v1beta1.ExportRegistrationRequest; -import com.google.cloud.domains.v1beta1.GetRegistrationRequest; -import com.google.cloud.domains.v1beta1.ListRegistrationsRequest; -import com.google.cloud.domains.v1beta1.ListRegistrationsResponse; -import com.google.cloud.domains.v1beta1.OperationMetadata; -import com.google.cloud.domains.v1beta1.RegisterDomainRequest; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest; -import com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest; -import com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse; -import com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse; -import com.google.cloud.domains.v1beta1.SearchDomainsRequest; -import com.google.cloud.domains.v1beta1.SearchDomainsResponse; -import com.google.cloud.domains.v1beta1.TransferDomainRequest; -import com.google.cloud.domains.v1beta1.UpdateRegistrationRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link DomainsStub}. - * - *

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

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

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DomainsStubSettings.Builder domainsSettingsBuilder = DomainsStubSettings.newBuilder();
- * domainsSettingsBuilder
- *     .searchDomainsSettings()
- *     .setRetrySettings(
- *         domainsSettingsBuilder.searchDomainsSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * DomainsStubSettings domainsSettings = domainsSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class DomainsStubSettings 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 - searchDomainsSettings; - private final UnaryCallSettings< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersSettings; - private final UnaryCallSettings registerDomainSettings; - private final OperationCallSettings - registerDomainOperationSettings; - private final UnaryCallSettings< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersSettings; - private final UnaryCallSettings transferDomainSettings; - private final OperationCallSettings - transferDomainOperationSettings; - private final PagedCallSettings< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings; - private final UnaryCallSettings getRegistrationSettings; - private final UnaryCallSettings updateRegistrationSettings; - private final OperationCallSettings - updateRegistrationOperationSettings; - private final UnaryCallSettings - configureManagementSettingsSettings; - private final OperationCallSettings< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationSettings; - private final UnaryCallSettings - configureDnsSettingsSettings; - private final OperationCallSettings - configureDnsSettingsOperationSettings; - private final UnaryCallSettings - configureContactSettingsSettings; - private final OperationCallSettings< - ConfigureContactSettingsRequest, Registration, OperationMetadata> - configureContactSettingsOperationSettings; - private final UnaryCallSettings exportRegistrationSettings; - private final OperationCallSettings - exportRegistrationOperationSettings; - private final UnaryCallSettings deleteRegistrationSettings; - private final OperationCallSettings - deleteRegistrationOperationSettings; - private final UnaryCallSettings - retrieveAuthorizationCodeSettings; - private final UnaryCallSettings - resetAuthorizationCodeSettings; - - private static final PagedListDescriptor< - ListRegistrationsRequest, ListRegistrationsResponse, Registration> - LIST_REGISTRATIONS_PAGE_STR_DESC = - new PagedListDescriptor< - ListRegistrationsRequest, ListRegistrationsResponse, Registration>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListRegistrationsRequest injectToken( - ListRegistrationsRequest payload, String token) { - return ListRegistrationsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListRegistrationsRequest injectPageSize( - ListRegistrationsRequest payload, int pageSize) { - return ListRegistrationsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListRegistrationsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListRegistrationsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListRegistrationsResponse payload) { - return payload.getRegistrationsList() == null - ? ImmutableList.of() - : payload.getRegistrationsList(); - } - }; - - private static final PagedListResponseFactory< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - LIST_REGISTRATIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListRegistrationsRequest, - ListRegistrationsResponse, - ListRegistrationsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListRegistrationsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_REGISTRATIONS_PAGE_STR_DESC, request, context); - return ListRegistrationsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to searchDomains. */ - public UnaryCallSettings searchDomainsSettings() { - return searchDomainsSettings; - } - - /** Returns the object with the settings used for calls to retrieveRegisterParameters. */ - public UnaryCallSettings - retrieveRegisterParametersSettings() { - return retrieveRegisterParametersSettings; - } - - /** Returns the object with the settings used for calls to registerDomain. */ - public UnaryCallSettings registerDomainSettings() { - return registerDomainSettings; - } - - /** Returns the object with the settings used for calls to registerDomain. */ - public OperationCallSettings - registerDomainOperationSettings() { - return registerDomainOperationSettings; - } - - /** Returns the object with the settings used for calls to retrieveTransferParameters. */ - public UnaryCallSettings - retrieveTransferParametersSettings() { - return retrieveTransferParametersSettings; - } - - /** Returns the object with the settings used for calls to transferDomain. */ - public UnaryCallSettings transferDomainSettings() { - return transferDomainSettings; - } - - /** Returns the object with the settings used for calls to transferDomain. */ - public OperationCallSettings - transferDomainOperationSettings() { - return transferDomainOperationSettings; - } - - /** Returns the object with the settings used for calls to listRegistrations. */ - public PagedCallSettings< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings() { - return listRegistrationsSettings; - } - - /** Returns the object with the settings used for calls to getRegistration. */ - public UnaryCallSettings getRegistrationSettings() { - return getRegistrationSettings; - } - - /** Returns the object with the settings used for calls to updateRegistration. */ - public UnaryCallSettings updateRegistrationSettings() { - return updateRegistrationSettings; - } - - /** Returns the object with the settings used for calls to updateRegistration. */ - public OperationCallSettings - updateRegistrationOperationSettings() { - return updateRegistrationOperationSettings; - } - - /** Returns the object with the settings used for calls to configureManagementSettings. */ - public UnaryCallSettings - configureManagementSettingsSettings() { - return configureManagementSettingsSettings; - } - - /** Returns the object with the settings used for calls to configureManagementSettings. */ - public OperationCallSettings - configureManagementSettingsOperationSettings() { - return configureManagementSettingsOperationSettings; - } - - /** Returns the object with the settings used for calls to configureDnsSettings. */ - public UnaryCallSettings configureDnsSettingsSettings() { - return configureDnsSettingsSettings; - } - - /** Returns the object with the settings used for calls to configureDnsSettings. */ - public OperationCallSettings - configureDnsSettingsOperationSettings() { - return configureDnsSettingsOperationSettings; - } - - /** Returns the object with the settings used for calls to configureContactSettings. */ - public UnaryCallSettings - configureContactSettingsSettings() { - return configureContactSettingsSettings; - } - - /** Returns the object with the settings used for calls to configureContactSettings. */ - public OperationCallSettings - configureContactSettingsOperationSettings() { - return configureContactSettingsOperationSettings; - } - - /** Returns the object with the settings used for calls to exportRegistration. */ - public UnaryCallSettings exportRegistrationSettings() { - return exportRegistrationSettings; - } - - /** Returns the object with the settings used for calls to exportRegistration. */ - public OperationCallSettings - exportRegistrationOperationSettings() { - return exportRegistrationOperationSettings; - } - - /** Returns the object with the settings used for calls to deleteRegistration. */ - public UnaryCallSettings deleteRegistrationSettings() { - return deleteRegistrationSettings; - } - - /** Returns the object with the settings used for calls to deleteRegistration. */ - public OperationCallSettings - deleteRegistrationOperationSettings() { - return deleteRegistrationOperationSettings; - } - - /** Returns the object with the settings used for calls to retrieveAuthorizationCode. */ - public UnaryCallSettings - retrieveAuthorizationCodeSettings() { - return retrieveAuthorizationCodeSettings; - } - - /** Returns the object with the settings used for calls to resetAuthorizationCode. */ - public UnaryCallSettings - resetAuthorizationCodeSettings() { - return resetAuthorizationCodeSettings; - } - - public DomainsStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcDomainsStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonDomainsStub.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 "domains.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "domains.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(DomainsStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(DomainsStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DomainsStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected DomainsStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - searchDomainsSettings = settingsBuilder.searchDomainsSettings().build(); - retrieveRegisterParametersSettings = - settingsBuilder.retrieveRegisterParametersSettings().build(); - registerDomainSettings = settingsBuilder.registerDomainSettings().build(); - registerDomainOperationSettings = settingsBuilder.registerDomainOperationSettings().build(); - retrieveTransferParametersSettings = - settingsBuilder.retrieveTransferParametersSettings().build(); - transferDomainSettings = settingsBuilder.transferDomainSettings().build(); - transferDomainOperationSettings = settingsBuilder.transferDomainOperationSettings().build(); - listRegistrationsSettings = settingsBuilder.listRegistrationsSettings().build(); - getRegistrationSettings = settingsBuilder.getRegistrationSettings().build(); - updateRegistrationSettings = settingsBuilder.updateRegistrationSettings().build(); - updateRegistrationOperationSettings = - settingsBuilder.updateRegistrationOperationSettings().build(); - configureManagementSettingsSettings = - settingsBuilder.configureManagementSettingsSettings().build(); - configureManagementSettingsOperationSettings = - settingsBuilder.configureManagementSettingsOperationSettings().build(); - configureDnsSettingsSettings = settingsBuilder.configureDnsSettingsSettings().build(); - configureDnsSettingsOperationSettings = - settingsBuilder.configureDnsSettingsOperationSettings().build(); - configureContactSettingsSettings = settingsBuilder.configureContactSettingsSettings().build(); - configureContactSettingsOperationSettings = - settingsBuilder.configureContactSettingsOperationSettings().build(); - exportRegistrationSettings = settingsBuilder.exportRegistrationSettings().build(); - exportRegistrationOperationSettings = - settingsBuilder.exportRegistrationOperationSettings().build(); - deleteRegistrationSettings = settingsBuilder.deleteRegistrationSettings().build(); - deleteRegistrationOperationSettings = - settingsBuilder.deleteRegistrationOperationSettings().build(); - retrieveAuthorizationCodeSettings = settingsBuilder.retrieveAuthorizationCodeSettings().build(); - resetAuthorizationCodeSettings = settingsBuilder.resetAuthorizationCodeSettings().build(); - } - - /** Builder for DomainsStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - searchDomainsSettings; - private final UnaryCallSettings.Builder< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersSettings; - private final UnaryCallSettings.Builder - registerDomainSettings; - private final OperationCallSettings.Builder< - RegisterDomainRequest, Registration, OperationMetadata> - registerDomainOperationSettings; - private final UnaryCallSettings.Builder< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersSettings; - private final UnaryCallSettings.Builder - transferDomainSettings; - private final OperationCallSettings.Builder< - TransferDomainRequest, Registration, OperationMetadata> - transferDomainOperationSettings; - private final PagedCallSettings.Builder< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings; - private final UnaryCallSettings.Builder - getRegistrationSettings; - private final UnaryCallSettings.Builder - updateRegistrationSettings; - private final OperationCallSettings.Builder< - UpdateRegistrationRequest, Registration, OperationMetadata> - updateRegistrationOperationSettings; - private final UnaryCallSettings.Builder - configureManagementSettingsSettings; - private final OperationCallSettings.Builder< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationSettings; - private final UnaryCallSettings.Builder - configureDnsSettingsSettings; - private final OperationCallSettings.Builder< - ConfigureDnsSettingsRequest, Registration, OperationMetadata> - configureDnsSettingsOperationSettings; - private final UnaryCallSettings.Builder - configureContactSettingsSettings; - private final OperationCallSettings.Builder< - ConfigureContactSettingsRequest, Registration, OperationMetadata> - configureContactSettingsOperationSettings; - private final UnaryCallSettings.Builder - exportRegistrationSettings; - private final OperationCallSettings.Builder< - ExportRegistrationRequest, Registration, OperationMetadata> - exportRegistrationOperationSettings; - private final UnaryCallSettings.Builder - deleteRegistrationSettings; - private final OperationCallSettings.Builder - deleteRegistrationOperationSettings; - private final UnaryCallSettings.Builder - retrieveAuthorizationCodeSettings; - private final UnaryCallSettings.Builder - resetAuthorizationCodeSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - searchDomainsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - retrieveRegisterParametersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - registerDomainSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - registerDomainOperationSettings = OperationCallSettings.newBuilder(); - retrieveTransferParametersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - transferDomainSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - transferDomainOperationSettings = OperationCallSettings.newBuilder(); - listRegistrationsSettings = PagedCallSettings.newBuilder(LIST_REGISTRATIONS_PAGE_STR_FACT); - getRegistrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateRegistrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateRegistrationOperationSettings = OperationCallSettings.newBuilder(); - configureManagementSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - configureManagementSettingsOperationSettings = OperationCallSettings.newBuilder(); - configureDnsSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - configureDnsSettingsOperationSettings = OperationCallSettings.newBuilder(); - configureContactSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - configureContactSettingsOperationSettings = OperationCallSettings.newBuilder(); - exportRegistrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - exportRegistrationOperationSettings = OperationCallSettings.newBuilder(); - deleteRegistrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteRegistrationOperationSettings = OperationCallSettings.newBuilder(); - retrieveAuthorizationCodeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - resetAuthorizationCodeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - searchDomainsSettings, - retrieveRegisterParametersSettings, - registerDomainSettings, - retrieveTransferParametersSettings, - transferDomainSettings, - listRegistrationsSettings, - getRegistrationSettings, - updateRegistrationSettings, - configureManagementSettingsSettings, - configureDnsSettingsSettings, - configureContactSettingsSettings, - exportRegistrationSettings, - deleteRegistrationSettings, - retrieveAuthorizationCodeSettings, - resetAuthorizationCodeSettings); - initDefaults(this); - } - - protected Builder(DomainsStubSettings settings) { - super(settings); - - searchDomainsSettings = settings.searchDomainsSettings.toBuilder(); - retrieveRegisterParametersSettings = settings.retrieveRegisterParametersSettings.toBuilder(); - registerDomainSettings = settings.registerDomainSettings.toBuilder(); - registerDomainOperationSettings = settings.registerDomainOperationSettings.toBuilder(); - retrieveTransferParametersSettings = settings.retrieveTransferParametersSettings.toBuilder(); - transferDomainSettings = settings.transferDomainSettings.toBuilder(); - transferDomainOperationSettings = settings.transferDomainOperationSettings.toBuilder(); - listRegistrationsSettings = settings.listRegistrationsSettings.toBuilder(); - getRegistrationSettings = settings.getRegistrationSettings.toBuilder(); - updateRegistrationSettings = settings.updateRegistrationSettings.toBuilder(); - updateRegistrationOperationSettings = - settings.updateRegistrationOperationSettings.toBuilder(); - configureManagementSettingsSettings = - settings.configureManagementSettingsSettings.toBuilder(); - configureManagementSettingsOperationSettings = - settings.configureManagementSettingsOperationSettings.toBuilder(); - configureDnsSettingsSettings = settings.configureDnsSettingsSettings.toBuilder(); - configureDnsSettingsOperationSettings = - settings.configureDnsSettingsOperationSettings.toBuilder(); - configureContactSettingsSettings = settings.configureContactSettingsSettings.toBuilder(); - configureContactSettingsOperationSettings = - settings.configureContactSettingsOperationSettings.toBuilder(); - exportRegistrationSettings = settings.exportRegistrationSettings.toBuilder(); - exportRegistrationOperationSettings = - settings.exportRegistrationOperationSettings.toBuilder(); - deleteRegistrationSettings = settings.deleteRegistrationSettings.toBuilder(); - deleteRegistrationOperationSettings = - settings.deleteRegistrationOperationSettings.toBuilder(); - retrieveAuthorizationCodeSettings = settings.retrieveAuthorizationCodeSettings.toBuilder(); - resetAuthorizationCodeSettings = settings.resetAuthorizationCodeSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - searchDomainsSettings, - retrieveRegisterParametersSettings, - registerDomainSettings, - retrieveTransferParametersSettings, - transferDomainSettings, - listRegistrationsSettings, - getRegistrationSettings, - updateRegistrationSettings, - configureManagementSettingsSettings, - configureDnsSettingsSettings, - configureContactSettingsSettings, - exportRegistrationSettings, - deleteRegistrationSettings, - retrieveAuthorizationCodeSettings, - resetAuthorizationCodeSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .searchDomainsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .retrieveRegisterParametersSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .registerDomainSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .retrieveTransferParametersSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .transferDomainSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .listRegistrationsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .getRegistrationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .updateRegistrationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .configureManagementSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .configureDnsSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .configureContactSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .exportRegistrationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .deleteRegistrationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .retrieveAuthorizationCodeSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .resetAuthorizationCodeSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .registerDomainOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .transferDomainOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .updateRegistrationOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .configureManagementSettingsOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .configureDnsSettingsOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .configureContactSettingsOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .exportRegistrationOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Registration.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .deleteRegistrationOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to searchDomains. */ - public UnaryCallSettings.Builder - searchDomainsSettings() { - return searchDomainsSettings; - } - - /** Returns the builder for the settings used for calls to retrieveRegisterParameters. */ - public UnaryCallSettings.Builder< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersSettings() { - return retrieveRegisterParametersSettings; - } - - /** Returns the builder for the settings used for calls to registerDomain. */ - public UnaryCallSettings.Builder registerDomainSettings() { - return registerDomainSettings; - } - - /** Returns the builder for the settings used for calls to registerDomain. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - registerDomainOperationSettings() { - return registerDomainOperationSettings; - } - - /** Returns the builder for the settings used for calls to retrieveTransferParameters. */ - public UnaryCallSettings.Builder< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersSettings() { - return retrieveTransferParametersSettings; - } - - /** Returns the builder for the settings used for calls to transferDomain. */ - public UnaryCallSettings.Builder transferDomainSettings() { - return transferDomainSettings; - } - - /** Returns the builder for the settings used for calls to transferDomain. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - transferDomainOperationSettings() { - return transferDomainOperationSettings; - } - - /** Returns the builder for the settings used for calls to listRegistrations. */ - public PagedCallSettings.Builder< - ListRegistrationsRequest, ListRegistrationsResponse, ListRegistrationsPagedResponse> - listRegistrationsSettings() { - return listRegistrationsSettings; - } - - /** Returns the builder for the settings used for calls to getRegistration. */ - public UnaryCallSettings.Builder - getRegistrationSettings() { - return getRegistrationSettings; - } - - /** Returns the builder for the settings used for calls to updateRegistration. */ - public UnaryCallSettings.Builder - updateRegistrationSettings() { - return updateRegistrationSettings; - } - - /** Returns the builder for the settings used for calls to updateRegistration. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - updateRegistrationOperationSettings() { - return updateRegistrationOperationSettings; - } - - /** Returns the builder for the settings used for calls to configureManagementSettings. */ - public UnaryCallSettings.Builder - configureManagementSettingsSettings() { - return configureManagementSettingsSettings; - } - - /** Returns the builder for the settings used for calls to configureManagementSettings. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationSettings() { - return configureManagementSettingsOperationSettings; - } - - /** Returns the builder for the settings used for calls to configureDnsSettings. */ - public UnaryCallSettings.Builder - configureDnsSettingsSettings() { - return configureDnsSettingsSettings; - } - - /** Returns the builder for the settings used for calls to configureDnsSettings. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - ConfigureDnsSettingsRequest, Registration, OperationMetadata> - configureDnsSettingsOperationSettings() { - return configureDnsSettingsOperationSettings; - } - - /** Returns the builder for the settings used for calls to configureContactSettings. */ - public UnaryCallSettings.Builder - configureContactSettingsSettings() { - return configureContactSettingsSettings; - } - - /** Returns the builder for the settings used for calls to configureContactSettings. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - ConfigureContactSettingsRequest, Registration, OperationMetadata> - configureContactSettingsOperationSettings() { - return configureContactSettingsOperationSettings; - } - - /** Returns the builder for the settings used for calls to exportRegistration. */ - public UnaryCallSettings.Builder - exportRegistrationSettings() { - return exportRegistrationSettings; - } - - /** Returns the builder for the settings used for calls to exportRegistration. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - exportRegistrationOperationSettings() { - return exportRegistrationOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteRegistration. */ - public UnaryCallSettings.Builder - deleteRegistrationSettings() { - return deleteRegistrationSettings; - } - - /** Returns the builder for the settings used for calls to deleteRegistration. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteRegistrationOperationSettings() { - return deleteRegistrationOperationSettings; - } - - /** Returns the builder for the settings used for calls to retrieveAuthorizationCode. */ - public UnaryCallSettings.Builder - retrieveAuthorizationCodeSettings() { - return retrieveAuthorizationCodeSettings; - } - - /** Returns the builder for the settings used for calls to resetAuthorizationCode. */ - public UnaryCallSettings.Builder - resetAuthorizationCodeSettings() { - return resetAuthorizationCodeSettings; - } - - @Override - public DomainsStubSettings build() throws IOException { - return new DomainsStubSettings(this); - } - } -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/GrpcDomainsCallableFactory.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/GrpcDomainsCallableFactory.java deleted file mode 100644 index e8ab4e6f..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/GrpcDomainsCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the Domains service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcDomainsCallableFactory 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-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/GrpcDomainsStub.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/GrpcDomainsStub.java deleted file mode 100644 index 0f88e7d0..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/GrpcDomainsStub.java +++ /dev/null @@ -1,770 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.stub; - -import static com.google.cloud.domains.v1beta1.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.domains.v1beta1.AuthorizationCode; -import com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1beta1.DeleteRegistrationRequest; -import com.google.cloud.domains.v1beta1.ExportRegistrationRequest; -import com.google.cloud.domains.v1beta1.GetRegistrationRequest; -import com.google.cloud.domains.v1beta1.ListRegistrationsRequest; -import com.google.cloud.domains.v1beta1.ListRegistrationsResponse; -import com.google.cloud.domains.v1beta1.OperationMetadata; -import com.google.cloud.domains.v1beta1.RegisterDomainRequest; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest; -import com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest; -import com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse; -import com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse; -import com.google.cloud.domains.v1beta1.SearchDomainsRequest; -import com.google.cloud.domains.v1beta1.SearchDomainsResponse; -import com.google.cloud.domains.v1beta1.TransferDomainRequest; -import com.google.cloud.domains.v1beta1.UpdateRegistrationRequest; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the Domains service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcDomainsStub extends DomainsStub { - private static final MethodDescriptor - searchDomainsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1beta1.Domains/SearchDomains") - .setRequestMarshaller( - ProtoUtils.marshaller(SearchDomainsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(SearchDomainsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1beta1.Domains/RetrieveRegisterParameters") - .setRequestMarshaller( - ProtoUtils.marshaller(RetrieveRegisterParametersRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(RetrieveRegisterParametersResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - registerDomainMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1beta1.Domains/RegisterDomain") - .setRequestMarshaller( - ProtoUtils.marshaller(RegisterDomainRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1beta1.Domains/RetrieveTransferParameters") - .setRequestMarshaller( - ProtoUtils.marshaller(RetrieveTransferParametersRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(RetrieveTransferParametersResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - transferDomainMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1beta1.Domains/TransferDomain") - .setRequestMarshaller( - ProtoUtils.marshaller(TransferDomainRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listRegistrationsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1beta1.Domains/ListRegistrations") - .setRequestMarshaller( - ProtoUtils.marshaller(ListRegistrationsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListRegistrationsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getRegistrationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1beta1.Domains/GetRegistration") - .setRequestMarshaller( - ProtoUtils.marshaller(GetRegistrationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Registration.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateRegistrationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1beta1.Domains/UpdateRegistration") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateRegistrationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - configureManagementSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1beta1.Domains/ConfigureManagementSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(ConfigureManagementSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - configureDnsSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1beta1.Domains/ConfigureDnsSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(ConfigureDnsSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - configureContactSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1beta1.Domains/ConfigureContactSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(ConfigureContactSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - exportRegistrationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1beta1.Domains/ExportRegistration") - .setRequestMarshaller( - ProtoUtils.marshaller(ExportRegistrationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteRegistrationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1beta1.Domains/DeleteRegistration") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteRegistrationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - retrieveAuthorizationCodeMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1beta1.Domains/RetrieveAuthorizationCode") - .setRequestMarshaller( - ProtoUtils.marshaller(RetrieveAuthorizationCodeRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AuthorizationCode.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - resetAuthorizationCodeMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.domains.v1beta1.Domains/ResetAuthorizationCode") - .setRequestMarshaller( - ProtoUtils.marshaller(ResetAuthorizationCodeRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AuthorizationCode.getDefaultInstance())) - .build(); - - private final UnaryCallable searchDomainsCallable; - private final UnaryCallable - retrieveRegisterParametersCallable; - private final UnaryCallable registerDomainCallable; - private final OperationCallable - registerDomainOperationCallable; - private final UnaryCallable - retrieveTransferParametersCallable; - private final UnaryCallable transferDomainCallable; - private final OperationCallable - transferDomainOperationCallable; - private final UnaryCallable - listRegistrationsCallable; - private final UnaryCallable - listRegistrationsPagedCallable; - private final UnaryCallable getRegistrationCallable; - private final UnaryCallable updateRegistrationCallable; - private final OperationCallable - updateRegistrationOperationCallable; - private final UnaryCallable - configureManagementSettingsCallable; - private final OperationCallable< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationCallable; - private final UnaryCallable configureDnsSettingsCallable; - private final OperationCallable - configureDnsSettingsOperationCallable; - private final UnaryCallable - configureContactSettingsCallable; - private final OperationCallable - configureContactSettingsOperationCallable; - private final UnaryCallable exportRegistrationCallable; - private final OperationCallable - exportRegistrationOperationCallable; - private final UnaryCallable deleteRegistrationCallable; - private final OperationCallable - deleteRegistrationOperationCallable; - private final UnaryCallable - retrieveAuthorizationCodeCallable; - private final UnaryCallable - resetAuthorizationCodeCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcDomainsStub create(DomainsStubSettings settings) throws IOException { - return new GrpcDomainsStub(settings, ClientContext.create(settings)); - } - - public static final GrpcDomainsStub create(ClientContext clientContext) throws IOException { - return new GrpcDomainsStub(DomainsStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcDomainsStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcDomainsStub( - DomainsStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcDomainsStub, 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 GrpcDomainsStub(DomainsStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcDomainsCallableFactory()); - } - - /** - * Constructs an instance of GrpcDomainsStub, 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 GrpcDomainsStub( - DomainsStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings searchDomainsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(searchDomainsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("location", String.valueOf(request.getLocation())); - return params.build(); - }) - .build(); - GrpcCallSettings - retrieveRegisterParametersTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(retrieveRegisterParametersMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("location", String.valueOf(request.getLocation())); - return params.build(); - }) - .build(); - GrpcCallSettings registerDomainTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(registerDomainMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - retrieveTransferParametersTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(retrieveTransferParametersMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("location", String.valueOf(request.getLocation())); - return params.build(); - }) - .build(); - GrpcCallSettings transferDomainTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(transferDomainMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - listRegistrationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listRegistrationsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getRegistrationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getRegistrationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings updateRegistrationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateRegistrationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "registration.name", String.valueOf(request.getRegistration().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - configureManagementSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(configureManagementSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("registration", String.valueOf(request.getRegistration())); - return params.build(); - }) - .build(); - GrpcCallSettings configureDnsSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(configureDnsSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("registration", String.valueOf(request.getRegistration())); - return params.build(); - }) - .build(); - GrpcCallSettings - configureContactSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(configureContactSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("registration", String.valueOf(request.getRegistration())); - return params.build(); - }) - .build(); - GrpcCallSettings exportRegistrationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(exportRegistrationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteRegistrationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteRegistrationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - retrieveAuthorizationCodeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(retrieveAuthorizationCodeMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("registration", String.valueOf(request.getRegistration())); - return params.build(); - }) - .build(); - GrpcCallSettings - resetAuthorizationCodeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(resetAuthorizationCodeMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("registration", String.valueOf(request.getRegistration())); - return params.build(); - }) - .build(); - - this.searchDomainsCallable = - callableFactory.createUnaryCallable( - searchDomainsTransportSettings, settings.searchDomainsSettings(), clientContext); - this.retrieveRegisterParametersCallable = - callableFactory.createUnaryCallable( - retrieveRegisterParametersTransportSettings, - settings.retrieveRegisterParametersSettings(), - clientContext); - this.registerDomainCallable = - callableFactory.createUnaryCallable( - registerDomainTransportSettings, settings.registerDomainSettings(), clientContext); - this.registerDomainOperationCallable = - callableFactory.createOperationCallable( - registerDomainTransportSettings, - settings.registerDomainOperationSettings(), - clientContext, - operationsStub); - this.retrieveTransferParametersCallable = - callableFactory.createUnaryCallable( - retrieveTransferParametersTransportSettings, - settings.retrieveTransferParametersSettings(), - clientContext); - this.transferDomainCallable = - callableFactory.createUnaryCallable( - transferDomainTransportSettings, settings.transferDomainSettings(), clientContext); - this.transferDomainOperationCallable = - callableFactory.createOperationCallable( - transferDomainTransportSettings, - settings.transferDomainOperationSettings(), - clientContext, - operationsStub); - this.listRegistrationsCallable = - callableFactory.createUnaryCallable( - listRegistrationsTransportSettings, - settings.listRegistrationsSettings(), - clientContext); - this.listRegistrationsPagedCallable = - callableFactory.createPagedCallable( - listRegistrationsTransportSettings, - settings.listRegistrationsSettings(), - clientContext); - this.getRegistrationCallable = - callableFactory.createUnaryCallable( - getRegistrationTransportSettings, settings.getRegistrationSettings(), clientContext); - this.updateRegistrationCallable = - callableFactory.createUnaryCallable( - updateRegistrationTransportSettings, - settings.updateRegistrationSettings(), - clientContext); - this.updateRegistrationOperationCallable = - callableFactory.createOperationCallable( - updateRegistrationTransportSettings, - settings.updateRegistrationOperationSettings(), - clientContext, - operationsStub); - this.configureManagementSettingsCallable = - callableFactory.createUnaryCallable( - configureManagementSettingsTransportSettings, - settings.configureManagementSettingsSettings(), - clientContext); - this.configureManagementSettingsOperationCallable = - callableFactory.createOperationCallable( - configureManagementSettingsTransportSettings, - settings.configureManagementSettingsOperationSettings(), - clientContext, - operationsStub); - this.configureDnsSettingsCallable = - callableFactory.createUnaryCallable( - configureDnsSettingsTransportSettings, - settings.configureDnsSettingsSettings(), - clientContext); - this.configureDnsSettingsOperationCallable = - callableFactory.createOperationCallable( - configureDnsSettingsTransportSettings, - settings.configureDnsSettingsOperationSettings(), - clientContext, - operationsStub); - this.configureContactSettingsCallable = - callableFactory.createUnaryCallable( - configureContactSettingsTransportSettings, - settings.configureContactSettingsSettings(), - clientContext); - this.configureContactSettingsOperationCallable = - callableFactory.createOperationCallable( - configureContactSettingsTransportSettings, - settings.configureContactSettingsOperationSettings(), - clientContext, - operationsStub); - this.exportRegistrationCallable = - callableFactory.createUnaryCallable( - exportRegistrationTransportSettings, - settings.exportRegistrationSettings(), - clientContext); - this.exportRegistrationOperationCallable = - callableFactory.createOperationCallable( - exportRegistrationTransportSettings, - settings.exportRegistrationOperationSettings(), - clientContext, - operationsStub); - this.deleteRegistrationCallable = - callableFactory.createUnaryCallable( - deleteRegistrationTransportSettings, - settings.deleteRegistrationSettings(), - clientContext); - this.deleteRegistrationOperationCallable = - callableFactory.createOperationCallable( - deleteRegistrationTransportSettings, - settings.deleteRegistrationOperationSettings(), - clientContext, - operationsStub); - this.retrieveAuthorizationCodeCallable = - callableFactory.createUnaryCallable( - retrieveAuthorizationCodeTransportSettings, - settings.retrieveAuthorizationCodeSettings(), - clientContext); - this.resetAuthorizationCodeCallable = - callableFactory.createUnaryCallable( - resetAuthorizationCodeTransportSettings, - settings.resetAuthorizationCodeSettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable searchDomainsCallable() { - return searchDomainsCallable; - } - - @Override - public UnaryCallable - retrieveRegisterParametersCallable() { - return retrieveRegisterParametersCallable; - } - - @Override - public UnaryCallable registerDomainCallable() { - return registerDomainCallable; - } - - @Override - public OperationCallable - registerDomainOperationCallable() { - return registerDomainOperationCallable; - } - - @Override - public UnaryCallable - retrieveTransferParametersCallable() { - return retrieveTransferParametersCallable; - } - - @Override - public UnaryCallable transferDomainCallable() { - return transferDomainCallable; - } - - @Override - public OperationCallable - transferDomainOperationCallable() { - return transferDomainOperationCallable; - } - - @Override - public UnaryCallable - listRegistrationsCallable() { - return listRegistrationsCallable; - } - - @Override - public UnaryCallable - listRegistrationsPagedCallable() { - return listRegistrationsPagedCallable; - } - - @Override - public UnaryCallable getRegistrationCallable() { - return getRegistrationCallable; - } - - @Override - public UnaryCallable updateRegistrationCallable() { - return updateRegistrationCallable; - } - - @Override - public OperationCallable - updateRegistrationOperationCallable() { - return updateRegistrationOperationCallable; - } - - @Override - public UnaryCallable - configureManagementSettingsCallable() { - return configureManagementSettingsCallable; - } - - @Override - public OperationCallable - configureManagementSettingsOperationCallable() { - return configureManagementSettingsOperationCallable; - } - - @Override - public UnaryCallable configureDnsSettingsCallable() { - return configureDnsSettingsCallable; - } - - @Override - public OperationCallable - configureDnsSettingsOperationCallable() { - return configureDnsSettingsOperationCallable; - } - - @Override - public UnaryCallable - configureContactSettingsCallable() { - return configureContactSettingsCallable; - } - - @Override - public OperationCallable - configureContactSettingsOperationCallable() { - return configureContactSettingsOperationCallable; - } - - @Override - public UnaryCallable exportRegistrationCallable() { - return exportRegistrationCallable; - } - - @Override - public OperationCallable - exportRegistrationOperationCallable() { - return exportRegistrationOperationCallable; - } - - @Override - public UnaryCallable deleteRegistrationCallable() { - return deleteRegistrationCallable; - } - - @Override - public OperationCallable - deleteRegistrationOperationCallable() { - return deleteRegistrationOperationCallable; - } - - @Override - public UnaryCallable - retrieveAuthorizationCodeCallable() { - return retrieveAuthorizationCodeCallable; - } - - @Override - public UnaryCallable - resetAuthorizationCodeCallable() { - return resetAuthorizationCodeCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/HttpJsonDomainsCallableFactory.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/HttpJsonDomainsCallableFactory.java deleted file mode 100644 index e6ae4046..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/HttpJsonDomainsCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the Domains service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonDomainsCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/HttpJsonDomainsStub.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/HttpJsonDomainsStub.java deleted file mode 100644 index ceb5796c..00000000 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/HttpJsonDomainsStub.java +++ /dev/null @@ -1,1141 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.stub; - -import static com.google.cloud.domains.v1beta1.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.domains.v1beta1.AuthorizationCode; -import com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1beta1.DeleteRegistrationRequest; -import com.google.cloud.domains.v1beta1.ExportRegistrationRequest; -import com.google.cloud.domains.v1beta1.GetRegistrationRequest; -import com.google.cloud.domains.v1beta1.ListRegistrationsRequest; -import com.google.cloud.domains.v1beta1.ListRegistrationsResponse; -import com.google.cloud.domains.v1beta1.OperationMetadata; -import com.google.cloud.domains.v1beta1.RegisterDomainRequest; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest; -import com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest; -import com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse; -import com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse; -import com.google.cloud.domains.v1beta1.SearchDomainsRequest; -import com.google.cloud.domains.v1beta1.SearchDomainsResponse; -import com.google.cloud.domains.v1beta1.TransferDomainRequest; -import com.google.cloud.domains.v1beta1.UpdateRegistrationRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the Domains service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonDomainsStub extends DomainsStub { - private static final TypeRegistry typeRegistry = - TypeRegistry.newBuilder() - .add(Empty.getDescriptor()) - .add(Registration.getDescriptor()) - .add(OperationMetadata.getDescriptor()) - .build(); - - private static final ApiMethodDescriptor - searchDomainsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1beta1.Domains/SearchDomains") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{location=projects/*/locations/*}/registrations:searchDomains", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "location", request.getLocation()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "query", request.getQuery()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SearchDomainsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - RetrieveRegisterParametersRequest, RetrieveRegisterParametersResponse> - retrieveRegisterParametersMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName("google.cloud.domains.v1beta1.Domains/RetrieveRegisterParameters") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{location=projects/*/locations/*}/registrations:retrieveRegisterParameters", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "location", request.getLocation()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "domainName", request.getDomainName()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(RetrieveRegisterParametersResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - registerDomainMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1beta1.Domains/RegisterDomain") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{parent=projects/*/locations/*}/registrations:register", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (RegisterDomainRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor< - RetrieveTransferParametersRequest, RetrieveTransferParametersResponse> - retrieveTransferParametersMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName("google.cloud.domains.v1beta1.Domains/RetrieveTransferParameters") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{location=projects/*/locations/*}/registrations:retrieveTransferParameters", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "location", request.getLocation()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "domainName", request.getDomainName()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(RetrieveTransferParametersResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - transferDomainMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1beta1.Domains/TransferDomain") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{parent=projects/*/locations/*}/registrations:transfer", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (TransferDomainRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - listRegistrationsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1beta1.Domains/ListRegistrations") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{parent=projects/*/locations/*}/registrations", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListRegistrationsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getRegistrationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1beta1.Domains/GetRegistration") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/registrations/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Registration.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateRegistrationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1beta1.Domains/UpdateRegistration") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{registration.name=projects/*/locations/*/registrations/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration.name", request.getRegistration().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("registration", request.getRegistration(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (UpdateRegistrationRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - configureManagementSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1beta1.Domains/ConfigureManagementSettings") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{registration=projects/*/locations/*/registrations/*}:configureManagementSettings", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration", request.getRegistration()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", request.toBuilder().clearRegistration().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (ConfigureManagementSettingsRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - configureDnsSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1beta1.Domains/ConfigureDnsSettings") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{registration=projects/*/locations/*/registrations/*}:configureDnsSettings", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration", request.getRegistration()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", request.toBuilder().clearRegistration().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (ConfigureDnsSettingsRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - configureContactSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1beta1.Domains/ConfigureContactSettings") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{registration=projects/*/locations/*/registrations/*}:configureContactSettings", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration", request.getRegistration()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", request.toBuilder().clearRegistration().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (ConfigureContactSettingsRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - exportRegistrationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1beta1.Domains/ExportRegistration") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/registrations/*}:export", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (ExportRegistrationRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - deleteRegistrationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1beta1.Domains/DeleteRegistration") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/registrations/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (DeleteRegistrationRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - retrieveAuthorizationCodeMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1beta1.Domains/RetrieveAuthorizationCode") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{registration=projects/*/locations/*/registrations/*}:retrieveAuthorizationCode", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration", request.getRegistration()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AuthorizationCode.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - resetAuthorizationCodeMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.domains.v1beta1.Domains/ResetAuthorizationCode") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{registration=projects/*/locations/*/registrations/*}:resetAuthorizationCode", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "registration", request.getRegistration()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", request.toBuilder().clearRegistration().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AuthorizationCode.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable searchDomainsCallable; - private final UnaryCallable - retrieveRegisterParametersCallable; - private final UnaryCallable registerDomainCallable; - private final OperationCallable - registerDomainOperationCallable; - private final UnaryCallable - retrieveTransferParametersCallable; - private final UnaryCallable transferDomainCallable; - private final OperationCallable - transferDomainOperationCallable; - private final UnaryCallable - listRegistrationsCallable; - private final UnaryCallable - listRegistrationsPagedCallable; - private final UnaryCallable getRegistrationCallable; - private final UnaryCallable updateRegistrationCallable; - private final OperationCallable - updateRegistrationOperationCallable; - private final UnaryCallable - configureManagementSettingsCallable; - private final OperationCallable< - ConfigureManagementSettingsRequest, Registration, OperationMetadata> - configureManagementSettingsOperationCallable; - private final UnaryCallable configureDnsSettingsCallable; - private final OperationCallable - configureDnsSettingsOperationCallable; - private final UnaryCallable - configureContactSettingsCallable; - private final OperationCallable - configureContactSettingsOperationCallable; - private final UnaryCallable exportRegistrationCallable; - private final OperationCallable - exportRegistrationOperationCallable; - private final UnaryCallable deleteRegistrationCallable; - private final OperationCallable - deleteRegistrationOperationCallable; - private final UnaryCallable - retrieveAuthorizationCodeCallable; - private final UnaryCallable - resetAuthorizationCodeCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonOperationsStub httpJsonOperationsStub; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonDomainsStub create(DomainsStubSettings settings) throws IOException { - return new HttpJsonDomainsStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonDomainsStub create(ClientContext clientContext) throws IOException { - return new HttpJsonDomainsStub(DomainsStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonDomainsStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonDomainsStub( - DomainsStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonDomainsStub, 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 HttpJsonDomainsStub(DomainsStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new HttpJsonDomainsCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonDomainsStub, 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 HttpJsonDomainsStub( - DomainsStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.httpJsonOperationsStub = - HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); - - HttpJsonCallSettings - searchDomainsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(searchDomainsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - retrieveRegisterParametersTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(retrieveRegisterParametersMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings registerDomainTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(registerDomainMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - retrieveTransferParametersTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(retrieveTransferParametersMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings transferDomainTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(transferDomainMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listRegistrationsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listRegistrationsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getRegistrationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getRegistrationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings updateRegistrationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateRegistrationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - configureManagementSettingsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(configureManagementSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - configureDnsSettingsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(configureDnsSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - configureContactSettingsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(configureContactSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings exportRegistrationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(exportRegistrationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteRegistrationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteRegistrationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - retrieveAuthorizationCodeTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(retrieveAuthorizationCodeMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - resetAuthorizationCodeTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(resetAuthorizationCodeMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - - this.searchDomainsCallable = - callableFactory.createUnaryCallable( - searchDomainsTransportSettings, settings.searchDomainsSettings(), clientContext); - this.retrieveRegisterParametersCallable = - callableFactory.createUnaryCallable( - retrieveRegisterParametersTransportSettings, - settings.retrieveRegisterParametersSettings(), - clientContext); - this.registerDomainCallable = - callableFactory.createUnaryCallable( - registerDomainTransportSettings, settings.registerDomainSettings(), clientContext); - this.registerDomainOperationCallable = - callableFactory.createOperationCallable( - registerDomainTransportSettings, - settings.registerDomainOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.retrieveTransferParametersCallable = - callableFactory.createUnaryCallable( - retrieveTransferParametersTransportSettings, - settings.retrieveTransferParametersSettings(), - clientContext); - this.transferDomainCallable = - callableFactory.createUnaryCallable( - transferDomainTransportSettings, settings.transferDomainSettings(), clientContext); - this.transferDomainOperationCallable = - callableFactory.createOperationCallable( - transferDomainTransportSettings, - settings.transferDomainOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.listRegistrationsCallable = - callableFactory.createUnaryCallable( - listRegistrationsTransportSettings, - settings.listRegistrationsSettings(), - clientContext); - this.listRegistrationsPagedCallable = - callableFactory.createPagedCallable( - listRegistrationsTransportSettings, - settings.listRegistrationsSettings(), - clientContext); - this.getRegistrationCallable = - callableFactory.createUnaryCallable( - getRegistrationTransportSettings, settings.getRegistrationSettings(), clientContext); - this.updateRegistrationCallable = - callableFactory.createUnaryCallable( - updateRegistrationTransportSettings, - settings.updateRegistrationSettings(), - clientContext); - this.updateRegistrationOperationCallable = - callableFactory.createOperationCallable( - updateRegistrationTransportSettings, - settings.updateRegistrationOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.configureManagementSettingsCallable = - callableFactory.createUnaryCallable( - configureManagementSettingsTransportSettings, - settings.configureManagementSettingsSettings(), - clientContext); - this.configureManagementSettingsOperationCallable = - callableFactory.createOperationCallable( - configureManagementSettingsTransportSettings, - settings.configureManagementSettingsOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.configureDnsSettingsCallable = - callableFactory.createUnaryCallable( - configureDnsSettingsTransportSettings, - settings.configureDnsSettingsSettings(), - clientContext); - this.configureDnsSettingsOperationCallable = - callableFactory.createOperationCallable( - configureDnsSettingsTransportSettings, - settings.configureDnsSettingsOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.configureContactSettingsCallable = - callableFactory.createUnaryCallable( - configureContactSettingsTransportSettings, - settings.configureContactSettingsSettings(), - clientContext); - this.configureContactSettingsOperationCallable = - callableFactory.createOperationCallable( - configureContactSettingsTransportSettings, - settings.configureContactSettingsOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.exportRegistrationCallable = - callableFactory.createUnaryCallable( - exportRegistrationTransportSettings, - settings.exportRegistrationSettings(), - clientContext); - this.exportRegistrationOperationCallable = - callableFactory.createOperationCallable( - exportRegistrationTransportSettings, - settings.exportRegistrationOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.deleteRegistrationCallable = - callableFactory.createUnaryCallable( - deleteRegistrationTransportSettings, - settings.deleteRegistrationSettings(), - clientContext); - this.deleteRegistrationOperationCallable = - callableFactory.createOperationCallable( - deleteRegistrationTransportSettings, - settings.deleteRegistrationOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.retrieveAuthorizationCodeCallable = - callableFactory.createUnaryCallable( - retrieveAuthorizationCodeTransportSettings, - settings.retrieveAuthorizationCodeSettings(), - clientContext); - this.resetAuthorizationCodeCallable = - callableFactory.createUnaryCallable( - resetAuthorizationCodeTransportSettings, - settings.resetAuthorizationCodeSettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(searchDomainsMethodDescriptor); - methodDescriptors.add(retrieveRegisterParametersMethodDescriptor); - methodDescriptors.add(registerDomainMethodDescriptor); - methodDescriptors.add(retrieveTransferParametersMethodDescriptor); - methodDescriptors.add(transferDomainMethodDescriptor); - methodDescriptors.add(listRegistrationsMethodDescriptor); - methodDescriptors.add(getRegistrationMethodDescriptor); - methodDescriptors.add(updateRegistrationMethodDescriptor); - methodDescriptors.add(configureManagementSettingsMethodDescriptor); - methodDescriptors.add(configureDnsSettingsMethodDescriptor); - methodDescriptors.add(configureContactSettingsMethodDescriptor); - methodDescriptors.add(exportRegistrationMethodDescriptor); - methodDescriptors.add(deleteRegistrationMethodDescriptor); - methodDescriptors.add(retrieveAuthorizationCodeMethodDescriptor); - methodDescriptors.add(resetAuthorizationCodeMethodDescriptor); - return methodDescriptors; - } - - public HttpJsonOperationsStub getHttpJsonOperationsStub() { - return httpJsonOperationsStub; - } - - @Override - public UnaryCallable searchDomainsCallable() { - return searchDomainsCallable; - } - - @Override - public UnaryCallable - retrieveRegisterParametersCallable() { - return retrieveRegisterParametersCallable; - } - - @Override - public UnaryCallable registerDomainCallable() { - return registerDomainCallable; - } - - @Override - public OperationCallable - registerDomainOperationCallable() { - return registerDomainOperationCallable; - } - - @Override - public UnaryCallable - retrieveTransferParametersCallable() { - return retrieveTransferParametersCallable; - } - - @Override - public UnaryCallable transferDomainCallable() { - return transferDomainCallable; - } - - @Override - public OperationCallable - transferDomainOperationCallable() { - return transferDomainOperationCallable; - } - - @Override - public UnaryCallable - listRegistrationsCallable() { - return listRegistrationsCallable; - } - - @Override - public UnaryCallable - listRegistrationsPagedCallable() { - return listRegistrationsPagedCallable; - } - - @Override - public UnaryCallable getRegistrationCallable() { - return getRegistrationCallable; - } - - @Override - public UnaryCallable updateRegistrationCallable() { - return updateRegistrationCallable; - } - - @Override - public OperationCallable - updateRegistrationOperationCallable() { - return updateRegistrationOperationCallable; - } - - @Override - public UnaryCallable - configureManagementSettingsCallable() { - return configureManagementSettingsCallable; - } - - @Override - public OperationCallable - configureManagementSettingsOperationCallable() { - return configureManagementSettingsOperationCallable; - } - - @Override - public UnaryCallable configureDnsSettingsCallable() { - return configureDnsSettingsCallable; - } - - @Override - public OperationCallable - configureDnsSettingsOperationCallable() { - return configureDnsSettingsOperationCallable; - } - - @Override - public UnaryCallable - configureContactSettingsCallable() { - return configureContactSettingsCallable; - } - - @Override - public OperationCallable - configureContactSettingsOperationCallable() { - return configureContactSettingsOperationCallable; - } - - @Override - public UnaryCallable exportRegistrationCallable() { - return exportRegistrationCallable; - } - - @Override - public OperationCallable - exportRegistrationOperationCallable() { - return exportRegistrationOperationCallable; - } - - @Override - public UnaryCallable deleteRegistrationCallable() { - return deleteRegistrationCallable; - } - - @Override - public OperationCallable - deleteRegistrationOperationCallable() { - return deleteRegistrationOperationCallable; - } - - @Override - public UnaryCallable - retrieveAuthorizationCodeCallable() { - return retrieveAuthorizationCodeCallable; - } - - @Override - public UnaryCallable - resetAuthorizationCodeCallable() { - return resetAuthorizationCodeCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1/DomainsClientHttpJsonTest.java b/google-cloud-domains/src/test/java/com/google/cloud/domains/v1/DomainsClientHttpJsonTest.java deleted file mode 100644 index 9ffed06d..00000000 --- a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1/DomainsClientHttpJsonTest.java +++ /dev/null @@ -1,1700 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1; - -import static com.google.cloud.domains.v1.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.cloud.domains.v1.stub.HttpJsonDomainsStub; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import com.google.type.Money; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class DomainsClientHttpJsonTest { - private static MockHttpService mockService; - private static DomainsClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonDomainsStub.getMethodDescriptors(), DomainsSettings.getDefaultEndpoint()); - DomainsSettings settings = - DomainsSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - DomainsSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DomainsClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void searchDomainsTest() throws Exception { - SearchDomainsResponse expectedResponse = - SearchDomainsResponse.newBuilder() - .addAllRegisterParameters(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String query = "query107944136"; - - SearchDomainsResponse actualResponse = client.searchDomains(location, query); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void searchDomainsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String query = "query107944136"; - client.searchDomains(location, query); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void searchDomainsTest2() throws Exception { - SearchDomainsResponse expectedResponse = - SearchDomainsResponse.newBuilder() - .addAllRegisterParameters(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String location = "projects/project-7132/locations/location-7132"; - String query = "query107944136"; - - SearchDomainsResponse actualResponse = client.searchDomains(location, query); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void searchDomainsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String location = "projects/project-7132/locations/location-7132"; - String query = "query107944136"; - client.searchDomains(location, query); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveRegisterParametersTest() throws Exception { - RetrieveRegisterParametersResponse expectedResponse = - RetrieveRegisterParametersResponse.newBuilder() - .setRegisterParameters(RegisterParameters.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - - RetrieveRegisterParametersResponse actualResponse = - client.retrieveRegisterParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveRegisterParametersExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - client.retrieveRegisterParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveRegisterParametersTest2() throws Exception { - RetrieveRegisterParametersResponse expectedResponse = - RetrieveRegisterParametersResponse.newBuilder() - .setRegisterParameters(RegisterParameters.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String location = "projects/project-7132/locations/location-7132"; - String domainName = "domainName-1244085905"; - - RetrieveRegisterParametersResponse actualResponse = - client.retrieveRegisterParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveRegisterParametersExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String location = "projects/project-7132/locations/location-7132"; - String domainName = "domainName-1244085905"; - client.retrieveRegisterParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void registerDomainTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("registerDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - - Registration actualResponse = - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void registerDomainExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void registerDomainTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("registerDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - - Registration actualResponse = - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void registerDomainExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void retrieveTransferParametersTest() throws Exception { - RetrieveTransferParametersResponse expectedResponse = - RetrieveTransferParametersResponse.newBuilder() - .setTransferParameters(TransferParameters.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - - RetrieveTransferParametersResponse actualResponse = - client.retrieveTransferParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveTransferParametersExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - client.retrieveTransferParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveTransferParametersTest2() throws Exception { - RetrieveTransferParametersResponse expectedResponse = - RetrieveTransferParametersResponse.newBuilder() - .setTransferParameters(TransferParameters.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String location = "projects/project-7132/locations/location-7132"; - String domainName = "domainName-1244085905"; - - RetrieveTransferParametersResponse actualResponse = - client.retrieveTransferParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveTransferParametersExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String location = "projects/project-7132/locations/location-7132"; - String domainName = "domainName-1244085905"; - client.retrieveTransferParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void transferDomainTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("transferDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - - Registration actualResponse = - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void transferDomainExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void transferDomainTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("transferDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - - Registration actualResponse = - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void transferDomainExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void listRegistrationsTest() throws Exception { - Registration responsesElement = Registration.newBuilder().build(); - ListRegistrationsResponse expectedResponse = - ListRegistrationsResponse.newBuilder() - .setNextPageToken("") - .addAllRegistrations(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListRegistrationsPagedResponse pagedListResponse = client.listRegistrations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRegistrationsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listRegistrationsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listRegistrations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listRegistrationsTest2() throws Exception { - Registration responsesElement = Registration.newBuilder().build(); - ListRegistrationsResponse expectedResponse = - ListRegistrationsResponse.newBuilder() - .setNextPageToken("") - .addAllRegistrations(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListRegistrationsPagedResponse pagedListResponse = client.listRegistrations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRegistrationsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listRegistrationsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - client.listRegistrations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - Registration actualResponse = client.getRegistration(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getRegistrationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.getRegistration(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRegistrationTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - - Registration actualResponse = client.getRegistration(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getRegistrationExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - client.getRegistration(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - Registration registration = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = client.updateRegistrationAsync(registration, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateRegistrationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Registration registration = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateRegistrationAsync(registration, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureManagementSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureManagementSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureManagementSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureManagementSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureManagementSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureManagementSettingsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureDnsSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureDnsSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureDnsSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureDnsSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureDnsSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureDnsSettingsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureContactSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureContactSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureContactSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureContactSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureContactSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureContactSettingsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void exportRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("exportRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - Registration actualResponse = client.exportRegistrationAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void exportRegistrationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.exportRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void exportRegistrationTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("exportRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - - Registration actualResponse = client.exportRegistrationAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void exportRegistrationExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - client.exportRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void deleteRegistrationTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - client.deleteRegistrationAsync(name).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteRegistrationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.deleteRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void deleteRegistrationTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - - client.deleteRegistrationAsync(name).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteRegistrationExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - client.deleteRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void retrieveAuthorizationCodeTest() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockService.addResponse(expectedResponse); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - AuthorizationCode actualResponse = client.retrieveAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveAuthorizationCodeExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.retrieveAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveAuthorizationCodeTest2() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockService.addResponse(expectedResponse); - - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - - AuthorizationCode actualResponse = client.retrieveAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveAuthorizationCodeExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - client.retrieveAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resetAuthorizationCodeTest() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockService.addResponse(expectedResponse); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - AuthorizationCode actualResponse = client.resetAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void resetAuthorizationCodeExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.resetAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resetAuthorizationCodeTest2() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockService.addResponse(expectedResponse); - - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - - AuthorizationCode actualResponse = client.resetAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void resetAuthorizationCodeExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - client.resetAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1/DomainsClientTest.java b/google-cloud-domains/src/test/java/com/google/cloud/domains/v1/DomainsClientTest.java deleted file mode 100644 index f7bff351..00000000 --- a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1/DomainsClientTest.java +++ /dev/null @@ -1,1583 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1; - -import static com.google.cloud.domains.v1.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import com.google.type.Money; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class DomainsClientTest { - private static MockDomains mockDomains; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private DomainsClient client; - - @BeforeClass - public static void startStaticServer() { - mockDomains = new MockDomains(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockDomains)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - DomainsSettings settings = - DomainsSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DomainsClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void searchDomainsTest() throws Exception { - SearchDomainsResponse expectedResponse = - SearchDomainsResponse.newBuilder() - .addAllRegisterParameters(new ArrayList()) - .build(); - mockDomains.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String query = "query107944136"; - - SearchDomainsResponse actualResponse = client.searchDomains(location, query); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SearchDomainsRequest actualRequest = ((SearchDomainsRequest) actualRequests.get(0)); - - Assert.assertEquals(location.toString(), actualRequest.getLocation()); - Assert.assertEquals(query, actualRequest.getQuery()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void searchDomainsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String query = "query107944136"; - client.searchDomains(location, query); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void searchDomainsTest2() throws Exception { - SearchDomainsResponse expectedResponse = - SearchDomainsResponse.newBuilder() - .addAllRegisterParameters(new ArrayList()) - .build(); - mockDomains.addResponse(expectedResponse); - - String location = "location1901043637"; - String query = "query107944136"; - - SearchDomainsResponse actualResponse = client.searchDomains(location, query); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SearchDomainsRequest actualRequest = ((SearchDomainsRequest) actualRequests.get(0)); - - Assert.assertEquals(location, actualRequest.getLocation()); - Assert.assertEquals(query, actualRequest.getQuery()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void searchDomainsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String location = "location1901043637"; - String query = "query107944136"; - client.searchDomains(location, query); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveRegisterParametersTest() throws Exception { - RetrieveRegisterParametersResponse expectedResponse = - RetrieveRegisterParametersResponse.newBuilder() - .setRegisterParameters(RegisterParameters.newBuilder().build()) - .build(); - mockDomains.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - - RetrieveRegisterParametersResponse actualResponse = - client.retrieveRegisterParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveRegisterParametersRequest actualRequest = - ((RetrieveRegisterParametersRequest) actualRequests.get(0)); - - Assert.assertEquals(location.toString(), actualRequest.getLocation()); - Assert.assertEquals(domainName, actualRequest.getDomainName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveRegisterParametersExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - client.retrieveRegisterParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveRegisterParametersTest2() throws Exception { - RetrieveRegisterParametersResponse expectedResponse = - RetrieveRegisterParametersResponse.newBuilder() - .setRegisterParameters(RegisterParameters.newBuilder().build()) - .build(); - mockDomains.addResponse(expectedResponse); - - String location = "location1901043637"; - String domainName = "domainName-1244085905"; - - RetrieveRegisterParametersResponse actualResponse = - client.retrieveRegisterParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveRegisterParametersRequest actualRequest = - ((RetrieveRegisterParametersRequest) actualRequests.get(0)); - - Assert.assertEquals(location, actualRequest.getLocation()); - Assert.assertEquals(domainName, actualRequest.getDomainName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveRegisterParametersExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String location = "location1901043637"; - String domainName = "domainName-1244085905"; - client.retrieveRegisterParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void registerDomainTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("registerDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - - Registration actualResponse = - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RegisterDomainRequest actualRequest = ((RegisterDomainRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(yearlyPrice, actualRequest.getYearlyPrice()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void registerDomainExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void registerDomainTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("registerDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String parent = "parent-995424086"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - - Registration actualResponse = - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RegisterDomainRequest actualRequest = ((RegisterDomainRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(yearlyPrice, actualRequest.getYearlyPrice()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void registerDomainExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String parent = "parent-995424086"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void retrieveTransferParametersTest() throws Exception { - RetrieveTransferParametersResponse expectedResponse = - RetrieveTransferParametersResponse.newBuilder() - .setTransferParameters(TransferParameters.newBuilder().build()) - .build(); - mockDomains.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - - RetrieveTransferParametersResponse actualResponse = - client.retrieveTransferParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveTransferParametersRequest actualRequest = - ((RetrieveTransferParametersRequest) actualRequests.get(0)); - - Assert.assertEquals(location.toString(), actualRequest.getLocation()); - Assert.assertEquals(domainName, actualRequest.getDomainName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveTransferParametersExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - client.retrieveTransferParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveTransferParametersTest2() throws Exception { - RetrieveTransferParametersResponse expectedResponse = - RetrieveTransferParametersResponse.newBuilder() - .setTransferParameters(TransferParameters.newBuilder().build()) - .build(); - mockDomains.addResponse(expectedResponse); - - String location = "location1901043637"; - String domainName = "domainName-1244085905"; - - RetrieveTransferParametersResponse actualResponse = - client.retrieveTransferParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveTransferParametersRequest actualRequest = - ((RetrieveTransferParametersRequest) actualRequests.get(0)); - - Assert.assertEquals(location, actualRequest.getLocation()); - Assert.assertEquals(domainName, actualRequest.getDomainName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveTransferParametersExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String location = "location1901043637"; - String domainName = "domainName-1244085905"; - client.retrieveTransferParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void transferDomainTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("transferDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - - Registration actualResponse = - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TransferDomainRequest actualRequest = ((TransferDomainRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(yearlyPrice, actualRequest.getYearlyPrice()); - Assert.assertEquals(authorizationCode, actualRequest.getAuthorizationCode()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void transferDomainExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void transferDomainTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("transferDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String parent = "parent-995424086"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - - Registration actualResponse = - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TransferDomainRequest actualRequest = ((TransferDomainRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(yearlyPrice, actualRequest.getYearlyPrice()); - Assert.assertEquals(authorizationCode, actualRequest.getAuthorizationCode()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void transferDomainExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String parent = "parent-995424086"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void listRegistrationsTest() throws Exception { - Registration responsesElement = Registration.newBuilder().build(); - ListRegistrationsResponse expectedResponse = - ListRegistrationsResponse.newBuilder() - .setNextPageToken("") - .addAllRegistrations(Arrays.asList(responsesElement)) - .build(); - mockDomains.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListRegistrationsPagedResponse pagedListResponse = client.listRegistrations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRegistrationsList().get(0), resources.get(0)); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListRegistrationsRequest actualRequest = ((ListRegistrationsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listRegistrationsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listRegistrations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listRegistrationsTest2() throws Exception { - Registration responsesElement = Registration.newBuilder().build(); - ListRegistrationsResponse expectedResponse = - ListRegistrationsResponse.newBuilder() - .setNextPageToken("") - .addAllRegistrations(Arrays.asList(responsesElement)) - .build(); - mockDomains.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListRegistrationsPagedResponse pagedListResponse = client.listRegistrations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRegistrationsList().get(0), resources.get(0)); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListRegistrationsRequest actualRequest = ((ListRegistrationsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listRegistrationsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String parent = "parent-995424086"; - client.listRegistrations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - mockDomains.addResponse(expectedResponse); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - Registration actualResponse = client.getRegistration(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetRegistrationRequest actualRequest = ((GetRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getRegistrationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.getRegistration(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRegistrationTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - mockDomains.addResponse(expectedResponse); - - String name = "name3373707"; - - Registration actualResponse = client.getRegistration(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetRegistrationRequest actualRequest = ((GetRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getRegistrationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String name = "name3373707"; - client.getRegistration(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - Registration registration = Registration.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = client.updateRegistrationAsync(registration, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateRegistrationRequest actualRequest = ((UpdateRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateRegistrationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - Registration registration = Registration.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateRegistrationAsync(registration, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureManagementSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureManagementSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureManagementSettingsRequest actualRequest = - ((ConfigureManagementSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration.toString(), actualRequest.getRegistration()); - Assert.assertEquals(managementSettings, actualRequest.getManagementSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureManagementSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureManagementSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureManagementSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String registration = "registration-1350309703"; - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureManagementSettingsRequest actualRequest = - ((ConfigureManagementSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(managementSettings, actualRequest.getManagementSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureManagementSettingsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String registration = "registration-1350309703"; - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureDnsSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureDnsSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureDnsSettingsRequest actualRequest = - ((ConfigureDnsSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration.toString(), actualRequest.getRegistration()); - Assert.assertEquals(dnsSettings, actualRequest.getDnsSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureDnsSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureDnsSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureDnsSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String registration = "registration-1350309703"; - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureDnsSettingsRequest actualRequest = - ((ConfigureDnsSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(dnsSettings, actualRequest.getDnsSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureDnsSettingsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String registration = "registration-1350309703"; - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureContactSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureContactSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureContactSettingsRequest actualRequest = - ((ConfigureContactSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration.toString(), actualRequest.getRegistration()); - Assert.assertEquals(contactSettings, actualRequest.getContactSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureContactSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureContactSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureContactSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String registration = "registration-1350309703"; - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureContactSettingsRequest actualRequest = - ((ConfigureContactSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(contactSettings, actualRequest.getContactSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureContactSettingsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String registration = "registration-1350309703"; - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void exportRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("exportRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - Registration actualResponse = client.exportRegistrationAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ExportRegistrationRequest actualRequest = ((ExportRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void exportRegistrationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.exportRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void exportRegistrationTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("exportRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String name = "name3373707"; - - Registration actualResponse = client.exportRegistrationAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ExportRegistrationRequest actualRequest = ((ExportRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void exportRegistrationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String name = "name3373707"; - client.exportRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteRegistrationTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - client.deleteRegistrationAsync(name).get(); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteRegistrationRequest actualRequest = ((DeleteRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteRegistrationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.deleteRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteRegistrationTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String name = "name3373707"; - - client.deleteRegistrationAsync(name).get(); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteRegistrationRequest actualRequest = ((DeleteRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteRegistrationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String name = "name3373707"; - client.deleteRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void retrieveAuthorizationCodeTest() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockDomains.addResponse(expectedResponse); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - AuthorizationCode actualResponse = client.retrieveAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveAuthorizationCodeRequest actualRequest = - ((RetrieveAuthorizationCodeRequest) actualRequests.get(0)); - - Assert.assertEquals(registration.toString(), actualRequest.getRegistration()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveAuthorizationCodeExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.retrieveAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveAuthorizationCodeTest2() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockDomains.addResponse(expectedResponse); - - String registration = "registration-1350309703"; - - AuthorizationCode actualResponse = client.retrieveAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveAuthorizationCodeRequest actualRequest = - ((RetrieveAuthorizationCodeRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveAuthorizationCodeExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String registration = "registration-1350309703"; - client.retrieveAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resetAuthorizationCodeTest() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockDomains.addResponse(expectedResponse); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - AuthorizationCode actualResponse = client.resetAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ResetAuthorizationCodeRequest actualRequest = - ((ResetAuthorizationCodeRequest) actualRequests.get(0)); - - Assert.assertEquals(registration.toString(), actualRequest.getRegistration()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void resetAuthorizationCodeExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.resetAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resetAuthorizationCodeTest2() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockDomains.addResponse(expectedResponse); - - String registration = "registration-1350309703"; - - AuthorizationCode actualResponse = client.resetAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ResetAuthorizationCodeRequest actualRequest = - ((ResetAuthorizationCodeRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void resetAuthorizationCodeExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String registration = "registration-1350309703"; - client.resetAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1/MockDomains.java b/google-cloud-domains/src/test/java/com/google/cloud/domains/v1/MockDomains.java deleted file mode 100644 index 8eff9b87..00000000 --- a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1/MockDomains.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.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 MockDomains implements MockGrpcService { - private final MockDomainsImpl serviceImpl; - - public MockDomains() { - serviceImpl = new MockDomainsImpl(); - } - - @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-domains/src/test/java/com/google/cloud/domains/v1/MockDomainsImpl.java b/google-cloud-domains/src/test/java/com/google/cloud/domains/v1/MockDomainsImpl.java deleted file mode 100644 index eca8f782..00000000 --- a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1/MockDomainsImpl.java +++ /dev/null @@ -1,380 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1; - -import com.google.api.core.BetaApi; -import com.google.cloud.domains.v1.DomainsGrpc.DomainsImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockDomainsImpl extends DomainsImplBase { - private List requests; - private Queue responses; - - public MockDomainsImpl() { - 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 searchDomains( - SearchDomainsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof SearchDomainsResponse) { - requests.add(request); - responseObserver.onNext(((SearchDomainsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SearchDomains, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - SearchDomainsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void retrieveRegisterParameters( - RetrieveRegisterParametersRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof RetrieveRegisterParametersResponse) { - requests.add(request); - responseObserver.onNext(((RetrieveRegisterParametersResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RetrieveRegisterParameters, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - RetrieveRegisterParametersResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void registerDomain( - RegisterDomainRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RegisterDomain, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void retrieveTransferParameters( - RetrieveTransferParametersRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof RetrieveTransferParametersResponse) { - requests.add(request); - responseObserver.onNext(((RetrieveTransferParametersResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RetrieveTransferParameters, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - RetrieveTransferParametersResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void transferDomain( - TransferDomainRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TransferDomain, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listRegistrations( - ListRegistrationsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListRegistrationsResponse) { - requests.add(request); - responseObserver.onNext(((ListRegistrationsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListRegistrations, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListRegistrationsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getRegistration( - GetRegistrationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Registration) { - requests.add(request); - responseObserver.onNext(((Registration) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetRegistration, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Registration.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateRegistration( - UpdateRegistrationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateRegistration, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void configureManagementSettings( - ConfigureManagementSettingsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ConfigureManagementSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void configureDnsSettings( - ConfigureDnsSettingsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ConfigureDnsSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void configureContactSettings( - ConfigureContactSettingsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ConfigureContactSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void exportRegistration( - ExportRegistrationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ExportRegistration, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteRegistration( - DeleteRegistrationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteRegistration, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void retrieveAuthorizationCode( - RetrieveAuthorizationCodeRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AuthorizationCode) { - requests.add(request); - responseObserver.onNext(((AuthorizationCode) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RetrieveAuthorizationCode, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AuthorizationCode.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void resetAuthorizationCode( - ResetAuthorizationCodeRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AuthorizationCode) { - requests.add(request); - responseObserver.onNext(((AuthorizationCode) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ResetAuthorizationCode, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AuthorizationCode.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1alpha2/DomainsClientHttpJsonTest.java b/google-cloud-domains/src/test/java/com/google/cloud/domains/v1alpha2/DomainsClientHttpJsonTest.java deleted file mode 100644 index 82aa9442..00000000 --- a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1alpha2/DomainsClientHttpJsonTest.java +++ /dev/null @@ -1,1700 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2; - -import static com.google.cloud.domains.v1alpha2.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.cloud.domains.v1alpha2.stub.HttpJsonDomainsStub; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import com.google.type.Money; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class DomainsClientHttpJsonTest { - private static MockHttpService mockService; - private static DomainsClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonDomainsStub.getMethodDescriptors(), DomainsSettings.getDefaultEndpoint()); - DomainsSettings settings = - DomainsSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - DomainsSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DomainsClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void searchDomainsTest() throws Exception { - SearchDomainsResponse expectedResponse = - SearchDomainsResponse.newBuilder() - .addAllRegisterParameters(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String query = "query107944136"; - - SearchDomainsResponse actualResponse = client.searchDomains(location, query); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void searchDomainsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String query = "query107944136"; - client.searchDomains(location, query); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void searchDomainsTest2() throws Exception { - SearchDomainsResponse expectedResponse = - SearchDomainsResponse.newBuilder() - .addAllRegisterParameters(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String location = "projects/project-7132/locations/location-7132"; - String query = "query107944136"; - - SearchDomainsResponse actualResponse = client.searchDomains(location, query); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void searchDomainsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String location = "projects/project-7132/locations/location-7132"; - String query = "query107944136"; - client.searchDomains(location, query); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveRegisterParametersTest() throws Exception { - RetrieveRegisterParametersResponse expectedResponse = - RetrieveRegisterParametersResponse.newBuilder() - .setRegisterParameters(RegisterParameters.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - - RetrieveRegisterParametersResponse actualResponse = - client.retrieveRegisterParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveRegisterParametersExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - client.retrieveRegisterParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveRegisterParametersTest2() throws Exception { - RetrieveRegisterParametersResponse expectedResponse = - RetrieveRegisterParametersResponse.newBuilder() - .setRegisterParameters(RegisterParameters.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String location = "projects/project-7132/locations/location-7132"; - String domainName = "domainName-1244085905"; - - RetrieveRegisterParametersResponse actualResponse = - client.retrieveRegisterParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveRegisterParametersExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String location = "projects/project-7132/locations/location-7132"; - String domainName = "domainName-1244085905"; - client.retrieveRegisterParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void registerDomainTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("registerDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - - Registration actualResponse = - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void registerDomainExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void registerDomainTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("registerDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - - Registration actualResponse = - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void registerDomainExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void retrieveTransferParametersTest() throws Exception { - RetrieveTransferParametersResponse expectedResponse = - RetrieveTransferParametersResponse.newBuilder() - .setTransferParameters(TransferParameters.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - - RetrieveTransferParametersResponse actualResponse = - client.retrieveTransferParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveTransferParametersExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - client.retrieveTransferParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveTransferParametersTest2() throws Exception { - RetrieveTransferParametersResponse expectedResponse = - RetrieveTransferParametersResponse.newBuilder() - .setTransferParameters(TransferParameters.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String location = "projects/project-7132/locations/location-7132"; - String domainName = "domainName-1244085905"; - - RetrieveTransferParametersResponse actualResponse = - client.retrieveTransferParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveTransferParametersExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String location = "projects/project-7132/locations/location-7132"; - String domainName = "domainName-1244085905"; - client.retrieveTransferParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void transferDomainTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("transferDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - - Registration actualResponse = - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void transferDomainExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void transferDomainTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("transferDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - - Registration actualResponse = - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void transferDomainExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void listRegistrationsTest() throws Exception { - Registration responsesElement = Registration.newBuilder().build(); - ListRegistrationsResponse expectedResponse = - ListRegistrationsResponse.newBuilder() - .setNextPageToken("") - .addAllRegistrations(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListRegistrationsPagedResponse pagedListResponse = client.listRegistrations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRegistrationsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listRegistrationsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listRegistrations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listRegistrationsTest2() throws Exception { - Registration responsesElement = Registration.newBuilder().build(); - ListRegistrationsResponse expectedResponse = - ListRegistrationsResponse.newBuilder() - .setNextPageToken("") - .addAllRegistrations(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListRegistrationsPagedResponse pagedListResponse = client.listRegistrations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRegistrationsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listRegistrationsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - client.listRegistrations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - Registration actualResponse = client.getRegistration(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getRegistrationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.getRegistration(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRegistrationTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - - Registration actualResponse = client.getRegistration(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getRegistrationExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - client.getRegistration(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - Registration registration = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = client.updateRegistrationAsync(registration, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateRegistrationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Registration registration = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateRegistrationAsync(registration, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureManagementSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureManagementSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureManagementSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureManagementSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureManagementSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureManagementSettingsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureDnsSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureDnsSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureDnsSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureDnsSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureDnsSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureDnsSettingsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureContactSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureContactSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureContactSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureContactSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureContactSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureContactSettingsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void exportRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("exportRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - Registration actualResponse = client.exportRegistrationAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void exportRegistrationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.exportRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void exportRegistrationTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("exportRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - - Registration actualResponse = client.exportRegistrationAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void exportRegistrationExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - client.exportRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void deleteRegistrationTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - client.deleteRegistrationAsync(name).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteRegistrationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.deleteRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void deleteRegistrationTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - - client.deleteRegistrationAsync(name).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteRegistrationExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - client.deleteRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void retrieveAuthorizationCodeTest() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockService.addResponse(expectedResponse); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - AuthorizationCode actualResponse = client.retrieveAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveAuthorizationCodeExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.retrieveAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveAuthorizationCodeTest2() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockService.addResponse(expectedResponse); - - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - - AuthorizationCode actualResponse = client.retrieveAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveAuthorizationCodeExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - client.retrieveAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resetAuthorizationCodeTest() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockService.addResponse(expectedResponse); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - AuthorizationCode actualResponse = client.resetAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void resetAuthorizationCodeExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.resetAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resetAuthorizationCodeTest2() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockService.addResponse(expectedResponse); - - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - - AuthorizationCode actualResponse = client.resetAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void resetAuthorizationCodeExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - client.resetAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1alpha2/DomainsClientTest.java b/google-cloud-domains/src/test/java/com/google/cloud/domains/v1alpha2/DomainsClientTest.java deleted file mode 100644 index b4de0987..00000000 --- a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1alpha2/DomainsClientTest.java +++ /dev/null @@ -1,1583 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2; - -import static com.google.cloud.domains.v1alpha2.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import com.google.type.Money; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class DomainsClientTest { - private static MockDomains mockDomains; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private DomainsClient client; - - @BeforeClass - public static void startStaticServer() { - mockDomains = new MockDomains(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockDomains)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - DomainsSettings settings = - DomainsSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DomainsClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void searchDomainsTest() throws Exception { - SearchDomainsResponse expectedResponse = - SearchDomainsResponse.newBuilder() - .addAllRegisterParameters(new ArrayList()) - .build(); - mockDomains.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String query = "query107944136"; - - SearchDomainsResponse actualResponse = client.searchDomains(location, query); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SearchDomainsRequest actualRequest = ((SearchDomainsRequest) actualRequests.get(0)); - - Assert.assertEquals(location.toString(), actualRequest.getLocation()); - Assert.assertEquals(query, actualRequest.getQuery()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void searchDomainsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String query = "query107944136"; - client.searchDomains(location, query); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void searchDomainsTest2() throws Exception { - SearchDomainsResponse expectedResponse = - SearchDomainsResponse.newBuilder() - .addAllRegisterParameters(new ArrayList()) - .build(); - mockDomains.addResponse(expectedResponse); - - String location = "location1901043637"; - String query = "query107944136"; - - SearchDomainsResponse actualResponse = client.searchDomains(location, query); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SearchDomainsRequest actualRequest = ((SearchDomainsRequest) actualRequests.get(0)); - - Assert.assertEquals(location, actualRequest.getLocation()); - Assert.assertEquals(query, actualRequest.getQuery()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void searchDomainsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String location = "location1901043637"; - String query = "query107944136"; - client.searchDomains(location, query); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveRegisterParametersTest() throws Exception { - RetrieveRegisterParametersResponse expectedResponse = - RetrieveRegisterParametersResponse.newBuilder() - .setRegisterParameters(RegisterParameters.newBuilder().build()) - .build(); - mockDomains.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - - RetrieveRegisterParametersResponse actualResponse = - client.retrieveRegisterParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveRegisterParametersRequest actualRequest = - ((RetrieveRegisterParametersRequest) actualRequests.get(0)); - - Assert.assertEquals(location.toString(), actualRequest.getLocation()); - Assert.assertEquals(domainName, actualRequest.getDomainName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveRegisterParametersExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - client.retrieveRegisterParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveRegisterParametersTest2() throws Exception { - RetrieveRegisterParametersResponse expectedResponse = - RetrieveRegisterParametersResponse.newBuilder() - .setRegisterParameters(RegisterParameters.newBuilder().build()) - .build(); - mockDomains.addResponse(expectedResponse); - - String location = "location1901043637"; - String domainName = "domainName-1244085905"; - - RetrieveRegisterParametersResponse actualResponse = - client.retrieveRegisterParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveRegisterParametersRequest actualRequest = - ((RetrieveRegisterParametersRequest) actualRequests.get(0)); - - Assert.assertEquals(location, actualRequest.getLocation()); - Assert.assertEquals(domainName, actualRequest.getDomainName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveRegisterParametersExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String location = "location1901043637"; - String domainName = "domainName-1244085905"; - client.retrieveRegisterParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void registerDomainTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("registerDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - - Registration actualResponse = - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RegisterDomainRequest actualRequest = ((RegisterDomainRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(yearlyPrice, actualRequest.getYearlyPrice()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void registerDomainExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void registerDomainTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("registerDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String parent = "parent-995424086"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - - Registration actualResponse = - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RegisterDomainRequest actualRequest = ((RegisterDomainRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(yearlyPrice, actualRequest.getYearlyPrice()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void registerDomainExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String parent = "parent-995424086"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void retrieveTransferParametersTest() throws Exception { - RetrieveTransferParametersResponse expectedResponse = - RetrieveTransferParametersResponse.newBuilder() - .setTransferParameters(TransferParameters.newBuilder().build()) - .build(); - mockDomains.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - - RetrieveTransferParametersResponse actualResponse = - client.retrieveTransferParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveTransferParametersRequest actualRequest = - ((RetrieveTransferParametersRequest) actualRequests.get(0)); - - Assert.assertEquals(location.toString(), actualRequest.getLocation()); - Assert.assertEquals(domainName, actualRequest.getDomainName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveTransferParametersExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - client.retrieveTransferParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveTransferParametersTest2() throws Exception { - RetrieveTransferParametersResponse expectedResponse = - RetrieveTransferParametersResponse.newBuilder() - .setTransferParameters(TransferParameters.newBuilder().build()) - .build(); - mockDomains.addResponse(expectedResponse); - - String location = "location1901043637"; - String domainName = "domainName-1244085905"; - - RetrieveTransferParametersResponse actualResponse = - client.retrieveTransferParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveTransferParametersRequest actualRequest = - ((RetrieveTransferParametersRequest) actualRequests.get(0)); - - Assert.assertEquals(location, actualRequest.getLocation()); - Assert.assertEquals(domainName, actualRequest.getDomainName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveTransferParametersExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String location = "location1901043637"; - String domainName = "domainName-1244085905"; - client.retrieveTransferParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void transferDomainTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("transferDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - - Registration actualResponse = - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TransferDomainRequest actualRequest = ((TransferDomainRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(yearlyPrice, actualRequest.getYearlyPrice()); - Assert.assertEquals(authorizationCode, actualRequest.getAuthorizationCode()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void transferDomainExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void transferDomainTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("transferDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String parent = "parent-995424086"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - - Registration actualResponse = - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TransferDomainRequest actualRequest = ((TransferDomainRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(yearlyPrice, actualRequest.getYearlyPrice()); - Assert.assertEquals(authorizationCode, actualRequest.getAuthorizationCode()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void transferDomainExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String parent = "parent-995424086"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void listRegistrationsTest() throws Exception { - Registration responsesElement = Registration.newBuilder().build(); - ListRegistrationsResponse expectedResponse = - ListRegistrationsResponse.newBuilder() - .setNextPageToken("") - .addAllRegistrations(Arrays.asList(responsesElement)) - .build(); - mockDomains.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListRegistrationsPagedResponse pagedListResponse = client.listRegistrations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRegistrationsList().get(0), resources.get(0)); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListRegistrationsRequest actualRequest = ((ListRegistrationsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listRegistrationsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listRegistrations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listRegistrationsTest2() throws Exception { - Registration responsesElement = Registration.newBuilder().build(); - ListRegistrationsResponse expectedResponse = - ListRegistrationsResponse.newBuilder() - .setNextPageToken("") - .addAllRegistrations(Arrays.asList(responsesElement)) - .build(); - mockDomains.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListRegistrationsPagedResponse pagedListResponse = client.listRegistrations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRegistrationsList().get(0), resources.get(0)); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListRegistrationsRequest actualRequest = ((ListRegistrationsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listRegistrationsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String parent = "parent-995424086"; - client.listRegistrations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - mockDomains.addResponse(expectedResponse); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - Registration actualResponse = client.getRegistration(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetRegistrationRequest actualRequest = ((GetRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getRegistrationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.getRegistration(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRegistrationTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - mockDomains.addResponse(expectedResponse); - - String name = "name3373707"; - - Registration actualResponse = client.getRegistration(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetRegistrationRequest actualRequest = ((GetRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getRegistrationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String name = "name3373707"; - client.getRegistration(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - Registration registration = Registration.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = client.updateRegistrationAsync(registration, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateRegistrationRequest actualRequest = ((UpdateRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateRegistrationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - Registration registration = Registration.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateRegistrationAsync(registration, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureManagementSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureManagementSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureManagementSettingsRequest actualRequest = - ((ConfigureManagementSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration.toString(), actualRequest.getRegistration()); - Assert.assertEquals(managementSettings, actualRequest.getManagementSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureManagementSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureManagementSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureManagementSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String registration = "registration-1350309703"; - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureManagementSettingsRequest actualRequest = - ((ConfigureManagementSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(managementSettings, actualRequest.getManagementSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureManagementSettingsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String registration = "registration-1350309703"; - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureDnsSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureDnsSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureDnsSettingsRequest actualRequest = - ((ConfigureDnsSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration.toString(), actualRequest.getRegistration()); - Assert.assertEquals(dnsSettings, actualRequest.getDnsSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureDnsSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureDnsSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureDnsSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String registration = "registration-1350309703"; - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureDnsSettingsRequest actualRequest = - ((ConfigureDnsSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(dnsSettings, actualRequest.getDnsSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureDnsSettingsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String registration = "registration-1350309703"; - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureContactSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureContactSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureContactSettingsRequest actualRequest = - ((ConfigureContactSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration.toString(), actualRequest.getRegistration()); - Assert.assertEquals(contactSettings, actualRequest.getContactSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureContactSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureContactSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureContactSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String registration = "registration-1350309703"; - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureContactSettingsRequest actualRequest = - ((ConfigureContactSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(contactSettings, actualRequest.getContactSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureContactSettingsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String registration = "registration-1350309703"; - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void exportRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("exportRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - Registration actualResponse = client.exportRegistrationAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ExportRegistrationRequest actualRequest = ((ExportRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void exportRegistrationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.exportRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void exportRegistrationTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("exportRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String name = "name3373707"; - - Registration actualResponse = client.exportRegistrationAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ExportRegistrationRequest actualRequest = ((ExportRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void exportRegistrationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String name = "name3373707"; - client.exportRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteRegistrationTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - client.deleteRegistrationAsync(name).get(); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteRegistrationRequest actualRequest = ((DeleteRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteRegistrationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.deleteRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteRegistrationTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String name = "name3373707"; - - client.deleteRegistrationAsync(name).get(); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteRegistrationRequest actualRequest = ((DeleteRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteRegistrationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String name = "name3373707"; - client.deleteRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void retrieveAuthorizationCodeTest() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockDomains.addResponse(expectedResponse); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - AuthorizationCode actualResponse = client.retrieveAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveAuthorizationCodeRequest actualRequest = - ((RetrieveAuthorizationCodeRequest) actualRequests.get(0)); - - Assert.assertEquals(registration.toString(), actualRequest.getRegistration()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveAuthorizationCodeExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.retrieveAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveAuthorizationCodeTest2() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockDomains.addResponse(expectedResponse); - - String registration = "registration-1350309703"; - - AuthorizationCode actualResponse = client.retrieveAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveAuthorizationCodeRequest actualRequest = - ((RetrieveAuthorizationCodeRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveAuthorizationCodeExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String registration = "registration-1350309703"; - client.retrieveAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resetAuthorizationCodeTest() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockDomains.addResponse(expectedResponse); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - AuthorizationCode actualResponse = client.resetAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ResetAuthorizationCodeRequest actualRequest = - ((ResetAuthorizationCodeRequest) actualRequests.get(0)); - - Assert.assertEquals(registration.toString(), actualRequest.getRegistration()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void resetAuthorizationCodeExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.resetAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resetAuthorizationCodeTest2() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockDomains.addResponse(expectedResponse); - - String registration = "registration-1350309703"; - - AuthorizationCode actualResponse = client.resetAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ResetAuthorizationCodeRequest actualRequest = - ((ResetAuthorizationCodeRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void resetAuthorizationCodeExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String registration = "registration-1350309703"; - client.resetAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1alpha2/MockDomains.java b/google-cloud-domains/src/test/java/com/google/cloud/domains/v1alpha2/MockDomains.java deleted file mode 100644 index e1f94a4a..00000000 --- a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1alpha2/MockDomains.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2; - -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 MockDomains implements MockGrpcService { - private final MockDomainsImpl serviceImpl; - - public MockDomains() { - serviceImpl = new MockDomainsImpl(); - } - - @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-domains/src/test/java/com/google/cloud/domains/v1alpha2/MockDomainsImpl.java b/google-cloud-domains/src/test/java/com/google/cloud/domains/v1alpha2/MockDomainsImpl.java deleted file mode 100644 index a4edaad4..00000000 --- a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1alpha2/MockDomainsImpl.java +++ /dev/null @@ -1,380 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2; - -import com.google.api.core.BetaApi; -import com.google.cloud.domains.v1alpha2.DomainsGrpc.DomainsImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockDomainsImpl extends DomainsImplBase { - private List requests; - private Queue responses; - - public MockDomainsImpl() { - 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 searchDomains( - SearchDomainsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof SearchDomainsResponse) { - requests.add(request); - responseObserver.onNext(((SearchDomainsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SearchDomains, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - SearchDomainsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void retrieveRegisterParameters( - RetrieveRegisterParametersRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof RetrieveRegisterParametersResponse) { - requests.add(request); - responseObserver.onNext(((RetrieveRegisterParametersResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RetrieveRegisterParameters, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - RetrieveRegisterParametersResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void registerDomain( - RegisterDomainRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RegisterDomain, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void retrieveTransferParameters( - RetrieveTransferParametersRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof RetrieveTransferParametersResponse) { - requests.add(request); - responseObserver.onNext(((RetrieveTransferParametersResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RetrieveTransferParameters, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - RetrieveTransferParametersResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void transferDomain( - TransferDomainRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TransferDomain, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listRegistrations( - ListRegistrationsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListRegistrationsResponse) { - requests.add(request); - responseObserver.onNext(((ListRegistrationsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListRegistrations, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListRegistrationsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getRegistration( - GetRegistrationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Registration) { - requests.add(request); - responseObserver.onNext(((Registration) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetRegistration, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Registration.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateRegistration( - UpdateRegistrationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateRegistration, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void configureManagementSettings( - ConfigureManagementSettingsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ConfigureManagementSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void configureDnsSettings( - ConfigureDnsSettingsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ConfigureDnsSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void configureContactSettings( - ConfigureContactSettingsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ConfigureContactSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void exportRegistration( - ExportRegistrationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ExportRegistration, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteRegistration( - DeleteRegistrationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteRegistration, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void retrieveAuthorizationCode( - RetrieveAuthorizationCodeRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AuthorizationCode) { - requests.add(request); - responseObserver.onNext(((AuthorizationCode) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RetrieveAuthorizationCode, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AuthorizationCode.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void resetAuthorizationCode( - ResetAuthorizationCodeRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AuthorizationCode) { - requests.add(request); - responseObserver.onNext(((AuthorizationCode) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ResetAuthorizationCode, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AuthorizationCode.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1beta1/DomainsClientHttpJsonTest.java b/google-cloud-domains/src/test/java/com/google/cloud/domains/v1beta1/DomainsClientHttpJsonTest.java deleted file mode 100644 index d8fc771f..00000000 --- a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1beta1/DomainsClientHttpJsonTest.java +++ /dev/null @@ -1,1700 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1; - -import static com.google.cloud.domains.v1beta1.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.cloud.domains.v1beta1.stub.HttpJsonDomainsStub; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import com.google.type.Money; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class DomainsClientHttpJsonTest { - private static MockHttpService mockService; - private static DomainsClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonDomainsStub.getMethodDescriptors(), DomainsSettings.getDefaultEndpoint()); - DomainsSettings settings = - DomainsSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - DomainsSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DomainsClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void searchDomainsTest() throws Exception { - SearchDomainsResponse expectedResponse = - SearchDomainsResponse.newBuilder() - .addAllRegisterParameters(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String query = "query107944136"; - - SearchDomainsResponse actualResponse = client.searchDomains(location, query); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void searchDomainsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String query = "query107944136"; - client.searchDomains(location, query); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void searchDomainsTest2() throws Exception { - SearchDomainsResponse expectedResponse = - SearchDomainsResponse.newBuilder() - .addAllRegisterParameters(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String location = "projects/project-7132/locations/location-7132"; - String query = "query107944136"; - - SearchDomainsResponse actualResponse = client.searchDomains(location, query); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void searchDomainsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String location = "projects/project-7132/locations/location-7132"; - String query = "query107944136"; - client.searchDomains(location, query); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveRegisterParametersTest() throws Exception { - RetrieveRegisterParametersResponse expectedResponse = - RetrieveRegisterParametersResponse.newBuilder() - .setRegisterParameters(RegisterParameters.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - - RetrieveRegisterParametersResponse actualResponse = - client.retrieveRegisterParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveRegisterParametersExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - client.retrieveRegisterParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveRegisterParametersTest2() throws Exception { - RetrieveRegisterParametersResponse expectedResponse = - RetrieveRegisterParametersResponse.newBuilder() - .setRegisterParameters(RegisterParameters.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String location = "projects/project-7132/locations/location-7132"; - String domainName = "domainName-1244085905"; - - RetrieveRegisterParametersResponse actualResponse = - client.retrieveRegisterParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveRegisterParametersExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String location = "projects/project-7132/locations/location-7132"; - String domainName = "domainName-1244085905"; - client.retrieveRegisterParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void registerDomainTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("registerDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - - Registration actualResponse = - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void registerDomainExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void registerDomainTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("registerDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - - Registration actualResponse = - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void registerDomainExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void retrieveTransferParametersTest() throws Exception { - RetrieveTransferParametersResponse expectedResponse = - RetrieveTransferParametersResponse.newBuilder() - .setTransferParameters(TransferParameters.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - - RetrieveTransferParametersResponse actualResponse = - client.retrieveTransferParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveTransferParametersExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - client.retrieveTransferParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveTransferParametersTest2() throws Exception { - RetrieveTransferParametersResponse expectedResponse = - RetrieveTransferParametersResponse.newBuilder() - .setTransferParameters(TransferParameters.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String location = "projects/project-7132/locations/location-7132"; - String domainName = "domainName-1244085905"; - - RetrieveTransferParametersResponse actualResponse = - client.retrieveTransferParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveTransferParametersExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String location = "projects/project-7132/locations/location-7132"; - String domainName = "domainName-1244085905"; - client.retrieveTransferParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void transferDomainTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("transferDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - - Registration actualResponse = - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void transferDomainExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void transferDomainTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("transferDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - - Registration actualResponse = - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void transferDomainExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void listRegistrationsTest() throws Exception { - Registration responsesElement = Registration.newBuilder().build(); - ListRegistrationsResponse expectedResponse = - ListRegistrationsResponse.newBuilder() - .setNextPageToken("") - .addAllRegistrations(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListRegistrationsPagedResponse pagedListResponse = client.listRegistrations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRegistrationsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listRegistrationsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listRegistrations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listRegistrationsTest2() throws Exception { - Registration responsesElement = Registration.newBuilder().build(); - ListRegistrationsResponse expectedResponse = - ListRegistrationsResponse.newBuilder() - .setNextPageToken("") - .addAllRegistrations(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListRegistrationsPagedResponse pagedListResponse = client.listRegistrations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRegistrationsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listRegistrationsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - client.listRegistrations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - Registration actualResponse = client.getRegistration(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getRegistrationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.getRegistration(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRegistrationTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - - Registration actualResponse = client.getRegistration(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getRegistrationExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - client.getRegistration(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - Registration registration = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = client.updateRegistrationAsync(registration, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateRegistrationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Registration registration = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateRegistrationAsync(registration, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureManagementSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureManagementSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureManagementSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureManagementSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureManagementSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureManagementSettingsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureDnsSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureDnsSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureDnsSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureDnsSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureDnsSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureDnsSettingsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureContactSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureContactSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureContactSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void configureContactSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureContactSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void configureContactSettingsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void exportRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("exportRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - Registration actualResponse = client.exportRegistrationAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void exportRegistrationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.exportRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void exportRegistrationTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("exportRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - - Registration actualResponse = client.exportRegistrationAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void exportRegistrationExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - client.exportRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void deleteRegistrationTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - client.deleteRegistrationAsync(name).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteRegistrationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.deleteRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void deleteRegistrationTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - - client.deleteRegistrationAsync(name).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteRegistrationExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3120/locations/location-3120/registrations/registration-3120"; - client.deleteRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void retrieveAuthorizationCodeTest() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockService.addResponse(expectedResponse); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - AuthorizationCode actualResponse = client.retrieveAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveAuthorizationCodeExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.retrieveAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveAuthorizationCodeTest2() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockService.addResponse(expectedResponse); - - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - - AuthorizationCode actualResponse = client.retrieveAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retrieveAuthorizationCodeExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - client.retrieveAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resetAuthorizationCodeTest() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockService.addResponse(expectedResponse); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - AuthorizationCode actualResponse = client.resetAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void resetAuthorizationCodeExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.resetAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resetAuthorizationCodeTest2() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockService.addResponse(expectedResponse); - - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - - AuthorizationCode actualResponse = client.resetAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void resetAuthorizationCodeExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String registration = - "projects/project-4210/locations/location-4210/registrations/registration-4210"; - client.resetAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1beta1/DomainsClientTest.java b/google-cloud-domains/src/test/java/com/google/cloud/domains/v1beta1/DomainsClientTest.java deleted file mode 100644 index 87cf2433..00000000 --- a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1beta1/DomainsClientTest.java +++ /dev/null @@ -1,1583 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1; - -import static com.google.cloud.domains.v1beta1.DomainsClient.ListRegistrationsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import com.google.type.Money; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class DomainsClientTest { - private static MockDomains mockDomains; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private DomainsClient client; - - @BeforeClass - public static void startStaticServer() { - mockDomains = new MockDomains(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockDomains)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - DomainsSettings settings = - DomainsSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DomainsClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void searchDomainsTest() throws Exception { - SearchDomainsResponse expectedResponse = - SearchDomainsResponse.newBuilder() - .addAllRegisterParameters(new ArrayList()) - .build(); - mockDomains.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String query = "query107944136"; - - SearchDomainsResponse actualResponse = client.searchDomains(location, query); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SearchDomainsRequest actualRequest = ((SearchDomainsRequest) actualRequests.get(0)); - - Assert.assertEquals(location.toString(), actualRequest.getLocation()); - Assert.assertEquals(query, actualRequest.getQuery()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void searchDomainsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String query = "query107944136"; - client.searchDomains(location, query); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void searchDomainsTest2() throws Exception { - SearchDomainsResponse expectedResponse = - SearchDomainsResponse.newBuilder() - .addAllRegisterParameters(new ArrayList()) - .build(); - mockDomains.addResponse(expectedResponse); - - String location = "location1901043637"; - String query = "query107944136"; - - SearchDomainsResponse actualResponse = client.searchDomains(location, query); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SearchDomainsRequest actualRequest = ((SearchDomainsRequest) actualRequests.get(0)); - - Assert.assertEquals(location, actualRequest.getLocation()); - Assert.assertEquals(query, actualRequest.getQuery()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void searchDomainsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String location = "location1901043637"; - String query = "query107944136"; - client.searchDomains(location, query); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveRegisterParametersTest() throws Exception { - RetrieveRegisterParametersResponse expectedResponse = - RetrieveRegisterParametersResponse.newBuilder() - .setRegisterParameters(RegisterParameters.newBuilder().build()) - .build(); - mockDomains.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - - RetrieveRegisterParametersResponse actualResponse = - client.retrieveRegisterParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveRegisterParametersRequest actualRequest = - ((RetrieveRegisterParametersRequest) actualRequests.get(0)); - - Assert.assertEquals(location.toString(), actualRequest.getLocation()); - Assert.assertEquals(domainName, actualRequest.getDomainName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveRegisterParametersExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - client.retrieveRegisterParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveRegisterParametersTest2() throws Exception { - RetrieveRegisterParametersResponse expectedResponse = - RetrieveRegisterParametersResponse.newBuilder() - .setRegisterParameters(RegisterParameters.newBuilder().build()) - .build(); - mockDomains.addResponse(expectedResponse); - - String location = "location1901043637"; - String domainName = "domainName-1244085905"; - - RetrieveRegisterParametersResponse actualResponse = - client.retrieveRegisterParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveRegisterParametersRequest actualRequest = - ((RetrieveRegisterParametersRequest) actualRequests.get(0)); - - Assert.assertEquals(location, actualRequest.getLocation()); - Assert.assertEquals(domainName, actualRequest.getDomainName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveRegisterParametersExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String location = "location1901043637"; - String domainName = "domainName-1244085905"; - client.retrieveRegisterParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void registerDomainTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("registerDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - - Registration actualResponse = - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RegisterDomainRequest actualRequest = ((RegisterDomainRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(yearlyPrice, actualRequest.getYearlyPrice()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void registerDomainExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void registerDomainTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("registerDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String parent = "parent-995424086"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - - Registration actualResponse = - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RegisterDomainRequest actualRequest = ((RegisterDomainRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(yearlyPrice, actualRequest.getYearlyPrice()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void registerDomainExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String parent = "parent-995424086"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - client.registerDomainAsync(parent, registration, yearlyPrice).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void retrieveTransferParametersTest() throws Exception { - RetrieveTransferParametersResponse expectedResponse = - RetrieveTransferParametersResponse.newBuilder() - .setTransferParameters(TransferParameters.newBuilder().build()) - .build(); - mockDomains.addResponse(expectedResponse); - - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - - RetrieveTransferParametersResponse actualResponse = - client.retrieveTransferParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveTransferParametersRequest actualRequest = - ((RetrieveTransferParametersRequest) actualRequests.get(0)); - - Assert.assertEquals(location.toString(), actualRequest.getLocation()); - Assert.assertEquals(domainName, actualRequest.getDomainName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveTransferParametersExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - client.retrieveTransferParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveTransferParametersTest2() throws Exception { - RetrieveTransferParametersResponse expectedResponse = - RetrieveTransferParametersResponse.newBuilder() - .setTransferParameters(TransferParameters.newBuilder().build()) - .build(); - mockDomains.addResponse(expectedResponse); - - String location = "location1901043637"; - String domainName = "domainName-1244085905"; - - RetrieveTransferParametersResponse actualResponse = - client.retrieveTransferParameters(location, domainName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveTransferParametersRequest actualRequest = - ((RetrieveTransferParametersRequest) actualRequests.get(0)); - - Assert.assertEquals(location, actualRequest.getLocation()); - Assert.assertEquals(domainName, actualRequest.getDomainName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveTransferParametersExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String location = "location1901043637"; - String domainName = "domainName-1244085905"; - client.retrieveTransferParameters(location, domainName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void transferDomainTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("transferDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - - Registration actualResponse = - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TransferDomainRequest actualRequest = ((TransferDomainRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(yearlyPrice, actualRequest.getYearlyPrice()); - Assert.assertEquals(authorizationCode, actualRequest.getAuthorizationCode()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void transferDomainExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void transferDomainTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("transferDomainTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String parent = "parent-995424086"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - - Registration actualResponse = - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TransferDomainRequest actualRequest = ((TransferDomainRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(yearlyPrice, actualRequest.getYearlyPrice()); - Assert.assertEquals(authorizationCode, actualRequest.getAuthorizationCode()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void transferDomainExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String parent = "parent-995424086"; - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - client.transferDomainAsync(parent, registration, yearlyPrice, authorizationCode).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void listRegistrationsTest() throws Exception { - Registration responsesElement = Registration.newBuilder().build(); - ListRegistrationsResponse expectedResponse = - ListRegistrationsResponse.newBuilder() - .setNextPageToken("") - .addAllRegistrations(Arrays.asList(responsesElement)) - .build(); - mockDomains.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListRegistrationsPagedResponse pagedListResponse = client.listRegistrations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRegistrationsList().get(0), resources.get(0)); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListRegistrationsRequest actualRequest = ((ListRegistrationsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listRegistrationsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listRegistrations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listRegistrationsTest2() throws Exception { - Registration responsesElement = Registration.newBuilder().build(); - ListRegistrationsResponse expectedResponse = - ListRegistrationsResponse.newBuilder() - .setNextPageToken("") - .addAllRegistrations(Arrays.asList(responsesElement)) - .build(); - mockDomains.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListRegistrationsPagedResponse pagedListResponse = client.listRegistrations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRegistrationsList().get(0), resources.get(0)); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListRegistrationsRequest actualRequest = ((ListRegistrationsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listRegistrationsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String parent = "parent-995424086"; - client.listRegistrations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - mockDomains.addResponse(expectedResponse); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - Registration actualResponse = client.getRegistration(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetRegistrationRequest actualRequest = ((GetRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getRegistrationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.getRegistration(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRegistrationTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - mockDomains.addResponse(expectedResponse); - - String name = "name3373707"; - - Registration actualResponse = client.getRegistration(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetRegistrationRequest actualRequest = ((GetRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getRegistrationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String name = "name3373707"; - client.getRegistration(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - Registration registration = Registration.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = client.updateRegistrationAsync(registration, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateRegistrationRequest actualRequest = ((UpdateRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateRegistrationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - Registration registration = Registration.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateRegistrationAsync(registration, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureManagementSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureManagementSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureManagementSettingsRequest actualRequest = - ((ConfigureManagementSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration.toString(), actualRequest.getRegistration()); - Assert.assertEquals(managementSettings, actualRequest.getManagementSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureManagementSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureManagementSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureManagementSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String registration = "registration-1350309703"; - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureManagementSettingsRequest actualRequest = - ((ConfigureManagementSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(managementSettings, actualRequest.getManagementSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureManagementSettingsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String registration = "registration-1350309703"; - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureManagementSettingsAsync(registration, managementSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureDnsSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureDnsSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureDnsSettingsRequest actualRequest = - ((ConfigureDnsSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration.toString(), actualRequest.getRegistration()); - Assert.assertEquals(dnsSettings, actualRequest.getDnsSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureDnsSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureDnsSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureDnsSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String registration = "registration-1350309703"; - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureDnsSettingsRequest actualRequest = - ((ConfigureDnsSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(dnsSettings, actualRequest.getDnsSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureDnsSettingsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String registration = "registration-1350309703"; - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureContactSettingsTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureContactSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureContactSettingsRequest actualRequest = - ((ConfigureContactSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration.toString(), actualRequest.getRegistration()); - Assert.assertEquals(contactSettings, actualRequest.getContactSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureContactSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void configureContactSettingsTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("configureContactSettingsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String registration = "registration-1350309703"; - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Registration actualResponse = - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ConfigureContactSettingsRequest actualRequest = - ((ConfigureContactSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertEquals(contactSettings, actualRequest.getContactSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void configureContactSettingsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String registration = "registration-1350309703"; - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.configureContactSettingsAsync(registration, contactSettings, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void exportRegistrationTest() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("exportRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - Registration actualResponse = client.exportRegistrationAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ExportRegistrationRequest actualRequest = ((ExportRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void exportRegistrationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.exportRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void exportRegistrationTest2() throws Exception { - Registration expectedResponse = - Registration.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDomainName("domainName-1244085905") - .setCreateTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .addAllIssues(new ArrayList()) - .putAllLabels(new HashMap()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setPendingContactSettings(ContactSettings.newBuilder().build()) - .addAllSupportedPrivacy(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("exportRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String name = "name3373707"; - - Registration actualResponse = client.exportRegistrationAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ExportRegistrationRequest actualRequest = ((ExportRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void exportRegistrationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String name = "name3373707"; - client.exportRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteRegistrationTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - client.deleteRegistrationAsync(name).get(); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteRegistrationRequest actualRequest = ((DeleteRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteRegistrationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.deleteRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteRegistrationTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteRegistrationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDomains.addResponse(resultOperation); - - String name = "name3373707"; - - client.deleteRegistrationAsync(name).get(); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteRegistrationRequest actualRequest = ((DeleteRegistrationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteRegistrationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String name = "name3373707"; - client.deleteRegistrationAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void retrieveAuthorizationCodeTest() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockDomains.addResponse(expectedResponse); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - AuthorizationCode actualResponse = client.retrieveAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveAuthorizationCodeRequest actualRequest = - ((RetrieveAuthorizationCodeRequest) actualRequests.get(0)); - - Assert.assertEquals(registration.toString(), actualRequest.getRegistration()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveAuthorizationCodeExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.retrieveAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveAuthorizationCodeTest2() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockDomains.addResponse(expectedResponse); - - String registration = "registration-1350309703"; - - AuthorizationCode actualResponse = client.retrieveAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveAuthorizationCodeRequest actualRequest = - ((RetrieveAuthorizationCodeRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveAuthorizationCodeExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String registration = "registration-1350309703"; - client.retrieveAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resetAuthorizationCodeTest() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockDomains.addResponse(expectedResponse); - - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - - AuthorizationCode actualResponse = client.resetAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ResetAuthorizationCodeRequest actualRequest = - ((ResetAuthorizationCodeRequest) actualRequests.get(0)); - - Assert.assertEquals(registration.toString(), actualRequest.getRegistration()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void resetAuthorizationCodeExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - client.resetAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resetAuthorizationCodeTest2() throws Exception { - AuthorizationCode expectedResponse = - AuthorizationCode.newBuilder().setCode("code3059181").build(); - mockDomains.addResponse(expectedResponse); - - String registration = "registration-1350309703"; - - AuthorizationCode actualResponse = client.resetAuthorizationCode(registration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDomains.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ResetAuthorizationCodeRequest actualRequest = - ((ResetAuthorizationCodeRequest) actualRequests.get(0)); - - Assert.assertEquals(registration, actualRequest.getRegistration()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void resetAuthorizationCodeExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDomains.addException(exception); - - try { - String registration = "registration-1350309703"; - client.resetAuthorizationCode(registration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1beta1/MockDomains.java b/google-cloud-domains/src/test/java/com/google/cloud/domains/v1beta1/MockDomains.java deleted file mode 100644 index dc673d0e..00000000 --- a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1beta1/MockDomains.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1; - -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 MockDomains implements MockGrpcService { - private final MockDomainsImpl serviceImpl; - - public MockDomains() { - serviceImpl = new MockDomainsImpl(); - } - - @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-domains/src/test/java/com/google/cloud/domains/v1beta1/MockDomainsImpl.java b/google-cloud-domains/src/test/java/com/google/cloud/domains/v1beta1/MockDomainsImpl.java deleted file mode 100644 index 38dc7105..00000000 --- a/google-cloud-domains/src/test/java/com/google/cloud/domains/v1beta1/MockDomainsImpl.java +++ /dev/null @@ -1,380 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1; - -import com.google.api.core.BetaApi; -import com.google.cloud.domains.v1beta1.DomainsGrpc.DomainsImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockDomainsImpl extends DomainsImplBase { - private List requests; - private Queue responses; - - public MockDomainsImpl() { - 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 searchDomains( - SearchDomainsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof SearchDomainsResponse) { - requests.add(request); - responseObserver.onNext(((SearchDomainsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SearchDomains, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - SearchDomainsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void retrieveRegisterParameters( - RetrieveRegisterParametersRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof RetrieveRegisterParametersResponse) { - requests.add(request); - responseObserver.onNext(((RetrieveRegisterParametersResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RetrieveRegisterParameters, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - RetrieveRegisterParametersResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void registerDomain( - RegisterDomainRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RegisterDomain, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void retrieveTransferParameters( - RetrieveTransferParametersRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof RetrieveTransferParametersResponse) { - requests.add(request); - responseObserver.onNext(((RetrieveTransferParametersResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RetrieveTransferParameters, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - RetrieveTransferParametersResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void transferDomain( - TransferDomainRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TransferDomain, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listRegistrations( - ListRegistrationsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListRegistrationsResponse) { - requests.add(request); - responseObserver.onNext(((ListRegistrationsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListRegistrations, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListRegistrationsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getRegistration( - GetRegistrationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Registration) { - requests.add(request); - responseObserver.onNext(((Registration) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetRegistration, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Registration.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateRegistration( - UpdateRegistrationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateRegistration, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void configureManagementSettings( - ConfigureManagementSettingsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ConfigureManagementSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void configureDnsSettings( - ConfigureDnsSettingsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ConfigureDnsSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void configureContactSettings( - ConfigureContactSettingsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ConfigureContactSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void exportRegistration( - ExportRegistrationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ExportRegistration, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteRegistration( - DeleteRegistrationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteRegistration, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void retrieveAuthorizationCode( - RetrieveAuthorizationCodeRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AuthorizationCode) { - requests.add(request); - responseObserver.onNext(((AuthorizationCode) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RetrieveAuthorizationCode, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AuthorizationCode.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void resetAuthorizationCode( - ResetAuthorizationCodeRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AuthorizationCode) { - requests.add(request); - responseObserver.onNext(((AuthorizationCode) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ResetAuthorizationCode, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AuthorizationCode.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/grpc-google-cloud-domains-v1/pom.xml b/grpc-google-cloud-domains-v1/pom.xml deleted file mode 100644 index 0185e00a..00000000 --- a/grpc-google-cloud-domains-v1/pom.xml +++ /dev/null @@ -1,69 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-cloud-domains-v1 - 1.0.7-SNAPSHOT - grpc-google-cloud-domains-v1 - GRPC library for google-cloud-domains - - com.google.cloud - google-cloud-domains-parent - 1.0.7-SNAPSHOT - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - com.google.api.grpc - proto-google-cloud-domains-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-domains-v1/src/main/java/com/google/cloud/domains/v1/DomainsGrpc.java b/grpc-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DomainsGrpc.java deleted file mode 100644 index ac5b10f3..00000000 --- a/grpc-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DomainsGrpc.java +++ /dev/null @@ -1,2260 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.domains.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The Cloud Domains API enables management and configuration of domain names.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/domains/v1/domains.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DomainsGrpc { - - private DomainsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.domains.v1.Domains"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.SearchDomainsRequest, - com.google.cloud.domains.v1.SearchDomainsResponse> - getSearchDomainsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchDomains", - requestType = com.google.cloud.domains.v1.SearchDomainsRequest.class, - responseType = com.google.cloud.domains.v1.SearchDomainsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.SearchDomainsRequest, - com.google.cloud.domains.v1.SearchDomainsResponse> - getSearchDomainsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.SearchDomainsRequest, - com.google.cloud.domains.v1.SearchDomainsResponse> - getSearchDomainsMethod; - if ((getSearchDomainsMethod = DomainsGrpc.getSearchDomainsMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getSearchDomainsMethod = DomainsGrpc.getSearchDomainsMethod) == null) { - DomainsGrpc.getSearchDomainsMethod = - getSearchDomainsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchDomains")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.SearchDomainsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.SearchDomainsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("SearchDomains")) - .build(); - } - } - } - return getSearchDomainsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest, - com.google.cloud.domains.v1.RetrieveRegisterParametersResponse> - getRetrieveRegisterParametersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RetrieveRegisterParameters", - requestType = com.google.cloud.domains.v1.RetrieveRegisterParametersRequest.class, - responseType = com.google.cloud.domains.v1.RetrieveRegisterParametersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest, - com.google.cloud.domains.v1.RetrieveRegisterParametersResponse> - getRetrieveRegisterParametersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest, - com.google.cloud.domains.v1.RetrieveRegisterParametersResponse> - getRetrieveRegisterParametersMethod; - if ((getRetrieveRegisterParametersMethod = DomainsGrpc.getRetrieveRegisterParametersMethod) - == null) { - synchronized (DomainsGrpc.class) { - if ((getRetrieveRegisterParametersMethod = DomainsGrpc.getRetrieveRegisterParametersMethod) - == null) { - DomainsGrpc.getRetrieveRegisterParametersMethod = - getRetrieveRegisterParametersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RetrieveRegisterParameters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.RetrieveRegisterParametersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("RetrieveRegisterParameters")) - .build(); - } - } - } - return getRetrieveRegisterParametersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.RegisterDomainRequest, com.google.longrunning.Operation> - getRegisterDomainMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RegisterDomain", - requestType = com.google.cloud.domains.v1.RegisterDomainRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.RegisterDomainRequest, com.google.longrunning.Operation> - getRegisterDomainMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.RegisterDomainRequest, com.google.longrunning.Operation> - getRegisterDomainMethod; - if ((getRegisterDomainMethod = DomainsGrpc.getRegisterDomainMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getRegisterDomainMethod = DomainsGrpc.getRegisterDomainMethod) == null) { - DomainsGrpc.getRegisterDomainMethod = - getRegisterDomainMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegisterDomain")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.RegisterDomainRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("RegisterDomain")) - .build(); - } - } - } - return getRegisterDomainMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.RetrieveTransferParametersRequest, - com.google.cloud.domains.v1.RetrieveTransferParametersResponse> - getRetrieveTransferParametersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RetrieveTransferParameters", - requestType = com.google.cloud.domains.v1.RetrieveTransferParametersRequest.class, - responseType = com.google.cloud.domains.v1.RetrieveTransferParametersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.RetrieveTransferParametersRequest, - com.google.cloud.domains.v1.RetrieveTransferParametersResponse> - getRetrieveTransferParametersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.RetrieveTransferParametersRequest, - com.google.cloud.domains.v1.RetrieveTransferParametersResponse> - getRetrieveTransferParametersMethod; - if ((getRetrieveTransferParametersMethod = DomainsGrpc.getRetrieveTransferParametersMethod) - == null) { - synchronized (DomainsGrpc.class) { - if ((getRetrieveTransferParametersMethod = DomainsGrpc.getRetrieveTransferParametersMethod) - == null) { - DomainsGrpc.getRetrieveTransferParametersMethod = - getRetrieveTransferParametersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RetrieveTransferParameters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.RetrieveTransferParametersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.RetrieveTransferParametersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("RetrieveTransferParameters")) - .build(); - } - } - } - return getRetrieveTransferParametersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.TransferDomainRequest, com.google.longrunning.Operation> - getTransferDomainMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TransferDomain", - requestType = com.google.cloud.domains.v1.TransferDomainRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.TransferDomainRequest, com.google.longrunning.Operation> - getTransferDomainMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.TransferDomainRequest, com.google.longrunning.Operation> - getTransferDomainMethod; - if ((getTransferDomainMethod = DomainsGrpc.getTransferDomainMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getTransferDomainMethod = DomainsGrpc.getTransferDomainMethod) == null) { - DomainsGrpc.getTransferDomainMethod = - getTransferDomainMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TransferDomain")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.TransferDomainRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("TransferDomain")) - .build(); - } - } - } - return getTransferDomainMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ListRegistrationsRequest, - com.google.cloud.domains.v1.ListRegistrationsResponse> - getListRegistrationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRegistrations", - requestType = com.google.cloud.domains.v1.ListRegistrationsRequest.class, - responseType = com.google.cloud.domains.v1.ListRegistrationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ListRegistrationsRequest, - com.google.cloud.domains.v1.ListRegistrationsResponse> - getListRegistrationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ListRegistrationsRequest, - com.google.cloud.domains.v1.ListRegistrationsResponse> - getListRegistrationsMethod; - if ((getListRegistrationsMethod = DomainsGrpc.getListRegistrationsMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getListRegistrationsMethod = DomainsGrpc.getListRegistrationsMethod) == null) { - DomainsGrpc.getListRegistrationsMethod = - getListRegistrationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRegistrations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.ListRegistrationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.ListRegistrationsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("ListRegistrations")) - .build(); - } - } - } - return getListRegistrationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.GetRegistrationRequest, - com.google.cloud.domains.v1.Registration> - getGetRegistrationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRegistration", - requestType = com.google.cloud.domains.v1.GetRegistrationRequest.class, - responseType = com.google.cloud.domains.v1.Registration.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.GetRegistrationRequest, - com.google.cloud.domains.v1.Registration> - getGetRegistrationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.GetRegistrationRequest, - com.google.cloud.domains.v1.Registration> - getGetRegistrationMethod; - if ((getGetRegistrationMethod = DomainsGrpc.getGetRegistrationMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getGetRegistrationMethod = DomainsGrpc.getGetRegistrationMethod) == null) { - DomainsGrpc.getGetRegistrationMethod = - getGetRegistrationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRegistration")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.GetRegistrationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.Registration.getDefaultInstance())) - .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("GetRegistration")) - .build(); - } - } - } - return getGetRegistrationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.UpdateRegistrationRequest, com.google.longrunning.Operation> - getUpdateRegistrationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateRegistration", - requestType = com.google.cloud.domains.v1.UpdateRegistrationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.UpdateRegistrationRequest, com.google.longrunning.Operation> - getUpdateRegistrationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.UpdateRegistrationRequest, com.google.longrunning.Operation> - getUpdateRegistrationMethod; - if ((getUpdateRegistrationMethod = DomainsGrpc.getUpdateRegistrationMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getUpdateRegistrationMethod = DomainsGrpc.getUpdateRegistrationMethod) == null) { - DomainsGrpc.getUpdateRegistrationMethod = - getUpdateRegistrationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRegistration")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.UpdateRegistrationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("UpdateRegistration")) - .build(); - } - } - } - return getUpdateRegistrationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest, - com.google.longrunning.Operation> - getConfigureManagementSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConfigureManagementSettings", - requestType = com.google.cloud.domains.v1.ConfigureManagementSettingsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest, - com.google.longrunning.Operation> - getConfigureManagementSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest, - com.google.longrunning.Operation> - getConfigureManagementSettingsMethod; - if ((getConfigureManagementSettingsMethod = DomainsGrpc.getConfigureManagementSettingsMethod) - == null) { - synchronized (DomainsGrpc.class) { - if ((getConfigureManagementSettingsMethod = - DomainsGrpc.getConfigureManagementSettingsMethod) - == null) { - DomainsGrpc.getConfigureManagementSettingsMethod = - getConfigureManagementSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ConfigureManagementSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("ConfigureManagementSettings")) - .build(); - } - } - } - return getConfigureManagementSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ConfigureDnsSettingsRequest, com.google.longrunning.Operation> - getConfigureDnsSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConfigureDnsSettings", - requestType = com.google.cloud.domains.v1.ConfigureDnsSettingsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ConfigureDnsSettingsRequest, com.google.longrunning.Operation> - getConfigureDnsSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ConfigureDnsSettingsRequest, - com.google.longrunning.Operation> - getConfigureDnsSettingsMethod; - if ((getConfigureDnsSettingsMethod = DomainsGrpc.getConfigureDnsSettingsMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getConfigureDnsSettingsMethod = DomainsGrpc.getConfigureDnsSettingsMethod) == null) { - DomainsGrpc.getConfigureDnsSettingsMethod = - getConfigureDnsSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ConfigureDnsSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.ConfigureDnsSettingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("ConfigureDnsSettings")) - .build(); - } - } - } - return getConfigureDnsSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ConfigureContactSettingsRequest, - com.google.longrunning.Operation> - getConfigureContactSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConfigureContactSettings", - requestType = com.google.cloud.domains.v1.ConfigureContactSettingsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ConfigureContactSettingsRequest, - com.google.longrunning.Operation> - getConfigureContactSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ConfigureContactSettingsRequest, - com.google.longrunning.Operation> - getConfigureContactSettingsMethod; - if ((getConfigureContactSettingsMethod = DomainsGrpc.getConfigureContactSettingsMethod) - == null) { - synchronized (DomainsGrpc.class) { - if ((getConfigureContactSettingsMethod = DomainsGrpc.getConfigureContactSettingsMethod) - == null) { - DomainsGrpc.getConfigureContactSettingsMethod = - getConfigureContactSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ConfigureContactSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.ConfigureContactSettingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("ConfigureContactSettings")) - .build(); - } - } - } - return getConfigureContactSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ExportRegistrationRequest, com.google.longrunning.Operation> - getExportRegistrationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportRegistration", - requestType = com.google.cloud.domains.v1.ExportRegistrationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ExportRegistrationRequest, com.google.longrunning.Operation> - getExportRegistrationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ExportRegistrationRequest, com.google.longrunning.Operation> - getExportRegistrationMethod; - if ((getExportRegistrationMethod = DomainsGrpc.getExportRegistrationMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getExportRegistrationMethod = DomainsGrpc.getExportRegistrationMethod) == null) { - DomainsGrpc.getExportRegistrationMethod = - getExportRegistrationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportRegistration")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.ExportRegistrationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("ExportRegistration")) - .build(); - } - } - } - return getExportRegistrationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.DeleteRegistrationRequest, com.google.longrunning.Operation> - getDeleteRegistrationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRegistration", - requestType = com.google.cloud.domains.v1.DeleteRegistrationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.DeleteRegistrationRequest, com.google.longrunning.Operation> - getDeleteRegistrationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.DeleteRegistrationRequest, com.google.longrunning.Operation> - getDeleteRegistrationMethod; - if ((getDeleteRegistrationMethod = DomainsGrpc.getDeleteRegistrationMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getDeleteRegistrationMethod = DomainsGrpc.getDeleteRegistrationMethod) == null) { - DomainsGrpc.getDeleteRegistrationMethod = - getDeleteRegistrationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRegistration")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.DeleteRegistrationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("DeleteRegistration")) - .build(); - } - } - } - return getDeleteRegistrationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest, - com.google.cloud.domains.v1.AuthorizationCode> - getRetrieveAuthorizationCodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RetrieveAuthorizationCode", - requestType = com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest.class, - responseType = com.google.cloud.domains.v1.AuthorizationCode.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest, - com.google.cloud.domains.v1.AuthorizationCode> - getRetrieveAuthorizationCodeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest, - com.google.cloud.domains.v1.AuthorizationCode> - getRetrieveAuthorizationCodeMethod; - if ((getRetrieveAuthorizationCodeMethod = DomainsGrpc.getRetrieveAuthorizationCodeMethod) - == null) { - synchronized (DomainsGrpc.class) { - if ((getRetrieveAuthorizationCodeMethod = DomainsGrpc.getRetrieveAuthorizationCodeMethod) - == null) { - DomainsGrpc.getRetrieveAuthorizationCodeMethod = - getRetrieveAuthorizationCodeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RetrieveAuthorizationCode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.AuthorizationCode.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("RetrieveAuthorizationCode")) - .build(); - } - } - } - return getRetrieveAuthorizationCodeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ResetAuthorizationCodeRequest, - com.google.cloud.domains.v1.AuthorizationCode> - getResetAuthorizationCodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResetAuthorizationCode", - requestType = com.google.cloud.domains.v1.ResetAuthorizationCodeRequest.class, - responseType = com.google.cloud.domains.v1.AuthorizationCode.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ResetAuthorizationCodeRequest, - com.google.cloud.domains.v1.AuthorizationCode> - getResetAuthorizationCodeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1.ResetAuthorizationCodeRequest, - com.google.cloud.domains.v1.AuthorizationCode> - getResetAuthorizationCodeMethod; - if ((getResetAuthorizationCodeMethod = DomainsGrpc.getResetAuthorizationCodeMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getResetAuthorizationCodeMethod = DomainsGrpc.getResetAuthorizationCodeMethod) - == null) { - DomainsGrpc.getResetAuthorizationCodeMethod = - getResetAuthorizationCodeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ResetAuthorizationCode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.ResetAuthorizationCodeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1.AuthorizationCode.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("ResetAuthorizationCode")) - .build(); - } - } - } - return getResetAuthorizationCodeMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DomainsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DomainsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsStub(channel, callOptions); - } - }; - return DomainsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DomainsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DomainsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsBlockingStub(channel, callOptions); - } - }; - return DomainsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DomainsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DomainsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsFutureStub(channel, callOptions); - } - }; - return DomainsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The Cloud Domains API enables management and configuration of domain names.
-   * 
- */ - public abstract static class DomainsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Searches for available domain names similar to the provided query.
-     * Availability results from this method are approximate; call
-     * `RetrieveRegisterParameters` on a domain before registering to confirm
-     * availability.
-     * 
- */ - public void searchDomains( - com.google.cloud.domains.v1.SearchDomainsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchDomainsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets parameters needed to register a new domain name, including price and
-     * up-to-date availability. Use the returned values to call `RegisterDomain`.
-     * 
- */ - public void retrieveRegisterParameters( - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRetrieveRegisterParametersMethod(), responseObserver); - } - - /** - * - * - *
-     * Registers a new domain name and creates a corresponding `Registration`
-     * resource.
-     * Call `RetrieveRegisterParameters` first to check availability of the domain
-     * name and determine parameters like price that are needed to build a call to
-     * this method.
-     * A successful call creates a `Registration` resource in state
-     * `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
-     * minutes, indicating that the domain was successfully registered. If the
-     * resource ends up in state `REGISTRATION_FAILED`, it indicates that the
-     * domain was not registered successfully, and you can safely delete the
-     * resource and retry registration.
-     * 
- */ - public void registerDomain( - com.google.cloud.domains.v1.RegisterDomainRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRegisterDomainMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets parameters needed to transfer a domain name from another registrar to
-     * Cloud Domains. For domains managed by Google Domains, transferring to Cloud
-     * Domains is not supported.
-     * Use the returned values to call `TransferDomain`.
-     * 
- */ - public void retrieveTransferParameters( - com.google.cloud.domains.v1.RetrieveTransferParametersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRetrieveTransferParametersMethod(), responseObserver); - } - - /** - * - * - *
-     * Transfers a domain name from another registrar to Cloud Domains.  For
-     * domains managed by Google Domains, transferring to Cloud Domains is not
-     * supported.
-     * Before calling this method, go to the domain's current registrar to unlock
-     * the domain for transfer and retrieve the domain's transfer authorization
-     * code. Then call `RetrieveTransferParameters` to confirm that the domain is
-     * unlocked and to get values needed to build a call to this method.
-     * A successful call creates a `Registration` resource in state
-     * `TRANSFER_PENDING`. It can take several days to complete the transfer
-     * process. The registrant can often speed up this process by approving the
-     * transfer through the current registrar, either by clicking a link in an
-     * email from the registrar or by visiting the registrar's website.
-     * A few minutes after transfer approval, the resource transitions to state
-     * `ACTIVE`, indicating that the transfer was successful. If the transfer is
-     * rejected or the request expires without being approved, the resource can
-     * end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete
-     * the resource and retry the transfer.
-     * 
- */ - public void transferDomain( - com.google.cloud.domains.v1.TransferDomainRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTransferDomainMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the `Registration` resources in a project.
-     * 
- */ - public void listRegistrations( - com.google.cloud.domains.v1.ListRegistrationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListRegistrationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the details of a `Registration` resource.
-     * 
- */ - public void getRegistration( - com.google.cloud.domains.v1.GetRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetRegistrationMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates select fields of a `Registration` resource, notably `labels`. To
-     * update other fields, use the appropriate custom update method:
-     * * To update management settings, see `ConfigureManagementSettings`
-     * * To update DNS configuration, see `ConfigureDnsSettings`
-     * * To update contact information, see `ConfigureContactSettings`
-     * 
- */ - public void updateRegistration( - com.google.cloud.domains.v1.UpdateRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateRegistrationMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s management settings.
-     * 
- */ - public void configureManagementSettings( - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getConfigureManagementSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s DNS settings.
-     * 
- */ - public void configureDnsSettings( - com.google.cloud.domains.v1.ConfigureDnsSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getConfigureDnsSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s contact settings. Some changes require
-     * confirmation by the domain's registrant contact .
-     * 
- */ - public void configureContactSettings( - com.google.cloud.domains.v1.ConfigureContactSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getConfigureContactSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Exports a `Registration` resource, such that it is no longer managed by
-     * Cloud Domains.
-     * When an active domain is successfully exported, you can continue to use the
-     * domain in [Google Domains](https://domains.google/) until it expires. The
-     * calling user becomes the domain's sole owner in Google Domains, and
-     * permissions for the domain are subsequently managed there. The domain does
-     * not renew automatically unless the new owner sets up billing in Google
-     * Domains.
-     * 
- */ - public void exportRegistration( - com.google.cloud.domains.v1.ExportRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getExportRegistrationMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a `Registration` resource.
-     * This method works on any `Registration` resource using [Subscription or
-     * Commitment billing](/domains/pricing#billing-models), provided that the
-     * resource was created at least 1 day in the past.
-     * For `Registration` resources using
-     * [Monthly billing](/domains/pricing#billing-models), this method works if:
-     * * `state` is `EXPORTED` with `expire_time` in the past
-     * * `state` is `REGISTRATION_FAILED`
-     * * `state` is `TRANSFER_FAILED`
-     * When an active registration is successfully deleted, you can continue to
-     * use the domain in [Google Domains](https://domains.google/) until it
-     * expires. The calling user becomes the domain's sole owner in Google
-     * Domains, and permissions for the domain are subsequently managed there. The
-     * domain does not renew automatically unless the new owner sets up billing in
-     * Google Domains.
-     * 
- */ - public void deleteRegistration( - com.google.cloud.domains.v1.DeleteRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteRegistrationMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the authorization code of the `Registration` for the purpose of
-     * transferring the domain to another registrar.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public void retrieveAuthorizationCode( - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRetrieveAuthorizationCodeMethod(), responseObserver); - } - - /** - * - * - *
-     * Resets the authorization code of the `Registration` to a new random string.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public void resetAuthorizationCode( - com.google.cloud.domains.v1.ResetAuthorizationCodeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResetAuthorizationCodeMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getSearchDomainsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1.SearchDomainsRequest, - com.google.cloud.domains.v1.SearchDomainsResponse>( - this, METHODID_SEARCH_DOMAINS))) - .addMethod( - getRetrieveRegisterParametersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest, - com.google.cloud.domains.v1.RetrieveRegisterParametersResponse>( - this, METHODID_RETRIEVE_REGISTER_PARAMETERS))) - .addMethod( - getRegisterDomainMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1.RegisterDomainRequest, - com.google.longrunning.Operation>(this, METHODID_REGISTER_DOMAIN))) - .addMethod( - getRetrieveTransferParametersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1.RetrieveTransferParametersRequest, - com.google.cloud.domains.v1.RetrieveTransferParametersResponse>( - this, METHODID_RETRIEVE_TRANSFER_PARAMETERS))) - .addMethod( - getTransferDomainMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1.TransferDomainRequest, - com.google.longrunning.Operation>(this, METHODID_TRANSFER_DOMAIN))) - .addMethod( - getListRegistrationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1.ListRegistrationsRequest, - com.google.cloud.domains.v1.ListRegistrationsResponse>( - this, METHODID_LIST_REGISTRATIONS))) - .addMethod( - getGetRegistrationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1.GetRegistrationRequest, - com.google.cloud.domains.v1.Registration>(this, METHODID_GET_REGISTRATION))) - .addMethod( - getUpdateRegistrationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1.UpdateRegistrationRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_REGISTRATION))) - .addMethod( - getConfigureManagementSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest, - com.google.longrunning.Operation>( - this, METHODID_CONFIGURE_MANAGEMENT_SETTINGS))) - .addMethod( - getConfigureDnsSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1.ConfigureDnsSettingsRequest, - com.google.longrunning.Operation>(this, METHODID_CONFIGURE_DNS_SETTINGS))) - .addMethod( - getConfigureContactSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1.ConfigureContactSettingsRequest, - com.google.longrunning.Operation>(this, METHODID_CONFIGURE_CONTACT_SETTINGS))) - .addMethod( - getExportRegistrationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1.ExportRegistrationRequest, - com.google.longrunning.Operation>(this, METHODID_EXPORT_REGISTRATION))) - .addMethod( - getDeleteRegistrationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1.DeleteRegistrationRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_REGISTRATION))) - .addMethod( - getRetrieveAuthorizationCodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest, - com.google.cloud.domains.v1.AuthorizationCode>( - this, METHODID_RETRIEVE_AUTHORIZATION_CODE))) - .addMethod( - getResetAuthorizationCodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1.ResetAuthorizationCodeRequest, - com.google.cloud.domains.v1.AuthorizationCode>( - this, METHODID_RESET_AUTHORIZATION_CODE))) - .build(); - } - } - - /** - * - * - *
-   * The Cloud Domains API enables management and configuration of domain names.
-   * 
- */ - public static final class DomainsStub extends io.grpc.stub.AbstractAsyncStub { - private DomainsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DomainsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsStub(channel, callOptions); - } - - /** - * - * - *
-     * Searches for available domain names similar to the provided query.
-     * Availability results from this method are approximate; call
-     * `RetrieveRegisterParameters` on a domain before registering to confirm
-     * availability.
-     * 
- */ - public void searchDomains( - com.google.cloud.domains.v1.SearchDomainsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchDomainsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets parameters needed to register a new domain name, including price and
-     * up-to-date availability. Use the returned values to call `RegisterDomain`.
-     * 
- */ - public void retrieveRegisterParameters( - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRetrieveRegisterParametersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Registers a new domain name and creates a corresponding `Registration`
-     * resource.
-     * Call `RetrieveRegisterParameters` first to check availability of the domain
-     * name and determine parameters like price that are needed to build a call to
-     * this method.
-     * A successful call creates a `Registration` resource in state
-     * `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
-     * minutes, indicating that the domain was successfully registered. If the
-     * resource ends up in state `REGISTRATION_FAILED`, it indicates that the
-     * domain was not registered successfully, and you can safely delete the
-     * resource and retry registration.
-     * 
- */ - public void registerDomain( - com.google.cloud.domains.v1.RegisterDomainRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRegisterDomainMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets parameters needed to transfer a domain name from another registrar to
-     * Cloud Domains. For domains managed by Google Domains, transferring to Cloud
-     * Domains is not supported.
-     * Use the returned values to call `TransferDomain`.
-     * 
- */ - public void retrieveTransferParameters( - com.google.cloud.domains.v1.RetrieveTransferParametersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRetrieveTransferParametersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Transfers a domain name from another registrar to Cloud Domains.  For
-     * domains managed by Google Domains, transferring to Cloud Domains is not
-     * supported.
-     * Before calling this method, go to the domain's current registrar to unlock
-     * the domain for transfer and retrieve the domain's transfer authorization
-     * code. Then call `RetrieveTransferParameters` to confirm that the domain is
-     * unlocked and to get values needed to build a call to this method.
-     * A successful call creates a `Registration` resource in state
-     * `TRANSFER_PENDING`. It can take several days to complete the transfer
-     * process. The registrant can often speed up this process by approving the
-     * transfer through the current registrar, either by clicking a link in an
-     * email from the registrar or by visiting the registrar's website.
-     * A few minutes after transfer approval, the resource transitions to state
-     * `ACTIVE`, indicating that the transfer was successful. If the transfer is
-     * rejected or the request expires without being approved, the resource can
-     * end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete
-     * the resource and retry the transfer.
-     * 
- */ - public void transferDomain( - com.google.cloud.domains.v1.TransferDomainRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTransferDomainMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the `Registration` resources in a project.
-     * 
- */ - public void listRegistrations( - com.google.cloud.domains.v1.ListRegistrationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRegistrationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the details of a `Registration` resource.
-     * 
- */ - public void getRegistration( - com.google.cloud.domains.v1.GetRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRegistrationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates select fields of a `Registration` resource, notably `labels`. To
-     * update other fields, use the appropriate custom update method:
-     * * To update management settings, see `ConfigureManagementSettings`
-     * * To update DNS configuration, see `ConfigureDnsSettings`
-     * * To update contact information, see `ConfigureContactSettings`
-     * 
- */ - public void updateRegistration( - com.google.cloud.domains.v1.UpdateRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateRegistrationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s management settings.
-     * 
- */ - public void configureManagementSettings( - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getConfigureManagementSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s DNS settings.
-     * 
- */ - public void configureDnsSettings( - com.google.cloud.domains.v1.ConfigureDnsSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getConfigureDnsSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s contact settings. Some changes require
-     * confirmation by the domain's registrant contact .
-     * 
- */ - public void configureContactSettings( - com.google.cloud.domains.v1.ConfigureContactSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getConfigureContactSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Exports a `Registration` resource, such that it is no longer managed by
-     * Cloud Domains.
-     * When an active domain is successfully exported, you can continue to use the
-     * domain in [Google Domains](https://domains.google/) until it expires. The
-     * calling user becomes the domain's sole owner in Google Domains, and
-     * permissions for the domain are subsequently managed there. The domain does
-     * not renew automatically unless the new owner sets up billing in Google
-     * Domains.
-     * 
- */ - public void exportRegistration( - com.google.cloud.domains.v1.ExportRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportRegistrationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a `Registration` resource.
-     * This method works on any `Registration` resource using [Subscription or
-     * Commitment billing](/domains/pricing#billing-models), provided that the
-     * resource was created at least 1 day in the past.
-     * For `Registration` resources using
-     * [Monthly billing](/domains/pricing#billing-models), this method works if:
-     * * `state` is `EXPORTED` with `expire_time` in the past
-     * * `state` is `REGISTRATION_FAILED`
-     * * `state` is `TRANSFER_FAILED`
-     * When an active registration is successfully deleted, you can continue to
-     * use the domain in [Google Domains](https://domains.google/) until it
-     * expires. The calling user becomes the domain's sole owner in Google
-     * Domains, and permissions for the domain are subsequently managed there. The
-     * domain does not renew automatically unless the new owner sets up billing in
-     * Google Domains.
-     * 
- */ - public void deleteRegistration( - com.google.cloud.domains.v1.DeleteRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRegistrationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the authorization code of the `Registration` for the purpose of
-     * transferring the domain to another registrar.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public void retrieveAuthorizationCode( - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRetrieveAuthorizationCodeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Resets the authorization code of the `Registration` to a new random string.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public void resetAuthorizationCode( - com.google.cloud.domains.v1.ResetAuthorizationCodeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResetAuthorizationCodeMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The Cloud Domains API enables management and configuration of domain names.
-   * 
- */ - public static final class DomainsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DomainsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DomainsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Searches for available domain names similar to the provided query.
-     * Availability results from this method are approximate; call
-     * `RetrieveRegisterParameters` on a domain before registering to confirm
-     * availability.
-     * 
- */ - public com.google.cloud.domains.v1.SearchDomainsResponse searchDomains( - com.google.cloud.domains.v1.SearchDomainsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchDomainsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets parameters needed to register a new domain name, including price and
-     * up-to-date availability. Use the returned values to call `RegisterDomain`.
-     * 
- */ - public com.google.cloud.domains.v1.RetrieveRegisterParametersResponse - retrieveRegisterParameters( - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRetrieveRegisterParametersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Registers a new domain name and creates a corresponding `Registration`
-     * resource.
-     * Call `RetrieveRegisterParameters` first to check availability of the domain
-     * name and determine parameters like price that are needed to build a call to
-     * this method.
-     * A successful call creates a `Registration` resource in state
-     * `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
-     * minutes, indicating that the domain was successfully registered. If the
-     * resource ends up in state `REGISTRATION_FAILED`, it indicates that the
-     * domain was not registered successfully, and you can safely delete the
-     * resource and retry registration.
-     * 
- */ - public com.google.longrunning.Operation registerDomain( - com.google.cloud.domains.v1.RegisterDomainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRegisterDomainMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets parameters needed to transfer a domain name from another registrar to
-     * Cloud Domains. For domains managed by Google Domains, transferring to Cloud
-     * Domains is not supported.
-     * Use the returned values to call `TransferDomain`.
-     * 
- */ - public com.google.cloud.domains.v1.RetrieveTransferParametersResponse - retrieveTransferParameters( - com.google.cloud.domains.v1.RetrieveTransferParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRetrieveTransferParametersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Transfers a domain name from another registrar to Cloud Domains.  For
-     * domains managed by Google Domains, transferring to Cloud Domains is not
-     * supported.
-     * Before calling this method, go to the domain's current registrar to unlock
-     * the domain for transfer and retrieve the domain's transfer authorization
-     * code. Then call `RetrieveTransferParameters` to confirm that the domain is
-     * unlocked and to get values needed to build a call to this method.
-     * A successful call creates a `Registration` resource in state
-     * `TRANSFER_PENDING`. It can take several days to complete the transfer
-     * process. The registrant can often speed up this process by approving the
-     * transfer through the current registrar, either by clicking a link in an
-     * email from the registrar or by visiting the registrar's website.
-     * A few minutes after transfer approval, the resource transitions to state
-     * `ACTIVE`, indicating that the transfer was successful. If the transfer is
-     * rejected or the request expires without being approved, the resource can
-     * end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete
-     * the resource and retry the transfer.
-     * 
- */ - public com.google.longrunning.Operation transferDomain( - com.google.cloud.domains.v1.TransferDomainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTransferDomainMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the `Registration` resources in a project.
-     * 
- */ - public com.google.cloud.domains.v1.ListRegistrationsResponse listRegistrations( - com.google.cloud.domains.v1.ListRegistrationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRegistrationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the details of a `Registration` resource.
-     * 
- */ - public com.google.cloud.domains.v1.Registration getRegistration( - com.google.cloud.domains.v1.GetRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRegistrationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates select fields of a `Registration` resource, notably `labels`. To
-     * update other fields, use the appropriate custom update method:
-     * * To update management settings, see `ConfigureManagementSettings`
-     * * To update DNS configuration, see `ConfigureDnsSettings`
-     * * To update contact information, see `ConfigureContactSettings`
-     * 
- */ - public com.google.longrunning.Operation updateRegistration( - com.google.cloud.domains.v1.UpdateRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRegistrationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s management settings.
-     * 
- */ - public com.google.longrunning.Operation configureManagementSettings( - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getConfigureManagementSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s DNS settings.
-     * 
- */ - public com.google.longrunning.Operation configureDnsSettings( - com.google.cloud.domains.v1.ConfigureDnsSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getConfigureDnsSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s contact settings. Some changes require
-     * confirmation by the domain's registrant contact .
-     * 
- */ - public com.google.longrunning.Operation configureContactSettings( - com.google.cloud.domains.v1.ConfigureContactSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getConfigureContactSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Exports a `Registration` resource, such that it is no longer managed by
-     * Cloud Domains.
-     * When an active domain is successfully exported, you can continue to use the
-     * domain in [Google Domains](https://domains.google/) until it expires. The
-     * calling user becomes the domain's sole owner in Google Domains, and
-     * permissions for the domain are subsequently managed there. The domain does
-     * not renew automatically unless the new owner sets up billing in Google
-     * Domains.
-     * 
- */ - public com.google.longrunning.Operation exportRegistration( - com.google.cloud.domains.v1.ExportRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportRegistrationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a `Registration` resource.
-     * This method works on any `Registration` resource using [Subscription or
-     * Commitment billing](/domains/pricing#billing-models), provided that the
-     * resource was created at least 1 day in the past.
-     * For `Registration` resources using
-     * [Monthly billing](/domains/pricing#billing-models), this method works if:
-     * * `state` is `EXPORTED` with `expire_time` in the past
-     * * `state` is `REGISTRATION_FAILED`
-     * * `state` is `TRANSFER_FAILED`
-     * When an active registration is successfully deleted, you can continue to
-     * use the domain in [Google Domains](https://domains.google/) until it
-     * expires. The calling user becomes the domain's sole owner in Google
-     * Domains, and permissions for the domain are subsequently managed there. The
-     * domain does not renew automatically unless the new owner sets up billing in
-     * Google Domains.
-     * 
- */ - public com.google.longrunning.Operation deleteRegistration( - com.google.cloud.domains.v1.DeleteRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRegistrationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the authorization code of the `Registration` for the purpose of
-     * transferring the domain to another registrar.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public com.google.cloud.domains.v1.AuthorizationCode retrieveAuthorizationCode( - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRetrieveAuthorizationCodeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Resets the authorization code of the `Registration` to a new random string.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public com.google.cloud.domains.v1.AuthorizationCode resetAuthorizationCode( - com.google.cloud.domains.v1.ResetAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResetAuthorizationCodeMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The Cloud Domains API enables management and configuration of domain names.
-   * 
- */ - public static final class DomainsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DomainsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DomainsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Searches for available domain names similar to the provided query.
-     * Availability results from this method are approximate; call
-     * `RetrieveRegisterParameters` on a domain before registering to confirm
-     * availability.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1.SearchDomainsResponse> - searchDomains(com.google.cloud.domains.v1.SearchDomainsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchDomainsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets parameters needed to register a new domain name, including price and
-     * up-to-date availability. Use the returned values to call `RegisterDomain`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1.RetrieveRegisterParametersResponse> - retrieveRegisterParameters( - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRetrieveRegisterParametersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Registers a new domain name and creates a corresponding `Registration`
-     * resource.
-     * Call `RetrieveRegisterParameters` first to check availability of the domain
-     * name and determine parameters like price that are needed to build a call to
-     * this method.
-     * A successful call creates a `Registration` resource in state
-     * `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
-     * minutes, indicating that the domain was successfully registered. If the
-     * resource ends up in state `REGISTRATION_FAILED`, it indicates that the
-     * domain was not registered successfully, and you can safely delete the
-     * resource and retry registration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - registerDomain(com.google.cloud.domains.v1.RegisterDomainRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRegisterDomainMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets parameters needed to transfer a domain name from another registrar to
-     * Cloud Domains. For domains managed by Google Domains, transferring to Cloud
-     * Domains is not supported.
-     * Use the returned values to call `TransferDomain`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1.RetrieveTransferParametersResponse> - retrieveTransferParameters( - com.google.cloud.domains.v1.RetrieveTransferParametersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRetrieveTransferParametersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Transfers a domain name from another registrar to Cloud Domains.  For
-     * domains managed by Google Domains, transferring to Cloud Domains is not
-     * supported.
-     * Before calling this method, go to the domain's current registrar to unlock
-     * the domain for transfer and retrieve the domain's transfer authorization
-     * code. Then call `RetrieveTransferParameters` to confirm that the domain is
-     * unlocked and to get values needed to build a call to this method.
-     * A successful call creates a `Registration` resource in state
-     * `TRANSFER_PENDING`. It can take several days to complete the transfer
-     * process. The registrant can often speed up this process by approving the
-     * transfer through the current registrar, either by clicking a link in an
-     * email from the registrar or by visiting the registrar's website.
-     * A few minutes after transfer approval, the resource transitions to state
-     * `ACTIVE`, indicating that the transfer was successful. If the transfer is
-     * rejected or the request expires without being approved, the resource can
-     * end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete
-     * the resource and retry the transfer.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - transferDomain(com.google.cloud.domains.v1.TransferDomainRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTransferDomainMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the `Registration` resources in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1.ListRegistrationsResponse> - listRegistrations(com.google.cloud.domains.v1.ListRegistrationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRegistrationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the details of a `Registration` resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1.Registration> - getRegistration(com.google.cloud.domains.v1.GetRegistrationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRegistrationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates select fields of a `Registration` resource, notably `labels`. To
-     * update other fields, use the appropriate custom update method:
-     * * To update management settings, see `ConfigureManagementSettings`
-     * * To update DNS configuration, see `ConfigureDnsSettings`
-     * * To update contact information, see `ConfigureContactSettings`
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateRegistration(com.google.cloud.domains.v1.UpdateRegistrationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateRegistrationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s management settings.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - configureManagementSettings( - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getConfigureManagementSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s DNS settings.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - configureDnsSettings(com.google.cloud.domains.v1.ConfigureDnsSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getConfigureDnsSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s contact settings. Some changes require
-     * confirmation by the domain's registrant contact .
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - configureContactSettings( - com.google.cloud.domains.v1.ConfigureContactSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getConfigureContactSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Exports a `Registration` resource, such that it is no longer managed by
-     * Cloud Domains.
-     * When an active domain is successfully exported, you can continue to use the
-     * domain in [Google Domains](https://domains.google/) until it expires. The
-     * calling user becomes the domain's sole owner in Google Domains, and
-     * permissions for the domain are subsequently managed there. The domain does
-     * not renew automatically unless the new owner sets up billing in Google
-     * Domains.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - exportRegistration(com.google.cloud.domains.v1.ExportRegistrationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportRegistrationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a `Registration` resource.
-     * This method works on any `Registration` resource using [Subscription or
-     * Commitment billing](/domains/pricing#billing-models), provided that the
-     * resource was created at least 1 day in the past.
-     * For `Registration` resources using
-     * [Monthly billing](/domains/pricing#billing-models), this method works if:
-     * * `state` is `EXPORTED` with `expire_time` in the past
-     * * `state` is `REGISTRATION_FAILED`
-     * * `state` is `TRANSFER_FAILED`
-     * When an active registration is successfully deleted, you can continue to
-     * use the domain in [Google Domains](https://domains.google/) until it
-     * expires. The calling user becomes the domain's sole owner in Google
-     * Domains, and permissions for the domain are subsequently managed there. The
-     * domain does not renew automatically unless the new owner sets up billing in
-     * Google Domains.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteRegistration(com.google.cloud.domains.v1.DeleteRegistrationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRegistrationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the authorization code of the `Registration` for the purpose of
-     * transferring the domain to another registrar.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1.AuthorizationCode> - retrieveAuthorizationCode( - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRetrieveAuthorizationCodeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Resets the authorization code of the `Registration` to a new random string.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1.AuthorizationCode> - resetAuthorizationCode(com.google.cloud.domains.v1.ResetAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResetAuthorizationCodeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_SEARCH_DOMAINS = 0; - private static final int METHODID_RETRIEVE_REGISTER_PARAMETERS = 1; - private static final int METHODID_REGISTER_DOMAIN = 2; - private static final int METHODID_RETRIEVE_TRANSFER_PARAMETERS = 3; - private static final int METHODID_TRANSFER_DOMAIN = 4; - private static final int METHODID_LIST_REGISTRATIONS = 5; - private static final int METHODID_GET_REGISTRATION = 6; - private static final int METHODID_UPDATE_REGISTRATION = 7; - private static final int METHODID_CONFIGURE_MANAGEMENT_SETTINGS = 8; - private static final int METHODID_CONFIGURE_DNS_SETTINGS = 9; - private static final int METHODID_CONFIGURE_CONTACT_SETTINGS = 10; - private static final int METHODID_EXPORT_REGISTRATION = 11; - private static final int METHODID_DELETE_REGISTRATION = 12; - private static final int METHODID_RETRIEVE_AUTHORIZATION_CODE = 13; - private static final int METHODID_RESET_AUTHORIZATION_CODE = 14; - - 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 DomainsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DomainsImplBase 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_SEARCH_DOMAINS: - serviceImpl.searchDomains( - (com.google.cloud.domains.v1.SearchDomainsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RETRIEVE_REGISTER_PARAMETERS: - serviceImpl.retrieveRegisterParameters( - (com.google.cloud.domains.v1.RetrieveRegisterParametersRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.domains.v1.RetrieveRegisterParametersResponse>) - responseObserver); - break; - case METHODID_REGISTER_DOMAIN: - serviceImpl.registerDomain( - (com.google.cloud.domains.v1.RegisterDomainRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RETRIEVE_TRANSFER_PARAMETERS: - serviceImpl.retrieveTransferParameters( - (com.google.cloud.domains.v1.RetrieveTransferParametersRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.domains.v1.RetrieveTransferParametersResponse>) - responseObserver); - break; - case METHODID_TRANSFER_DOMAIN: - serviceImpl.transferDomain( - (com.google.cloud.domains.v1.TransferDomainRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_REGISTRATIONS: - serviceImpl.listRegistrations( - (com.google.cloud.domains.v1.ListRegistrationsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_REGISTRATION: - serviceImpl.getRegistration( - (com.google.cloud.domains.v1.GetRegistrationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_REGISTRATION: - serviceImpl.updateRegistration( - (com.google.cloud.domains.v1.UpdateRegistrationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONFIGURE_MANAGEMENT_SETTINGS: - serviceImpl.configureManagementSettings( - (com.google.cloud.domains.v1.ConfigureManagementSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONFIGURE_DNS_SETTINGS: - serviceImpl.configureDnsSettings( - (com.google.cloud.domains.v1.ConfigureDnsSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONFIGURE_CONTACT_SETTINGS: - serviceImpl.configureContactSettings( - (com.google.cloud.domains.v1.ConfigureContactSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EXPORT_REGISTRATION: - serviceImpl.exportRegistration( - (com.google.cloud.domains.v1.ExportRegistrationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_REGISTRATION: - serviceImpl.deleteRegistration( - (com.google.cloud.domains.v1.DeleteRegistrationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RETRIEVE_AUTHORIZATION_CODE: - serviceImpl.retrieveAuthorizationCode( - (com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RESET_AUTHORIZATION_CODE: - serviceImpl.resetAuthorizationCode( - (com.google.cloud.domains.v1.ResetAuthorizationCodeRequest) 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 DomainsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DomainsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.domains.v1.DomainsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Domains"); - } - } - - private static final class DomainsFileDescriptorSupplier extends DomainsBaseDescriptorSupplier { - DomainsFileDescriptorSupplier() {} - } - - private static final class DomainsMethodDescriptorSupplier extends DomainsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DomainsMethodDescriptorSupplier(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 (DomainsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DomainsFileDescriptorSupplier()) - .addMethod(getSearchDomainsMethod()) - .addMethod(getRetrieveRegisterParametersMethod()) - .addMethod(getRegisterDomainMethod()) - .addMethod(getRetrieveTransferParametersMethod()) - .addMethod(getTransferDomainMethod()) - .addMethod(getListRegistrationsMethod()) - .addMethod(getGetRegistrationMethod()) - .addMethod(getUpdateRegistrationMethod()) - .addMethod(getConfigureManagementSettingsMethod()) - .addMethod(getConfigureDnsSettingsMethod()) - .addMethod(getConfigureContactSettingsMethod()) - .addMethod(getExportRegistrationMethod()) - .addMethod(getDeleteRegistrationMethod()) - .addMethod(getRetrieveAuthorizationCodeMethod()) - .addMethod(getResetAuthorizationCodeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-domains-v1alpha2/pom.xml b/grpc-google-cloud-domains-v1alpha2/pom.xml deleted file mode 100644 index da3f8171..00000000 --- a/grpc-google-cloud-domains-v1alpha2/pom.xml +++ /dev/null @@ -1,69 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-cloud-domains-v1alpha2 - 0.8.7-SNAPSHOT - grpc-google-cloud-domains-v1alpha2 - GRPC library for google-cloud-domains - - com.google.cloud - google-cloud-domains-parent - 1.0.7-SNAPSHOT - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - com.google.api.grpc - proto-google-cloud-domains-v1alpha2 - - - 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-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DomainsGrpc.java b/grpc-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DomainsGrpc.java deleted file mode 100644 index 25970610..00000000 --- a/grpc-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DomainsGrpc.java +++ /dev/null @@ -1,2285 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.domains.v1alpha2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The Cloud Domains API enables management and configuration of domain names.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/domains/v1alpha2/domains.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DomainsGrpc { - - private DomainsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.domains.v1alpha2.Domains"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.SearchDomainsRequest, - com.google.cloud.domains.v1alpha2.SearchDomainsResponse> - getSearchDomainsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchDomains", - requestType = com.google.cloud.domains.v1alpha2.SearchDomainsRequest.class, - responseType = com.google.cloud.domains.v1alpha2.SearchDomainsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.SearchDomainsRequest, - com.google.cloud.domains.v1alpha2.SearchDomainsResponse> - getSearchDomainsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.SearchDomainsRequest, - com.google.cloud.domains.v1alpha2.SearchDomainsResponse> - getSearchDomainsMethod; - if ((getSearchDomainsMethod = DomainsGrpc.getSearchDomainsMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getSearchDomainsMethod = DomainsGrpc.getSearchDomainsMethod) == null) { - DomainsGrpc.getSearchDomainsMethod = - getSearchDomainsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchDomains")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.SearchDomainsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.SearchDomainsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("SearchDomains")) - .build(); - } - } - } - return getSearchDomainsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest, - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse> - getRetrieveRegisterParametersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RetrieveRegisterParameters", - requestType = com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest.class, - responseType = com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest, - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse> - getRetrieveRegisterParametersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest, - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse> - getRetrieveRegisterParametersMethod; - if ((getRetrieveRegisterParametersMethod = DomainsGrpc.getRetrieveRegisterParametersMethod) - == null) { - synchronized (DomainsGrpc.class) { - if ((getRetrieveRegisterParametersMethod = DomainsGrpc.getRetrieveRegisterParametersMethod) - == null) { - DomainsGrpc.getRetrieveRegisterParametersMethod = - getRetrieveRegisterParametersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RetrieveRegisterParameters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("RetrieveRegisterParameters")) - .build(); - } - } - } - return getRetrieveRegisterParametersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.RegisterDomainRequest, com.google.longrunning.Operation> - getRegisterDomainMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RegisterDomain", - requestType = com.google.cloud.domains.v1alpha2.RegisterDomainRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.RegisterDomainRequest, com.google.longrunning.Operation> - getRegisterDomainMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.RegisterDomainRequest, - com.google.longrunning.Operation> - getRegisterDomainMethod; - if ((getRegisterDomainMethod = DomainsGrpc.getRegisterDomainMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getRegisterDomainMethod = DomainsGrpc.getRegisterDomainMethod) == null) { - DomainsGrpc.getRegisterDomainMethod = - getRegisterDomainMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegisterDomain")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.RegisterDomainRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("RegisterDomain")) - .build(); - } - } - } - return getRegisterDomainMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest, - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse> - getRetrieveTransferParametersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RetrieveTransferParameters", - requestType = com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest.class, - responseType = com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest, - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse> - getRetrieveTransferParametersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest, - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse> - getRetrieveTransferParametersMethod; - if ((getRetrieveTransferParametersMethod = DomainsGrpc.getRetrieveTransferParametersMethod) - == null) { - synchronized (DomainsGrpc.class) { - if ((getRetrieveTransferParametersMethod = DomainsGrpc.getRetrieveTransferParametersMethod) - == null) { - DomainsGrpc.getRetrieveTransferParametersMethod = - getRetrieveTransferParametersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RetrieveTransferParameters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("RetrieveTransferParameters")) - .build(); - } - } - } - return getRetrieveTransferParametersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.TransferDomainRequest, com.google.longrunning.Operation> - getTransferDomainMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TransferDomain", - requestType = com.google.cloud.domains.v1alpha2.TransferDomainRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.TransferDomainRequest, com.google.longrunning.Operation> - getTransferDomainMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.TransferDomainRequest, - com.google.longrunning.Operation> - getTransferDomainMethod; - if ((getTransferDomainMethod = DomainsGrpc.getTransferDomainMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getTransferDomainMethod = DomainsGrpc.getTransferDomainMethod) == null) { - DomainsGrpc.getTransferDomainMethod = - getTransferDomainMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TransferDomain")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.TransferDomainRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("TransferDomain")) - .build(); - } - } - } - return getTransferDomainMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ListRegistrationsRequest, - com.google.cloud.domains.v1alpha2.ListRegistrationsResponse> - getListRegistrationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRegistrations", - requestType = com.google.cloud.domains.v1alpha2.ListRegistrationsRequest.class, - responseType = com.google.cloud.domains.v1alpha2.ListRegistrationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ListRegistrationsRequest, - com.google.cloud.domains.v1alpha2.ListRegistrationsResponse> - getListRegistrationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ListRegistrationsRequest, - com.google.cloud.domains.v1alpha2.ListRegistrationsResponse> - getListRegistrationsMethod; - if ((getListRegistrationsMethod = DomainsGrpc.getListRegistrationsMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getListRegistrationsMethod = DomainsGrpc.getListRegistrationsMethod) == null) { - DomainsGrpc.getListRegistrationsMethod = - getListRegistrationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRegistrations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.ListRegistrationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.ListRegistrationsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("ListRegistrations")) - .build(); - } - } - } - return getListRegistrationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.GetRegistrationRequest, - com.google.cloud.domains.v1alpha2.Registration> - getGetRegistrationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRegistration", - requestType = com.google.cloud.domains.v1alpha2.GetRegistrationRequest.class, - responseType = com.google.cloud.domains.v1alpha2.Registration.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.GetRegistrationRequest, - com.google.cloud.domains.v1alpha2.Registration> - getGetRegistrationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.GetRegistrationRequest, - com.google.cloud.domains.v1alpha2.Registration> - getGetRegistrationMethod; - if ((getGetRegistrationMethod = DomainsGrpc.getGetRegistrationMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getGetRegistrationMethod = DomainsGrpc.getGetRegistrationMethod) == null) { - DomainsGrpc.getGetRegistrationMethod = - getGetRegistrationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRegistration")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.GetRegistrationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.Registration.getDefaultInstance())) - .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("GetRegistration")) - .build(); - } - } - } - return getGetRegistrationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest, - com.google.longrunning.Operation> - getUpdateRegistrationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateRegistration", - requestType = com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest, - com.google.longrunning.Operation> - getUpdateRegistrationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest, - com.google.longrunning.Operation> - getUpdateRegistrationMethod; - if ((getUpdateRegistrationMethod = DomainsGrpc.getUpdateRegistrationMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getUpdateRegistrationMethod = DomainsGrpc.getUpdateRegistrationMethod) == null) { - DomainsGrpc.getUpdateRegistrationMethod = - getUpdateRegistrationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRegistration")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("UpdateRegistration")) - .build(); - } - } - } - return getUpdateRegistrationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest, - com.google.longrunning.Operation> - getConfigureManagementSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConfigureManagementSettings", - requestType = com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest, - com.google.longrunning.Operation> - getConfigureManagementSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest, - com.google.longrunning.Operation> - getConfigureManagementSettingsMethod; - if ((getConfigureManagementSettingsMethod = DomainsGrpc.getConfigureManagementSettingsMethod) - == null) { - synchronized (DomainsGrpc.class) { - if ((getConfigureManagementSettingsMethod = - DomainsGrpc.getConfigureManagementSettingsMethod) - == null) { - DomainsGrpc.getConfigureManagementSettingsMethod = - getConfigureManagementSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ConfigureManagementSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("ConfigureManagementSettings")) - .build(); - } - } - } - return getConfigureManagementSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest, - com.google.longrunning.Operation> - getConfigureDnsSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConfigureDnsSettings", - requestType = com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest, - com.google.longrunning.Operation> - getConfigureDnsSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest, - com.google.longrunning.Operation> - getConfigureDnsSettingsMethod; - if ((getConfigureDnsSettingsMethod = DomainsGrpc.getConfigureDnsSettingsMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getConfigureDnsSettingsMethod = DomainsGrpc.getConfigureDnsSettingsMethod) == null) { - DomainsGrpc.getConfigureDnsSettingsMethod = - getConfigureDnsSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ConfigureDnsSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("ConfigureDnsSettings")) - .build(); - } - } - } - return getConfigureDnsSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest, - com.google.longrunning.Operation> - getConfigureContactSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConfigureContactSettings", - requestType = com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest, - com.google.longrunning.Operation> - getConfigureContactSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest, - com.google.longrunning.Operation> - getConfigureContactSettingsMethod; - if ((getConfigureContactSettingsMethod = DomainsGrpc.getConfigureContactSettingsMethod) - == null) { - synchronized (DomainsGrpc.class) { - if ((getConfigureContactSettingsMethod = DomainsGrpc.getConfigureContactSettingsMethod) - == null) { - DomainsGrpc.getConfigureContactSettingsMethod = - getConfigureContactSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ConfigureContactSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("ConfigureContactSettings")) - .build(); - } - } - } - return getConfigureContactSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ExportRegistrationRequest, - com.google.longrunning.Operation> - getExportRegistrationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportRegistration", - requestType = com.google.cloud.domains.v1alpha2.ExportRegistrationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ExportRegistrationRequest, - com.google.longrunning.Operation> - getExportRegistrationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ExportRegistrationRequest, - com.google.longrunning.Operation> - getExportRegistrationMethod; - if ((getExportRegistrationMethod = DomainsGrpc.getExportRegistrationMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getExportRegistrationMethod = DomainsGrpc.getExportRegistrationMethod) == null) { - DomainsGrpc.getExportRegistrationMethod = - getExportRegistrationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportRegistration")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.ExportRegistrationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("ExportRegistration")) - .build(); - } - } - } - return getExportRegistrationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest, - com.google.longrunning.Operation> - getDeleteRegistrationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRegistration", - requestType = com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest, - com.google.longrunning.Operation> - getDeleteRegistrationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest, - com.google.longrunning.Operation> - getDeleteRegistrationMethod; - if ((getDeleteRegistrationMethod = DomainsGrpc.getDeleteRegistrationMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getDeleteRegistrationMethod = DomainsGrpc.getDeleteRegistrationMethod) == null) { - DomainsGrpc.getDeleteRegistrationMethod = - getDeleteRegistrationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRegistration")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("DeleteRegistration")) - .build(); - } - } - } - return getDeleteRegistrationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest, - com.google.cloud.domains.v1alpha2.AuthorizationCode> - getRetrieveAuthorizationCodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RetrieveAuthorizationCode", - requestType = com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest.class, - responseType = com.google.cloud.domains.v1alpha2.AuthorizationCode.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest, - com.google.cloud.domains.v1alpha2.AuthorizationCode> - getRetrieveAuthorizationCodeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest, - com.google.cloud.domains.v1alpha2.AuthorizationCode> - getRetrieveAuthorizationCodeMethod; - if ((getRetrieveAuthorizationCodeMethod = DomainsGrpc.getRetrieveAuthorizationCodeMethod) - == null) { - synchronized (DomainsGrpc.class) { - if ((getRetrieveAuthorizationCodeMethod = DomainsGrpc.getRetrieveAuthorizationCodeMethod) - == null) { - DomainsGrpc.getRetrieveAuthorizationCodeMethod = - getRetrieveAuthorizationCodeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RetrieveAuthorizationCode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.AuthorizationCode - .getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("RetrieveAuthorizationCode")) - .build(); - } - } - } - return getRetrieveAuthorizationCodeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest, - com.google.cloud.domains.v1alpha2.AuthorizationCode> - getResetAuthorizationCodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResetAuthorizationCode", - requestType = com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest.class, - responseType = com.google.cloud.domains.v1alpha2.AuthorizationCode.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest, - com.google.cloud.domains.v1alpha2.AuthorizationCode> - getResetAuthorizationCodeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest, - com.google.cloud.domains.v1alpha2.AuthorizationCode> - getResetAuthorizationCodeMethod; - if ((getResetAuthorizationCodeMethod = DomainsGrpc.getResetAuthorizationCodeMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getResetAuthorizationCodeMethod = DomainsGrpc.getResetAuthorizationCodeMethod) - == null) { - DomainsGrpc.getResetAuthorizationCodeMethod = - getResetAuthorizationCodeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ResetAuthorizationCode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1alpha2.AuthorizationCode - .getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("ResetAuthorizationCode")) - .build(); - } - } - } - return getResetAuthorizationCodeMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DomainsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DomainsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsStub(channel, callOptions); - } - }; - return DomainsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DomainsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DomainsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsBlockingStub(channel, callOptions); - } - }; - return DomainsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DomainsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DomainsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsFutureStub(channel, callOptions); - } - }; - return DomainsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The Cloud Domains API enables management and configuration of domain names.
-   * 
- */ - public abstract static class DomainsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Searches for available domain names similar to the provided query.
-     * Availability results from this method are approximate; call
-     * `RetrieveRegisterParameters` on a domain before registering to confirm
-     * availability.
-     * 
- */ - public void searchDomains( - com.google.cloud.domains.v1alpha2.SearchDomainsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchDomainsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets parameters needed to register a new domain name, including price and
-     * up-to-date availability. Use the returned values to call `RegisterDomain`.
-     * 
- */ - public void retrieveRegisterParameters( - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRetrieveRegisterParametersMethod(), responseObserver); - } - - /** - * - * - *
-     * Registers a new domain name and creates a corresponding `Registration`
-     * resource.
-     * Call `RetrieveRegisterParameters` first to check availability of the domain
-     * name and determine parameters like price that are needed to build a call to
-     * this method.
-     * A successful call creates a `Registration` resource in state
-     * `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
-     * minutes, indicating that the domain was successfully registered. If the
-     * resource ends up in state `REGISTRATION_FAILED`, it indicates that the
-     * domain was not registered successfully, and you can safely delete the
-     * resource and retry registration.
-     * 
- */ - public void registerDomain( - com.google.cloud.domains.v1alpha2.RegisterDomainRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRegisterDomainMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets parameters needed to transfer a domain name from another registrar to
-     * Cloud Domains. For domains managed by Google Domains, transferring to Cloud
-     * Domains is not supported.
-     * Use the returned values to call `TransferDomain`.
-     * 
- */ - public void retrieveTransferParameters( - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRetrieveTransferParametersMethod(), responseObserver); - } - - /** - * - * - *
-     * Transfers a domain name from another registrar to Cloud Domains.  For
-     * domains managed by Google Domains, transferring to Cloud Domains is not
-     * supported.
-     * Before calling this method, go to the domain's current registrar to unlock
-     * the domain for transfer and retrieve the domain's transfer authorization
-     * code. Then call `RetrieveTransferParameters` to confirm that the domain is
-     * unlocked and to get values needed to build a call to this method.
-     * A successful call creates a `Registration` resource in state
-     * `TRANSFER_PENDING`. It can take several days to complete the transfer
-     * process. The registrant can often speed up this process by approving the
-     * transfer through the current registrar, either by clicking a link in an
-     * email from the registrar or by visiting the registrar's website.
-     * A few minutes after transfer approval, the resource transitions to state
-     * `ACTIVE`, indicating that the transfer was successful. If the transfer is
-     * rejected or the request expires without being approved, the resource can
-     * end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete
-     * the resource and retry the transfer.
-     * 
- */ - public void transferDomain( - com.google.cloud.domains.v1alpha2.TransferDomainRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTransferDomainMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the `Registration` resources in a project.
-     * 
- */ - public void listRegistrations( - com.google.cloud.domains.v1alpha2.ListRegistrationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListRegistrationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the details of a `Registration` resource.
-     * 
- */ - public void getRegistration( - com.google.cloud.domains.v1alpha2.GetRegistrationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetRegistrationMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates select fields of a `Registration` resource, notably `labels`. To
-     * update other fields, use the appropriate custom update method:
-     * * To update management settings, see `ConfigureManagementSettings`
-     * * To update DNS configuration, see `ConfigureDnsSettings`
-     * * To update contact information, see `ConfigureContactSettings`
-     * 
- */ - public void updateRegistration( - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateRegistrationMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s management settings.
-     * 
- */ - public void configureManagementSettings( - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getConfigureManagementSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s DNS settings.
-     * 
- */ - public void configureDnsSettings( - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getConfigureDnsSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s contact settings. Some changes require
-     * confirmation by the domain's registrant contact .
-     * 
- */ - public void configureContactSettings( - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getConfigureContactSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Exports a `Registration` resource, such that it is no longer managed by
-     * Cloud Domains.
-     * When an active domain is successfully exported, you can continue to use the
-     * domain in [Google Domains](https://domains.google/) until it expires. The
-     * calling user becomes the domain's sole owner in Google Domains, and
-     * permissions for the domain are subsequently managed there. The domain does
-     * not renew automatically unless the new owner sets up billing in Google
-     * Domains.
-     * 
- */ - public void exportRegistration( - com.google.cloud.domains.v1alpha2.ExportRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getExportRegistrationMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a `Registration` resource.
-     * This method works on any `Registration` resource using [Subscription or
-     * Commitment billing](/domains/pricing#billing-models), provided that the
-     * resource was created at least 1 day in the past.
-     * For `Registration` resources using
-     * [Monthly billing](/domains/pricing#billing-models), this method works if:
-     * * `state` is `EXPORTED` with `expire_time` in the past
-     * * `state` is `REGISTRATION_FAILED`
-     * * `state` is `TRANSFER_FAILED`
-     * When an active registration is successfully deleted, you can continue to
-     * use the domain in [Google Domains](https://domains.google/) until it
-     * expires. The calling user becomes the domain's sole owner in Google
-     * Domains, and permissions for the domain are subsequently managed there. The
-     * domain does not renew automatically unless the new owner sets up billing in
-     * Google Domains.
-     * 
- */ - public void deleteRegistration( - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteRegistrationMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the authorization code of the `Registration` for the purpose of
-     * transferring the domain to another registrar.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public void retrieveAuthorizationCode( - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRetrieveAuthorizationCodeMethod(), responseObserver); - } - - /** - * - * - *
-     * Resets the authorization code of the `Registration` to a new random string.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public void resetAuthorizationCode( - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResetAuthorizationCodeMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getSearchDomainsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1alpha2.SearchDomainsRequest, - com.google.cloud.domains.v1alpha2.SearchDomainsResponse>( - this, METHODID_SEARCH_DOMAINS))) - .addMethod( - getRetrieveRegisterParametersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest, - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse>( - this, METHODID_RETRIEVE_REGISTER_PARAMETERS))) - .addMethod( - getRegisterDomainMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1alpha2.RegisterDomainRequest, - com.google.longrunning.Operation>(this, METHODID_REGISTER_DOMAIN))) - .addMethod( - getRetrieveTransferParametersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest, - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse>( - this, METHODID_RETRIEVE_TRANSFER_PARAMETERS))) - .addMethod( - getTransferDomainMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1alpha2.TransferDomainRequest, - com.google.longrunning.Operation>(this, METHODID_TRANSFER_DOMAIN))) - .addMethod( - getListRegistrationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1alpha2.ListRegistrationsRequest, - com.google.cloud.domains.v1alpha2.ListRegistrationsResponse>( - this, METHODID_LIST_REGISTRATIONS))) - .addMethod( - getGetRegistrationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1alpha2.GetRegistrationRequest, - com.google.cloud.domains.v1alpha2.Registration>( - this, METHODID_GET_REGISTRATION))) - .addMethod( - getUpdateRegistrationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_REGISTRATION))) - .addMethod( - getConfigureManagementSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest, - com.google.longrunning.Operation>( - this, METHODID_CONFIGURE_MANAGEMENT_SETTINGS))) - .addMethod( - getConfigureDnsSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest, - com.google.longrunning.Operation>(this, METHODID_CONFIGURE_DNS_SETTINGS))) - .addMethod( - getConfigureContactSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest, - com.google.longrunning.Operation>(this, METHODID_CONFIGURE_CONTACT_SETTINGS))) - .addMethod( - getExportRegistrationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1alpha2.ExportRegistrationRequest, - com.google.longrunning.Operation>(this, METHODID_EXPORT_REGISTRATION))) - .addMethod( - getDeleteRegistrationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_REGISTRATION))) - .addMethod( - getRetrieveAuthorizationCodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest, - com.google.cloud.domains.v1alpha2.AuthorizationCode>( - this, METHODID_RETRIEVE_AUTHORIZATION_CODE))) - .addMethod( - getResetAuthorizationCodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest, - com.google.cloud.domains.v1alpha2.AuthorizationCode>( - this, METHODID_RESET_AUTHORIZATION_CODE))) - .build(); - } - } - - /** - * - * - *
-   * The Cloud Domains API enables management and configuration of domain names.
-   * 
- */ - public static final class DomainsStub extends io.grpc.stub.AbstractAsyncStub { - private DomainsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DomainsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsStub(channel, callOptions); - } - - /** - * - * - *
-     * Searches for available domain names similar to the provided query.
-     * Availability results from this method are approximate; call
-     * `RetrieveRegisterParameters` on a domain before registering to confirm
-     * availability.
-     * 
- */ - public void searchDomains( - com.google.cloud.domains.v1alpha2.SearchDomainsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchDomainsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets parameters needed to register a new domain name, including price and
-     * up-to-date availability. Use the returned values to call `RegisterDomain`.
-     * 
- */ - public void retrieveRegisterParameters( - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRetrieveRegisterParametersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Registers a new domain name and creates a corresponding `Registration`
-     * resource.
-     * Call `RetrieveRegisterParameters` first to check availability of the domain
-     * name and determine parameters like price that are needed to build a call to
-     * this method.
-     * A successful call creates a `Registration` resource in state
-     * `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
-     * minutes, indicating that the domain was successfully registered. If the
-     * resource ends up in state `REGISTRATION_FAILED`, it indicates that the
-     * domain was not registered successfully, and you can safely delete the
-     * resource and retry registration.
-     * 
- */ - public void registerDomain( - com.google.cloud.domains.v1alpha2.RegisterDomainRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRegisterDomainMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets parameters needed to transfer a domain name from another registrar to
-     * Cloud Domains. For domains managed by Google Domains, transferring to Cloud
-     * Domains is not supported.
-     * Use the returned values to call `TransferDomain`.
-     * 
- */ - public void retrieveTransferParameters( - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRetrieveTransferParametersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Transfers a domain name from another registrar to Cloud Domains.  For
-     * domains managed by Google Domains, transferring to Cloud Domains is not
-     * supported.
-     * Before calling this method, go to the domain's current registrar to unlock
-     * the domain for transfer and retrieve the domain's transfer authorization
-     * code. Then call `RetrieveTransferParameters` to confirm that the domain is
-     * unlocked and to get values needed to build a call to this method.
-     * A successful call creates a `Registration` resource in state
-     * `TRANSFER_PENDING`. It can take several days to complete the transfer
-     * process. The registrant can often speed up this process by approving the
-     * transfer through the current registrar, either by clicking a link in an
-     * email from the registrar or by visiting the registrar's website.
-     * A few minutes after transfer approval, the resource transitions to state
-     * `ACTIVE`, indicating that the transfer was successful. If the transfer is
-     * rejected or the request expires without being approved, the resource can
-     * end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete
-     * the resource and retry the transfer.
-     * 
- */ - public void transferDomain( - com.google.cloud.domains.v1alpha2.TransferDomainRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTransferDomainMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the `Registration` resources in a project.
-     * 
- */ - public void listRegistrations( - com.google.cloud.domains.v1alpha2.ListRegistrationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRegistrationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the details of a `Registration` resource.
-     * 
- */ - public void getRegistration( - com.google.cloud.domains.v1alpha2.GetRegistrationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRegistrationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates select fields of a `Registration` resource, notably `labels`. To
-     * update other fields, use the appropriate custom update method:
-     * * To update management settings, see `ConfigureManagementSettings`
-     * * To update DNS configuration, see `ConfigureDnsSettings`
-     * * To update contact information, see `ConfigureContactSettings`
-     * 
- */ - public void updateRegistration( - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateRegistrationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s management settings.
-     * 
- */ - public void configureManagementSettings( - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getConfigureManagementSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s DNS settings.
-     * 
- */ - public void configureDnsSettings( - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getConfigureDnsSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s contact settings. Some changes require
-     * confirmation by the domain's registrant contact .
-     * 
- */ - public void configureContactSettings( - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getConfigureContactSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Exports a `Registration` resource, such that it is no longer managed by
-     * Cloud Domains.
-     * When an active domain is successfully exported, you can continue to use the
-     * domain in [Google Domains](https://domains.google/) until it expires. The
-     * calling user becomes the domain's sole owner in Google Domains, and
-     * permissions for the domain are subsequently managed there. The domain does
-     * not renew automatically unless the new owner sets up billing in Google
-     * Domains.
-     * 
- */ - public void exportRegistration( - com.google.cloud.domains.v1alpha2.ExportRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportRegistrationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a `Registration` resource.
-     * This method works on any `Registration` resource using [Subscription or
-     * Commitment billing](/domains/pricing#billing-models), provided that the
-     * resource was created at least 1 day in the past.
-     * For `Registration` resources using
-     * [Monthly billing](/domains/pricing#billing-models), this method works if:
-     * * `state` is `EXPORTED` with `expire_time` in the past
-     * * `state` is `REGISTRATION_FAILED`
-     * * `state` is `TRANSFER_FAILED`
-     * When an active registration is successfully deleted, you can continue to
-     * use the domain in [Google Domains](https://domains.google/) until it
-     * expires. The calling user becomes the domain's sole owner in Google
-     * Domains, and permissions for the domain are subsequently managed there. The
-     * domain does not renew automatically unless the new owner sets up billing in
-     * Google Domains.
-     * 
- */ - public void deleteRegistration( - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRegistrationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the authorization code of the `Registration` for the purpose of
-     * transferring the domain to another registrar.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public void retrieveAuthorizationCode( - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRetrieveAuthorizationCodeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Resets the authorization code of the `Registration` to a new random string.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public void resetAuthorizationCode( - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResetAuthorizationCodeMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The Cloud Domains API enables management and configuration of domain names.
-   * 
- */ - public static final class DomainsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DomainsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DomainsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Searches for available domain names similar to the provided query.
-     * Availability results from this method are approximate; call
-     * `RetrieveRegisterParameters` on a domain before registering to confirm
-     * availability.
-     * 
- */ - public com.google.cloud.domains.v1alpha2.SearchDomainsResponse searchDomains( - com.google.cloud.domains.v1alpha2.SearchDomainsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchDomainsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets parameters needed to register a new domain name, including price and
-     * up-to-date availability. Use the returned values to call `RegisterDomain`.
-     * 
- */ - public com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse - retrieveRegisterParameters( - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRetrieveRegisterParametersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Registers a new domain name and creates a corresponding `Registration`
-     * resource.
-     * Call `RetrieveRegisterParameters` first to check availability of the domain
-     * name and determine parameters like price that are needed to build a call to
-     * this method.
-     * A successful call creates a `Registration` resource in state
-     * `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
-     * minutes, indicating that the domain was successfully registered. If the
-     * resource ends up in state `REGISTRATION_FAILED`, it indicates that the
-     * domain was not registered successfully, and you can safely delete the
-     * resource and retry registration.
-     * 
- */ - public com.google.longrunning.Operation registerDomain( - com.google.cloud.domains.v1alpha2.RegisterDomainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRegisterDomainMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets parameters needed to transfer a domain name from another registrar to
-     * Cloud Domains. For domains managed by Google Domains, transferring to Cloud
-     * Domains is not supported.
-     * Use the returned values to call `TransferDomain`.
-     * 
- */ - public com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse - retrieveTransferParameters( - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRetrieveTransferParametersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Transfers a domain name from another registrar to Cloud Domains.  For
-     * domains managed by Google Domains, transferring to Cloud Domains is not
-     * supported.
-     * Before calling this method, go to the domain's current registrar to unlock
-     * the domain for transfer and retrieve the domain's transfer authorization
-     * code. Then call `RetrieveTransferParameters` to confirm that the domain is
-     * unlocked and to get values needed to build a call to this method.
-     * A successful call creates a `Registration` resource in state
-     * `TRANSFER_PENDING`. It can take several days to complete the transfer
-     * process. The registrant can often speed up this process by approving the
-     * transfer through the current registrar, either by clicking a link in an
-     * email from the registrar or by visiting the registrar's website.
-     * A few minutes after transfer approval, the resource transitions to state
-     * `ACTIVE`, indicating that the transfer was successful. If the transfer is
-     * rejected or the request expires without being approved, the resource can
-     * end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete
-     * the resource and retry the transfer.
-     * 
- */ - public com.google.longrunning.Operation transferDomain( - com.google.cloud.domains.v1alpha2.TransferDomainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTransferDomainMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the `Registration` resources in a project.
-     * 
- */ - public com.google.cloud.domains.v1alpha2.ListRegistrationsResponse listRegistrations( - com.google.cloud.domains.v1alpha2.ListRegistrationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRegistrationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the details of a `Registration` resource.
-     * 
- */ - public com.google.cloud.domains.v1alpha2.Registration getRegistration( - com.google.cloud.domains.v1alpha2.GetRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRegistrationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates select fields of a `Registration` resource, notably `labels`. To
-     * update other fields, use the appropriate custom update method:
-     * * To update management settings, see `ConfigureManagementSettings`
-     * * To update DNS configuration, see `ConfigureDnsSettings`
-     * * To update contact information, see `ConfigureContactSettings`
-     * 
- */ - public com.google.longrunning.Operation updateRegistration( - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRegistrationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s management settings.
-     * 
- */ - public com.google.longrunning.Operation configureManagementSettings( - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getConfigureManagementSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s DNS settings.
-     * 
- */ - public com.google.longrunning.Operation configureDnsSettings( - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getConfigureDnsSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s contact settings. Some changes require
-     * confirmation by the domain's registrant contact .
-     * 
- */ - public com.google.longrunning.Operation configureContactSettings( - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getConfigureContactSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Exports a `Registration` resource, such that it is no longer managed by
-     * Cloud Domains.
-     * When an active domain is successfully exported, you can continue to use the
-     * domain in [Google Domains](https://domains.google/) until it expires. The
-     * calling user becomes the domain's sole owner in Google Domains, and
-     * permissions for the domain are subsequently managed there. The domain does
-     * not renew automatically unless the new owner sets up billing in Google
-     * Domains.
-     * 
- */ - public com.google.longrunning.Operation exportRegistration( - com.google.cloud.domains.v1alpha2.ExportRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportRegistrationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a `Registration` resource.
-     * This method works on any `Registration` resource using [Subscription or
-     * Commitment billing](/domains/pricing#billing-models), provided that the
-     * resource was created at least 1 day in the past.
-     * For `Registration` resources using
-     * [Monthly billing](/domains/pricing#billing-models), this method works if:
-     * * `state` is `EXPORTED` with `expire_time` in the past
-     * * `state` is `REGISTRATION_FAILED`
-     * * `state` is `TRANSFER_FAILED`
-     * When an active registration is successfully deleted, you can continue to
-     * use the domain in [Google Domains](https://domains.google/) until it
-     * expires. The calling user becomes the domain's sole owner in Google
-     * Domains, and permissions for the domain are subsequently managed there. The
-     * domain does not renew automatically unless the new owner sets up billing in
-     * Google Domains.
-     * 
- */ - public com.google.longrunning.Operation deleteRegistration( - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRegistrationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the authorization code of the `Registration` for the purpose of
-     * transferring the domain to another registrar.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public com.google.cloud.domains.v1alpha2.AuthorizationCode retrieveAuthorizationCode( - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRetrieveAuthorizationCodeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Resets the authorization code of the `Registration` to a new random string.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public com.google.cloud.domains.v1alpha2.AuthorizationCode resetAuthorizationCode( - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResetAuthorizationCodeMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The Cloud Domains API enables management and configuration of domain names.
-   * 
- */ - public static final class DomainsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DomainsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DomainsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Searches for available domain names similar to the provided query.
-     * Availability results from this method are approximate; call
-     * `RetrieveRegisterParameters` on a domain before registering to confirm
-     * availability.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1alpha2.SearchDomainsResponse> - searchDomains(com.google.cloud.domains.v1alpha2.SearchDomainsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchDomainsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets parameters needed to register a new domain name, including price and
-     * up-to-date availability. Use the returned values to call `RegisterDomain`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse> - retrieveRegisterParameters( - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRetrieveRegisterParametersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Registers a new domain name and creates a corresponding `Registration`
-     * resource.
-     * Call `RetrieveRegisterParameters` first to check availability of the domain
-     * name and determine parameters like price that are needed to build a call to
-     * this method.
-     * A successful call creates a `Registration` resource in state
-     * `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
-     * minutes, indicating that the domain was successfully registered. If the
-     * resource ends up in state `REGISTRATION_FAILED`, it indicates that the
-     * domain was not registered successfully, and you can safely delete the
-     * resource and retry registration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - registerDomain(com.google.cloud.domains.v1alpha2.RegisterDomainRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRegisterDomainMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets parameters needed to transfer a domain name from another registrar to
-     * Cloud Domains. For domains managed by Google Domains, transferring to Cloud
-     * Domains is not supported.
-     * Use the returned values to call `TransferDomain`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse> - retrieveTransferParameters( - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRetrieveTransferParametersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Transfers a domain name from another registrar to Cloud Domains.  For
-     * domains managed by Google Domains, transferring to Cloud Domains is not
-     * supported.
-     * Before calling this method, go to the domain's current registrar to unlock
-     * the domain for transfer and retrieve the domain's transfer authorization
-     * code. Then call `RetrieveTransferParameters` to confirm that the domain is
-     * unlocked and to get values needed to build a call to this method.
-     * A successful call creates a `Registration` resource in state
-     * `TRANSFER_PENDING`. It can take several days to complete the transfer
-     * process. The registrant can often speed up this process by approving the
-     * transfer through the current registrar, either by clicking a link in an
-     * email from the registrar or by visiting the registrar's website.
-     * A few minutes after transfer approval, the resource transitions to state
-     * `ACTIVE`, indicating that the transfer was successful. If the transfer is
-     * rejected or the request expires without being approved, the resource can
-     * end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete
-     * the resource and retry the transfer.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - transferDomain(com.google.cloud.domains.v1alpha2.TransferDomainRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTransferDomainMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the `Registration` resources in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1alpha2.ListRegistrationsResponse> - listRegistrations(com.google.cloud.domains.v1alpha2.ListRegistrationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRegistrationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the details of a `Registration` resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1alpha2.Registration> - getRegistration(com.google.cloud.domains.v1alpha2.GetRegistrationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRegistrationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates select fields of a `Registration` resource, notably `labels`. To
-     * update other fields, use the appropriate custom update method:
-     * * To update management settings, see `ConfigureManagementSettings`
-     * * To update DNS configuration, see `ConfigureDnsSettings`
-     * * To update contact information, see `ConfigureContactSettings`
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateRegistration(com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateRegistrationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s management settings.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - configureManagementSettings( - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getConfigureManagementSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s DNS settings.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - configureDnsSettings( - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getConfigureDnsSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s contact settings. Some changes require
-     * confirmation by the domain's registrant contact .
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - configureContactSettings( - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getConfigureContactSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Exports a `Registration` resource, such that it is no longer managed by
-     * Cloud Domains.
-     * When an active domain is successfully exported, you can continue to use the
-     * domain in [Google Domains](https://domains.google/) until it expires. The
-     * calling user becomes the domain's sole owner in Google Domains, and
-     * permissions for the domain are subsequently managed there. The domain does
-     * not renew automatically unless the new owner sets up billing in Google
-     * Domains.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - exportRegistration(com.google.cloud.domains.v1alpha2.ExportRegistrationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportRegistrationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a `Registration` resource.
-     * This method works on any `Registration` resource using [Subscription or
-     * Commitment billing](/domains/pricing#billing-models), provided that the
-     * resource was created at least 1 day in the past.
-     * For `Registration` resources using
-     * [Monthly billing](/domains/pricing#billing-models), this method works if:
-     * * `state` is `EXPORTED` with `expire_time` in the past
-     * * `state` is `REGISTRATION_FAILED`
-     * * `state` is `TRANSFER_FAILED`
-     * When an active registration is successfully deleted, you can continue to
-     * use the domain in [Google Domains](https://domains.google/) until it
-     * expires. The calling user becomes the domain's sole owner in Google
-     * Domains, and permissions for the domain are subsequently managed there. The
-     * domain does not renew automatically unless the new owner sets up billing in
-     * Google Domains.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteRegistration(com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRegistrationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the authorization code of the `Registration` for the purpose of
-     * transferring the domain to another registrar.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1alpha2.AuthorizationCode> - retrieveAuthorizationCode( - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRetrieveAuthorizationCodeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Resets the authorization code of the `Registration` to a new random string.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1alpha2.AuthorizationCode> - resetAuthorizationCode( - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResetAuthorizationCodeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_SEARCH_DOMAINS = 0; - private static final int METHODID_RETRIEVE_REGISTER_PARAMETERS = 1; - private static final int METHODID_REGISTER_DOMAIN = 2; - private static final int METHODID_RETRIEVE_TRANSFER_PARAMETERS = 3; - private static final int METHODID_TRANSFER_DOMAIN = 4; - private static final int METHODID_LIST_REGISTRATIONS = 5; - private static final int METHODID_GET_REGISTRATION = 6; - private static final int METHODID_UPDATE_REGISTRATION = 7; - private static final int METHODID_CONFIGURE_MANAGEMENT_SETTINGS = 8; - private static final int METHODID_CONFIGURE_DNS_SETTINGS = 9; - private static final int METHODID_CONFIGURE_CONTACT_SETTINGS = 10; - private static final int METHODID_EXPORT_REGISTRATION = 11; - private static final int METHODID_DELETE_REGISTRATION = 12; - private static final int METHODID_RETRIEVE_AUTHORIZATION_CODE = 13; - private static final int METHODID_RESET_AUTHORIZATION_CODE = 14; - - 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 DomainsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DomainsImplBase 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_SEARCH_DOMAINS: - serviceImpl.searchDomains( - (com.google.cloud.domains.v1alpha2.SearchDomainsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RETRIEVE_REGISTER_PARAMETERS: - serviceImpl.retrieveRegisterParameters( - (com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse>) - responseObserver); - break; - case METHODID_REGISTER_DOMAIN: - serviceImpl.registerDomain( - (com.google.cloud.domains.v1alpha2.RegisterDomainRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RETRIEVE_TRANSFER_PARAMETERS: - serviceImpl.retrieveTransferParameters( - (com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse>) - responseObserver); - break; - case METHODID_TRANSFER_DOMAIN: - serviceImpl.transferDomain( - (com.google.cloud.domains.v1alpha2.TransferDomainRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_REGISTRATIONS: - serviceImpl.listRegistrations( - (com.google.cloud.domains.v1alpha2.ListRegistrationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.domains.v1alpha2.ListRegistrationsResponse>) - responseObserver); - break; - case METHODID_GET_REGISTRATION: - serviceImpl.getRegistration( - (com.google.cloud.domains.v1alpha2.GetRegistrationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_REGISTRATION: - serviceImpl.updateRegistration( - (com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONFIGURE_MANAGEMENT_SETTINGS: - serviceImpl.configureManagementSettings( - (com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONFIGURE_DNS_SETTINGS: - serviceImpl.configureDnsSettings( - (com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONFIGURE_CONTACT_SETTINGS: - serviceImpl.configureContactSettings( - (com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EXPORT_REGISTRATION: - serviceImpl.exportRegistration( - (com.google.cloud.domains.v1alpha2.ExportRegistrationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_REGISTRATION: - serviceImpl.deleteRegistration( - (com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RETRIEVE_AUTHORIZATION_CODE: - serviceImpl.retrieveAuthorizationCode( - (com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RESET_AUTHORIZATION_CODE: - serviceImpl.resetAuthorizationCode( - (com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest) 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 DomainsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DomainsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Domains"); - } - } - - private static final class DomainsFileDescriptorSupplier extends DomainsBaseDescriptorSupplier { - DomainsFileDescriptorSupplier() {} - } - - private static final class DomainsMethodDescriptorSupplier extends DomainsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DomainsMethodDescriptorSupplier(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 (DomainsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DomainsFileDescriptorSupplier()) - .addMethod(getSearchDomainsMethod()) - .addMethod(getRetrieveRegisterParametersMethod()) - .addMethod(getRegisterDomainMethod()) - .addMethod(getRetrieveTransferParametersMethod()) - .addMethod(getTransferDomainMethod()) - .addMethod(getListRegistrationsMethod()) - .addMethod(getGetRegistrationMethod()) - .addMethod(getUpdateRegistrationMethod()) - .addMethod(getConfigureManagementSettingsMethod()) - .addMethod(getConfigureDnsSettingsMethod()) - .addMethod(getConfigureContactSettingsMethod()) - .addMethod(getExportRegistrationMethod()) - .addMethod(getDeleteRegistrationMethod()) - .addMethod(getRetrieveAuthorizationCodeMethod()) - .addMethod(getResetAuthorizationCodeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-domains-v1beta1/pom.xml b/grpc-google-cloud-domains-v1beta1/pom.xml deleted file mode 100644 index 94a36123..00000000 --- a/grpc-google-cloud-domains-v1beta1/pom.xml +++ /dev/null @@ -1,69 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-cloud-domains-v1beta1 - 0.8.7-SNAPSHOT - grpc-google-cloud-domains-v1beta1 - GRPC library for google-cloud-domains - - com.google.cloud - google-cloud-domains-parent - 1.0.7-SNAPSHOT - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-cloud-domains-v1beta1 - - - com.google.guava - guava - - - com.google.api.grpc - proto-google-common-protos - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/grpc-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DomainsGrpc.java b/grpc-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DomainsGrpc.java deleted file mode 100644 index be75f90e..00000000 --- a/grpc-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DomainsGrpc.java +++ /dev/null @@ -1,2284 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.domains.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The Cloud Domains API enables management and configuration of domain names.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/domains/v1beta1/domains.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DomainsGrpc { - - private DomainsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.domains.v1beta1.Domains"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.SearchDomainsRequest, - com.google.cloud.domains.v1beta1.SearchDomainsResponse> - getSearchDomainsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchDomains", - requestType = com.google.cloud.domains.v1beta1.SearchDomainsRequest.class, - responseType = com.google.cloud.domains.v1beta1.SearchDomainsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.SearchDomainsRequest, - com.google.cloud.domains.v1beta1.SearchDomainsResponse> - getSearchDomainsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.SearchDomainsRequest, - com.google.cloud.domains.v1beta1.SearchDomainsResponse> - getSearchDomainsMethod; - if ((getSearchDomainsMethod = DomainsGrpc.getSearchDomainsMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getSearchDomainsMethod = DomainsGrpc.getSearchDomainsMethod) == null) { - DomainsGrpc.getSearchDomainsMethod = - getSearchDomainsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchDomains")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.SearchDomainsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.SearchDomainsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("SearchDomains")) - .build(); - } - } - } - return getSearchDomainsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest, - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse> - getRetrieveRegisterParametersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RetrieveRegisterParameters", - requestType = com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest.class, - responseType = com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest, - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse> - getRetrieveRegisterParametersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest, - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse> - getRetrieveRegisterParametersMethod; - if ((getRetrieveRegisterParametersMethod = DomainsGrpc.getRetrieveRegisterParametersMethod) - == null) { - synchronized (DomainsGrpc.class) { - if ((getRetrieveRegisterParametersMethod = DomainsGrpc.getRetrieveRegisterParametersMethod) - == null) { - DomainsGrpc.getRetrieveRegisterParametersMethod = - getRetrieveRegisterParametersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RetrieveRegisterParameters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("RetrieveRegisterParameters")) - .build(); - } - } - } - return getRetrieveRegisterParametersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.RegisterDomainRequest, com.google.longrunning.Operation> - getRegisterDomainMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RegisterDomain", - requestType = com.google.cloud.domains.v1beta1.RegisterDomainRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.RegisterDomainRequest, com.google.longrunning.Operation> - getRegisterDomainMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.RegisterDomainRequest, - com.google.longrunning.Operation> - getRegisterDomainMethod; - if ((getRegisterDomainMethod = DomainsGrpc.getRegisterDomainMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getRegisterDomainMethod = DomainsGrpc.getRegisterDomainMethod) == null) { - DomainsGrpc.getRegisterDomainMethod = - getRegisterDomainMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegisterDomain")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.RegisterDomainRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("RegisterDomain")) - .build(); - } - } - } - return getRegisterDomainMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest, - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse> - getRetrieveTransferParametersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RetrieveTransferParameters", - requestType = com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest.class, - responseType = com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest, - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse> - getRetrieveTransferParametersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest, - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse> - getRetrieveTransferParametersMethod; - if ((getRetrieveTransferParametersMethod = DomainsGrpc.getRetrieveTransferParametersMethod) - == null) { - synchronized (DomainsGrpc.class) { - if ((getRetrieveTransferParametersMethod = DomainsGrpc.getRetrieveTransferParametersMethod) - == null) { - DomainsGrpc.getRetrieveTransferParametersMethod = - getRetrieveTransferParametersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RetrieveTransferParameters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("RetrieveTransferParameters")) - .build(); - } - } - } - return getRetrieveTransferParametersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.TransferDomainRequest, com.google.longrunning.Operation> - getTransferDomainMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TransferDomain", - requestType = com.google.cloud.domains.v1beta1.TransferDomainRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.TransferDomainRequest, com.google.longrunning.Operation> - getTransferDomainMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.TransferDomainRequest, - com.google.longrunning.Operation> - getTransferDomainMethod; - if ((getTransferDomainMethod = DomainsGrpc.getTransferDomainMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getTransferDomainMethod = DomainsGrpc.getTransferDomainMethod) == null) { - DomainsGrpc.getTransferDomainMethod = - getTransferDomainMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TransferDomain")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.TransferDomainRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("TransferDomain")) - .build(); - } - } - } - return getTransferDomainMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ListRegistrationsRequest, - com.google.cloud.domains.v1beta1.ListRegistrationsResponse> - getListRegistrationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRegistrations", - requestType = com.google.cloud.domains.v1beta1.ListRegistrationsRequest.class, - responseType = com.google.cloud.domains.v1beta1.ListRegistrationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ListRegistrationsRequest, - com.google.cloud.domains.v1beta1.ListRegistrationsResponse> - getListRegistrationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ListRegistrationsRequest, - com.google.cloud.domains.v1beta1.ListRegistrationsResponse> - getListRegistrationsMethod; - if ((getListRegistrationsMethod = DomainsGrpc.getListRegistrationsMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getListRegistrationsMethod = DomainsGrpc.getListRegistrationsMethod) == null) { - DomainsGrpc.getListRegistrationsMethod = - getListRegistrationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRegistrations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.ListRegistrationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.ListRegistrationsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("ListRegistrations")) - .build(); - } - } - } - return getListRegistrationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.GetRegistrationRequest, - com.google.cloud.domains.v1beta1.Registration> - getGetRegistrationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRegistration", - requestType = com.google.cloud.domains.v1beta1.GetRegistrationRequest.class, - responseType = com.google.cloud.domains.v1beta1.Registration.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.GetRegistrationRequest, - com.google.cloud.domains.v1beta1.Registration> - getGetRegistrationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.GetRegistrationRequest, - com.google.cloud.domains.v1beta1.Registration> - getGetRegistrationMethod; - if ((getGetRegistrationMethod = DomainsGrpc.getGetRegistrationMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getGetRegistrationMethod = DomainsGrpc.getGetRegistrationMethod) == null) { - DomainsGrpc.getGetRegistrationMethod = - getGetRegistrationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRegistration")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.GetRegistrationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.Registration.getDefaultInstance())) - .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("GetRegistration")) - .build(); - } - } - } - return getGetRegistrationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.UpdateRegistrationRequest, - com.google.longrunning.Operation> - getUpdateRegistrationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateRegistration", - requestType = com.google.cloud.domains.v1beta1.UpdateRegistrationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.UpdateRegistrationRequest, - com.google.longrunning.Operation> - getUpdateRegistrationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.UpdateRegistrationRequest, - com.google.longrunning.Operation> - getUpdateRegistrationMethod; - if ((getUpdateRegistrationMethod = DomainsGrpc.getUpdateRegistrationMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getUpdateRegistrationMethod = DomainsGrpc.getUpdateRegistrationMethod) == null) { - DomainsGrpc.getUpdateRegistrationMethod = - getUpdateRegistrationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRegistration")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.UpdateRegistrationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("UpdateRegistration")) - .build(); - } - } - } - return getUpdateRegistrationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest, - com.google.longrunning.Operation> - getConfigureManagementSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConfigureManagementSettings", - requestType = com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest, - com.google.longrunning.Operation> - getConfigureManagementSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest, - com.google.longrunning.Operation> - getConfigureManagementSettingsMethod; - if ((getConfigureManagementSettingsMethod = DomainsGrpc.getConfigureManagementSettingsMethod) - == null) { - synchronized (DomainsGrpc.class) { - if ((getConfigureManagementSettingsMethod = - DomainsGrpc.getConfigureManagementSettingsMethod) - == null) { - DomainsGrpc.getConfigureManagementSettingsMethod = - getConfigureManagementSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ConfigureManagementSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("ConfigureManagementSettings")) - .build(); - } - } - } - return getConfigureManagementSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest, - com.google.longrunning.Operation> - getConfigureDnsSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConfigureDnsSettings", - requestType = com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest, - com.google.longrunning.Operation> - getConfigureDnsSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest, - com.google.longrunning.Operation> - getConfigureDnsSettingsMethod; - if ((getConfigureDnsSettingsMethod = DomainsGrpc.getConfigureDnsSettingsMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getConfigureDnsSettingsMethod = DomainsGrpc.getConfigureDnsSettingsMethod) == null) { - DomainsGrpc.getConfigureDnsSettingsMethod = - getConfigureDnsSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ConfigureDnsSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("ConfigureDnsSettings")) - .build(); - } - } - } - return getConfigureDnsSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest, - com.google.longrunning.Operation> - getConfigureContactSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConfigureContactSettings", - requestType = com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest, - com.google.longrunning.Operation> - getConfigureContactSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest, - com.google.longrunning.Operation> - getConfigureContactSettingsMethod; - if ((getConfigureContactSettingsMethod = DomainsGrpc.getConfigureContactSettingsMethod) - == null) { - synchronized (DomainsGrpc.class) { - if ((getConfigureContactSettingsMethod = DomainsGrpc.getConfigureContactSettingsMethod) - == null) { - DomainsGrpc.getConfigureContactSettingsMethod = - getConfigureContactSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ConfigureContactSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("ConfigureContactSettings")) - .build(); - } - } - } - return getConfigureContactSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ExportRegistrationRequest, - com.google.longrunning.Operation> - getExportRegistrationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportRegistration", - requestType = com.google.cloud.domains.v1beta1.ExportRegistrationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ExportRegistrationRequest, - com.google.longrunning.Operation> - getExportRegistrationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ExportRegistrationRequest, - com.google.longrunning.Operation> - getExportRegistrationMethod; - if ((getExportRegistrationMethod = DomainsGrpc.getExportRegistrationMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getExportRegistrationMethod = DomainsGrpc.getExportRegistrationMethod) == null) { - DomainsGrpc.getExportRegistrationMethod = - getExportRegistrationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportRegistration")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.ExportRegistrationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("ExportRegistration")) - .build(); - } - } - } - return getExportRegistrationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.DeleteRegistrationRequest, - com.google.longrunning.Operation> - getDeleteRegistrationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRegistration", - requestType = com.google.cloud.domains.v1beta1.DeleteRegistrationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.DeleteRegistrationRequest, - com.google.longrunning.Operation> - getDeleteRegistrationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.DeleteRegistrationRequest, - com.google.longrunning.Operation> - getDeleteRegistrationMethod; - if ((getDeleteRegistrationMethod = DomainsGrpc.getDeleteRegistrationMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getDeleteRegistrationMethod = DomainsGrpc.getDeleteRegistrationMethod) == null) { - DomainsGrpc.getDeleteRegistrationMethod = - getDeleteRegistrationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRegistration")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.DeleteRegistrationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("DeleteRegistration")) - .build(); - } - } - } - return getDeleteRegistrationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest, - com.google.cloud.domains.v1beta1.AuthorizationCode> - getRetrieveAuthorizationCodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RetrieveAuthorizationCode", - requestType = com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest.class, - responseType = com.google.cloud.domains.v1beta1.AuthorizationCode.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest, - com.google.cloud.domains.v1beta1.AuthorizationCode> - getRetrieveAuthorizationCodeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest, - com.google.cloud.domains.v1beta1.AuthorizationCode> - getRetrieveAuthorizationCodeMethod; - if ((getRetrieveAuthorizationCodeMethod = DomainsGrpc.getRetrieveAuthorizationCodeMethod) - == null) { - synchronized (DomainsGrpc.class) { - if ((getRetrieveAuthorizationCodeMethod = DomainsGrpc.getRetrieveAuthorizationCodeMethod) - == null) { - DomainsGrpc.getRetrieveAuthorizationCodeMethod = - getRetrieveAuthorizationCodeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RetrieveAuthorizationCode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.AuthorizationCode - .getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("RetrieveAuthorizationCode")) - .build(); - } - } - } - return getRetrieveAuthorizationCodeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest, - com.google.cloud.domains.v1beta1.AuthorizationCode> - getResetAuthorizationCodeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResetAuthorizationCode", - requestType = com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest.class, - responseType = com.google.cloud.domains.v1beta1.AuthorizationCode.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest, - com.google.cloud.domains.v1beta1.AuthorizationCode> - getResetAuthorizationCodeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest, - com.google.cloud.domains.v1beta1.AuthorizationCode> - getResetAuthorizationCodeMethod; - if ((getResetAuthorizationCodeMethod = DomainsGrpc.getResetAuthorizationCodeMethod) == null) { - synchronized (DomainsGrpc.class) { - if ((getResetAuthorizationCodeMethod = DomainsGrpc.getResetAuthorizationCodeMethod) - == null) { - DomainsGrpc.getResetAuthorizationCodeMethod = - getResetAuthorizationCodeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ResetAuthorizationCode")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.domains.v1beta1.AuthorizationCode - .getDefaultInstance())) - .setSchemaDescriptor( - new DomainsMethodDescriptorSupplier("ResetAuthorizationCode")) - .build(); - } - } - } - return getResetAuthorizationCodeMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DomainsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DomainsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsStub(channel, callOptions); - } - }; - return DomainsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DomainsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DomainsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsBlockingStub(channel, callOptions); - } - }; - return DomainsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DomainsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DomainsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsFutureStub(channel, callOptions); - } - }; - return DomainsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The Cloud Domains API enables management and configuration of domain names.
-   * 
- */ - public abstract static class DomainsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Searches for available domain names similar to the provided query.
-     * Availability results from this method are approximate; call
-     * `RetrieveRegisterParameters` on a domain before registering to confirm
-     * availability.
-     * 
- */ - public void searchDomains( - com.google.cloud.domains.v1beta1.SearchDomainsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchDomainsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets parameters needed to register a new domain name, including price and
-     * up-to-date availability. Use the returned values to call `RegisterDomain`.
-     * 
- */ - public void retrieveRegisterParameters( - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRetrieveRegisterParametersMethod(), responseObserver); - } - - /** - * - * - *
-     * Registers a new domain name and creates a corresponding `Registration`
-     * resource.
-     * Call `RetrieveRegisterParameters` first to check availability of the domain
-     * name and determine parameters like price that are needed to build a call to
-     * this method.
-     * A successful call creates a `Registration` resource in state
-     * `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
-     * minutes, indicating that the domain was successfully registered. If the
-     * resource ends up in state `REGISTRATION_FAILED`, it indicates that the
-     * domain was not registered successfully, and you can safely delete the
-     * resource and retry registration.
-     * 
- */ - public void registerDomain( - com.google.cloud.domains.v1beta1.RegisterDomainRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRegisterDomainMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets parameters needed to transfer a domain name from another registrar to
-     * Cloud Domains. For domains managed by Google Domains, transferring to Cloud
-     * Domains is not supported.
-     * Use the returned values to call `TransferDomain`.
-     * 
- */ - public void retrieveTransferParameters( - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRetrieveTransferParametersMethod(), responseObserver); - } - - /** - * - * - *
-     * Transfers a domain name from another registrar to Cloud Domains.  For
-     * domains managed by Google Domains, transferring to Cloud Domains is not
-     * supported.
-     * Before calling this method, go to the domain's current registrar to unlock
-     * the domain for transfer and retrieve the domain's transfer authorization
-     * code. Then call `RetrieveTransferParameters` to confirm that the domain is
-     * unlocked and to get values needed to build a call to this method.
-     * A successful call creates a `Registration` resource in state
-     * `TRANSFER_PENDING`. It can take several days to complete the transfer
-     * process. The registrant can often speed up this process by approving the
-     * transfer through the current registrar, either by clicking a link in an
-     * email from the registrar or by visiting the registrar's website.
-     * A few minutes after transfer approval, the resource transitions to state
-     * `ACTIVE`, indicating that the transfer was successful. If the transfer is
-     * rejected or the request expires without being approved, the resource can
-     * end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete
-     * the resource and retry the transfer.
-     * 
- */ - public void transferDomain( - com.google.cloud.domains.v1beta1.TransferDomainRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTransferDomainMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the `Registration` resources in a project.
-     * 
- */ - public void listRegistrations( - com.google.cloud.domains.v1beta1.ListRegistrationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListRegistrationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the details of a `Registration` resource.
-     * 
- */ - public void getRegistration( - com.google.cloud.domains.v1beta1.GetRegistrationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetRegistrationMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates select fields of a `Registration` resource, notably `labels`. To
-     * update other fields, use the appropriate custom update method:
-     * * To update management settings, see `ConfigureManagementSettings`
-     * * To update DNS configuration, see `ConfigureDnsSettings`
-     * * To update contact information, see `ConfigureContactSettings`
-     * 
- */ - public void updateRegistration( - com.google.cloud.domains.v1beta1.UpdateRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateRegistrationMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s management settings.
-     * 
- */ - public void configureManagementSettings( - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getConfigureManagementSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s DNS settings.
-     * 
- */ - public void configureDnsSettings( - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getConfigureDnsSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s contact settings. Some changes require
-     * confirmation by the domain's registrant contact .
-     * 
- */ - public void configureContactSettings( - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getConfigureContactSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Exports a `Registration` resource, such that it is no longer managed by
-     * Cloud Domains.
-     * When an active domain is successfully exported, you can continue to use the
-     * domain in [Google Domains](https://domains.google/) until it expires. The
-     * calling user becomes the domain's sole owner in Google Domains, and
-     * permissions for the domain are subsequently managed there. The domain does
-     * not renew automatically unless the new owner sets up billing in Google
-     * Domains.
-     * 
- */ - public void exportRegistration( - com.google.cloud.domains.v1beta1.ExportRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getExportRegistrationMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a `Registration` resource.
-     * This method works on any `Registration` resource using [Subscription or
-     * Commitment billing](/domains/pricing#billing-models), provided that the
-     * resource was created at least 1 day in the past.
-     * For `Registration` resources using
-     * [Monthly billing](/domains/pricing#billing-models), this method works if:
-     * * `state` is `EXPORTED` with `expire_time` in the past
-     * * `state` is `REGISTRATION_FAILED`
-     * * `state` is `TRANSFER_FAILED`
-     * When an active registration is successfully deleted, you can continue to
-     * use the domain in [Google Domains](https://domains.google/) until it
-     * expires. The calling user becomes the domain's sole owner in Google
-     * Domains, and permissions for the domain are subsequently managed there. The
-     * domain does not renew automatically unless the new owner sets up billing in
-     * Google Domains.
-     * 
- */ - public void deleteRegistration( - com.google.cloud.domains.v1beta1.DeleteRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteRegistrationMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the authorization code of the `Registration` for the purpose of
-     * transferring the domain to another registrar.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public void retrieveAuthorizationCode( - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRetrieveAuthorizationCodeMethod(), responseObserver); - } - - /** - * - * - *
-     * Resets the authorization code of the `Registration` to a new random string.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public void resetAuthorizationCode( - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResetAuthorizationCodeMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getSearchDomainsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1beta1.SearchDomainsRequest, - com.google.cloud.domains.v1beta1.SearchDomainsResponse>( - this, METHODID_SEARCH_DOMAINS))) - .addMethod( - getRetrieveRegisterParametersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest, - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse>( - this, METHODID_RETRIEVE_REGISTER_PARAMETERS))) - .addMethod( - getRegisterDomainMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1beta1.RegisterDomainRequest, - com.google.longrunning.Operation>(this, METHODID_REGISTER_DOMAIN))) - .addMethod( - getRetrieveTransferParametersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest, - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse>( - this, METHODID_RETRIEVE_TRANSFER_PARAMETERS))) - .addMethod( - getTransferDomainMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1beta1.TransferDomainRequest, - com.google.longrunning.Operation>(this, METHODID_TRANSFER_DOMAIN))) - .addMethod( - getListRegistrationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1beta1.ListRegistrationsRequest, - com.google.cloud.domains.v1beta1.ListRegistrationsResponse>( - this, METHODID_LIST_REGISTRATIONS))) - .addMethod( - getGetRegistrationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1beta1.GetRegistrationRequest, - com.google.cloud.domains.v1beta1.Registration>( - this, METHODID_GET_REGISTRATION))) - .addMethod( - getUpdateRegistrationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1beta1.UpdateRegistrationRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_REGISTRATION))) - .addMethod( - getConfigureManagementSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest, - com.google.longrunning.Operation>( - this, METHODID_CONFIGURE_MANAGEMENT_SETTINGS))) - .addMethod( - getConfigureDnsSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest, - com.google.longrunning.Operation>(this, METHODID_CONFIGURE_DNS_SETTINGS))) - .addMethod( - getConfigureContactSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest, - com.google.longrunning.Operation>(this, METHODID_CONFIGURE_CONTACT_SETTINGS))) - .addMethod( - getExportRegistrationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1beta1.ExportRegistrationRequest, - com.google.longrunning.Operation>(this, METHODID_EXPORT_REGISTRATION))) - .addMethod( - getDeleteRegistrationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1beta1.DeleteRegistrationRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_REGISTRATION))) - .addMethod( - getRetrieveAuthorizationCodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest, - com.google.cloud.domains.v1beta1.AuthorizationCode>( - this, METHODID_RETRIEVE_AUTHORIZATION_CODE))) - .addMethod( - getResetAuthorizationCodeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest, - com.google.cloud.domains.v1beta1.AuthorizationCode>( - this, METHODID_RESET_AUTHORIZATION_CODE))) - .build(); - } - } - - /** - * - * - *
-   * The Cloud Domains API enables management and configuration of domain names.
-   * 
- */ - public static final class DomainsStub extends io.grpc.stub.AbstractAsyncStub { - private DomainsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DomainsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsStub(channel, callOptions); - } - - /** - * - * - *
-     * Searches for available domain names similar to the provided query.
-     * Availability results from this method are approximate; call
-     * `RetrieveRegisterParameters` on a domain before registering to confirm
-     * availability.
-     * 
- */ - public void searchDomains( - com.google.cloud.domains.v1beta1.SearchDomainsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchDomainsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets parameters needed to register a new domain name, including price and
-     * up-to-date availability. Use the returned values to call `RegisterDomain`.
-     * 
- */ - public void retrieveRegisterParameters( - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRetrieveRegisterParametersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Registers a new domain name and creates a corresponding `Registration`
-     * resource.
-     * Call `RetrieveRegisterParameters` first to check availability of the domain
-     * name and determine parameters like price that are needed to build a call to
-     * this method.
-     * A successful call creates a `Registration` resource in state
-     * `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
-     * minutes, indicating that the domain was successfully registered. If the
-     * resource ends up in state `REGISTRATION_FAILED`, it indicates that the
-     * domain was not registered successfully, and you can safely delete the
-     * resource and retry registration.
-     * 
- */ - public void registerDomain( - com.google.cloud.domains.v1beta1.RegisterDomainRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRegisterDomainMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets parameters needed to transfer a domain name from another registrar to
-     * Cloud Domains. For domains managed by Google Domains, transferring to Cloud
-     * Domains is not supported.
-     * Use the returned values to call `TransferDomain`.
-     * 
- */ - public void retrieveTransferParameters( - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRetrieveTransferParametersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Transfers a domain name from another registrar to Cloud Domains.  For
-     * domains managed by Google Domains, transferring to Cloud Domains is not
-     * supported.
-     * Before calling this method, go to the domain's current registrar to unlock
-     * the domain for transfer and retrieve the domain's transfer authorization
-     * code. Then call `RetrieveTransferParameters` to confirm that the domain is
-     * unlocked and to get values needed to build a call to this method.
-     * A successful call creates a `Registration` resource in state
-     * `TRANSFER_PENDING`. It can take several days to complete the transfer
-     * process. The registrant can often speed up this process by approving the
-     * transfer through the current registrar, either by clicking a link in an
-     * email from the registrar or by visiting the registrar's website.
-     * A few minutes after transfer approval, the resource transitions to state
-     * `ACTIVE`, indicating that the transfer was successful. If the transfer is
-     * rejected or the request expires without being approved, the resource can
-     * end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete
-     * the resource and retry the transfer.
-     * 
- */ - public void transferDomain( - com.google.cloud.domains.v1beta1.TransferDomainRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTransferDomainMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the `Registration` resources in a project.
-     * 
- */ - public void listRegistrations( - com.google.cloud.domains.v1beta1.ListRegistrationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRegistrationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the details of a `Registration` resource.
-     * 
- */ - public void getRegistration( - com.google.cloud.domains.v1beta1.GetRegistrationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRegistrationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates select fields of a `Registration` resource, notably `labels`. To
-     * update other fields, use the appropriate custom update method:
-     * * To update management settings, see `ConfigureManagementSettings`
-     * * To update DNS configuration, see `ConfigureDnsSettings`
-     * * To update contact information, see `ConfigureContactSettings`
-     * 
- */ - public void updateRegistration( - com.google.cloud.domains.v1beta1.UpdateRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateRegistrationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s management settings.
-     * 
- */ - public void configureManagementSettings( - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getConfigureManagementSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s DNS settings.
-     * 
- */ - public void configureDnsSettings( - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getConfigureDnsSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a `Registration`'s contact settings. Some changes require
-     * confirmation by the domain's registrant contact .
-     * 
- */ - public void configureContactSettings( - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getConfigureContactSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Exports a `Registration` resource, such that it is no longer managed by
-     * Cloud Domains.
-     * When an active domain is successfully exported, you can continue to use the
-     * domain in [Google Domains](https://domains.google/) until it expires. The
-     * calling user becomes the domain's sole owner in Google Domains, and
-     * permissions for the domain are subsequently managed there. The domain does
-     * not renew automatically unless the new owner sets up billing in Google
-     * Domains.
-     * 
- */ - public void exportRegistration( - com.google.cloud.domains.v1beta1.ExportRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportRegistrationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a `Registration` resource.
-     * This method works on any `Registration` resource using [Subscription or
-     * Commitment billing](/domains/pricing#billing-models), provided that the
-     * resource was created at least 1 day in the past.
-     * For `Registration` resources using
-     * [Monthly billing](/domains/pricing#billing-models), this method works if:
-     * * `state` is `EXPORTED` with `expire_time` in the past
-     * * `state` is `REGISTRATION_FAILED`
-     * * `state` is `TRANSFER_FAILED`
-     * When an active registration is successfully deleted, you can continue to
-     * use the domain in [Google Domains](https://domains.google/) until it
-     * expires. The calling user becomes the domain's sole owner in Google
-     * Domains, and permissions for the domain are subsequently managed there. The
-     * domain does not renew automatically unless the new owner sets up billing in
-     * Google Domains.
-     * 
- */ - public void deleteRegistration( - com.google.cloud.domains.v1beta1.DeleteRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRegistrationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the authorization code of the `Registration` for the purpose of
-     * transferring the domain to another registrar.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public void retrieveAuthorizationCode( - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRetrieveAuthorizationCodeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Resets the authorization code of the `Registration` to a new random string.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public void resetAuthorizationCode( - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResetAuthorizationCodeMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The Cloud Domains API enables management and configuration of domain names.
-   * 
- */ - public static final class DomainsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DomainsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DomainsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Searches for available domain names similar to the provided query.
-     * Availability results from this method are approximate; call
-     * `RetrieveRegisterParameters` on a domain before registering to confirm
-     * availability.
-     * 
- */ - public com.google.cloud.domains.v1beta1.SearchDomainsResponse searchDomains( - com.google.cloud.domains.v1beta1.SearchDomainsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchDomainsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets parameters needed to register a new domain name, including price and
-     * up-to-date availability. Use the returned values to call `RegisterDomain`.
-     * 
- */ - public com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse - retrieveRegisterParameters( - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRetrieveRegisterParametersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Registers a new domain name and creates a corresponding `Registration`
-     * resource.
-     * Call `RetrieveRegisterParameters` first to check availability of the domain
-     * name and determine parameters like price that are needed to build a call to
-     * this method.
-     * A successful call creates a `Registration` resource in state
-     * `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
-     * minutes, indicating that the domain was successfully registered. If the
-     * resource ends up in state `REGISTRATION_FAILED`, it indicates that the
-     * domain was not registered successfully, and you can safely delete the
-     * resource and retry registration.
-     * 
- */ - public com.google.longrunning.Operation registerDomain( - com.google.cloud.domains.v1beta1.RegisterDomainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRegisterDomainMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets parameters needed to transfer a domain name from another registrar to
-     * Cloud Domains. For domains managed by Google Domains, transferring to Cloud
-     * Domains is not supported.
-     * Use the returned values to call `TransferDomain`.
-     * 
- */ - public com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse - retrieveTransferParameters( - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRetrieveTransferParametersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Transfers a domain name from another registrar to Cloud Domains.  For
-     * domains managed by Google Domains, transferring to Cloud Domains is not
-     * supported.
-     * Before calling this method, go to the domain's current registrar to unlock
-     * the domain for transfer and retrieve the domain's transfer authorization
-     * code. Then call `RetrieveTransferParameters` to confirm that the domain is
-     * unlocked and to get values needed to build a call to this method.
-     * A successful call creates a `Registration` resource in state
-     * `TRANSFER_PENDING`. It can take several days to complete the transfer
-     * process. The registrant can often speed up this process by approving the
-     * transfer through the current registrar, either by clicking a link in an
-     * email from the registrar or by visiting the registrar's website.
-     * A few minutes after transfer approval, the resource transitions to state
-     * `ACTIVE`, indicating that the transfer was successful. If the transfer is
-     * rejected or the request expires without being approved, the resource can
-     * end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete
-     * the resource and retry the transfer.
-     * 
- */ - public com.google.longrunning.Operation transferDomain( - com.google.cloud.domains.v1beta1.TransferDomainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTransferDomainMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the `Registration` resources in a project.
-     * 
- */ - public com.google.cloud.domains.v1beta1.ListRegistrationsResponse listRegistrations( - com.google.cloud.domains.v1beta1.ListRegistrationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRegistrationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the details of a `Registration` resource.
-     * 
- */ - public com.google.cloud.domains.v1beta1.Registration getRegistration( - com.google.cloud.domains.v1beta1.GetRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRegistrationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates select fields of a `Registration` resource, notably `labels`. To
-     * update other fields, use the appropriate custom update method:
-     * * To update management settings, see `ConfigureManagementSettings`
-     * * To update DNS configuration, see `ConfigureDnsSettings`
-     * * To update contact information, see `ConfigureContactSettings`
-     * 
- */ - public com.google.longrunning.Operation updateRegistration( - com.google.cloud.domains.v1beta1.UpdateRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRegistrationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s management settings.
-     * 
- */ - public com.google.longrunning.Operation configureManagementSettings( - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getConfigureManagementSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s DNS settings.
-     * 
- */ - public com.google.longrunning.Operation configureDnsSettings( - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getConfigureDnsSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s contact settings. Some changes require
-     * confirmation by the domain's registrant contact .
-     * 
- */ - public com.google.longrunning.Operation configureContactSettings( - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getConfigureContactSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Exports a `Registration` resource, such that it is no longer managed by
-     * Cloud Domains.
-     * When an active domain is successfully exported, you can continue to use the
-     * domain in [Google Domains](https://domains.google/) until it expires. The
-     * calling user becomes the domain's sole owner in Google Domains, and
-     * permissions for the domain are subsequently managed there. The domain does
-     * not renew automatically unless the new owner sets up billing in Google
-     * Domains.
-     * 
- */ - public com.google.longrunning.Operation exportRegistration( - com.google.cloud.domains.v1beta1.ExportRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportRegistrationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a `Registration` resource.
-     * This method works on any `Registration` resource using [Subscription or
-     * Commitment billing](/domains/pricing#billing-models), provided that the
-     * resource was created at least 1 day in the past.
-     * For `Registration` resources using
-     * [Monthly billing](/domains/pricing#billing-models), this method works if:
-     * * `state` is `EXPORTED` with `expire_time` in the past
-     * * `state` is `REGISTRATION_FAILED`
-     * * `state` is `TRANSFER_FAILED`
-     * When an active registration is successfully deleted, you can continue to
-     * use the domain in [Google Domains](https://domains.google/) until it
-     * expires. The calling user becomes the domain's sole owner in Google
-     * Domains, and permissions for the domain are subsequently managed there. The
-     * domain does not renew automatically unless the new owner sets up billing in
-     * Google Domains.
-     * 
- */ - public com.google.longrunning.Operation deleteRegistration( - com.google.cloud.domains.v1beta1.DeleteRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRegistrationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the authorization code of the `Registration` for the purpose of
-     * transferring the domain to another registrar.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public com.google.cloud.domains.v1beta1.AuthorizationCode retrieveAuthorizationCode( - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRetrieveAuthorizationCodeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Resets the authorization code of the `Registration` to a new random string.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public com.google.cloud.domains.v1beta1.AuthorizationCode resetAuthorizationCode( - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResetAuthorizationCodeMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The Cloud Domains API enables management and configuration of domain names.
-   * 
- */ - public static final class DomainsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DomainsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DomainsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DomainsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Searches for available domain names similar to the provided query.
-     * Availability results from this method are approximate; call
-     * `RetrieveRegisterParameters` on a domain before registering to confirm
-     * availability.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1beta1.SearchDomainsResponse> - searchDomains(com.google.cloud.domains.v1beta1.SearchDomainsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchDomainsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets parameters needed to register a new domain name, including price and
-     * up-to-date availability. Use the returned values to call `RegisterDomain`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse> - retrieveRegisterParameters( - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRetrieveRegisterParametersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Registers a new domain name and creates a corresponding `Registration`
-     * resource.
-     * Call `RetrieveRegisterParameters` first to check availability of the domain
-     * name and determine parameters like price that are needed to build a call to
-     * this method.
-     * A successful call creates a `Registration` resource in state
-     * `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
-     * minutes, indicating that the domain was successfully registered. If the
-     * resource ends up in state `REGISTRATION_FAILED`, it indicates that the
-     * domain was not registered successfully, and you can safely delete the
-     * resource and retry registration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - registerDomain(com.google.cloud.domains.v1beta1.RegisterDomainRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRegisterDomainMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets parameters needed to transfer a domain name from another registrar to
-     * Cloud Domains. For domains managed by Google Domains, transferring to Cloud
-     * Domains is not supported.
-     * Use the returned values to call `TransferDomain`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse> - retrieveTransferParameters( - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRetrieveTransferParametersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Transfers a domain name from another registrar to Cloud Domains.  For
-     * domains managed by Google Domains, transferring to Cloud Domains is not
-     * supported.
-     * Before calling this method, go to the domain's current registrar to unlock
-     * the domain for transfer and retrieve the domain's transfer authorization
-     * code. Then call `RetrieveTransferParameters` to confirm that the domain is
-     * unlocked and to get values needed to build a call to this method.
-     * A successful call creates a `Registration` resource in state
-     * `TRANSFER_PENDING`. It can take several days to complete the transfer
-     * process. The registrant can often speed up this process by approving the
-     * transfer through the current registrar, either by clicking a link in an
-     * email from the registrar or by visiting the registrar's website.
-     * A few minutes after transfer approval, the resource transitions to state
-     * `ACTIVE`, indicating that the transfer was successful. If the transfer is
-     * rejected or the request expires without being approved, the resource can
-     * end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete
-     * the resource and retry the transfer.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - transferDomain(com.google.cloud.domains.v1beta1.TransferDomainRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTransferDomainMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the `Registration` resources in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1beta1.ListRegistrationsResponse> - listRegistrations(com.google.cloud.domains.v1beta1.ListRegistrationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRegistrationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the details of a `Registration` resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1beta1.Registration> - getRegistration(com.google.cloud.domains.v1beta1.GetRegistrationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRegistrationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates select fields of a `Registration` resource, notably `labels`. To
-     * update other fields, use the appropriate custom update method:
-     * * To update management settings, see `ConfigureManagementSettings`
-     * * To update DNS configuration, see `ConfigureDnsSettings`
-     * * To update contact information, see `ConfigureContactSettings`
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateRegistration(com.google.cloud.domains.v1beta1.UpdateRegistrationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateRegistrationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s management settings.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - configureManagementSettings( - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getConfigureManagementSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s DNS settings.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - configureDnsSettings(com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getConfigureDnsSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a `Registration`'s contact settings. Some changes require
-     * confirmation by the domain's registrant contact .
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - configureContactSettings( - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getConfigureContactSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Exports a `Registration` resource, such that it is no longer managed by
-     * Cloud Domains.
-     * When an active domain is successfully exported, you can continue to use the
-     * domain in [Google Domains](https://domains.google/) until it expires. The
-     * calling user becomes the domain's sole owner in Google Domains, and
-     * permissions for the domain are subsequently managed there. The domain does
-     * not renew automatically unless the new owner sets up billing in Google
-     * Domains.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - exportRegistration(com.google.cloud.domains.v1beta1.ExportRegistrationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportRegistrationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a `Registration` resource.
-     * This method works on any `Registration` resource using [Subscription or
-     * Commitment billing](/domains/pricing#billing-models), provided that the
-     * resource was created at least 1 day in the past.
-     * For `Registration` resources using
-     * [Monthly billing](/domains/pricing#billing-models), this method works if:
-     * * `state` is `EXPORTED` with `expire_time` in the past
-     * * `state` is `REGISTRATION_FAILED`
-     * * `state` is `TRANSFER_FAILED`
-     * When an active registration is successfully deleted, you can continue to
-     * use the domain in [Google Domains](https://domains.google/) until it
-     * expires. The calling user becomes the domain's sole owner in Google
-     * Domains, and permissions for the domain are subsequently managed there. The
-     * domain does not renew automatically unless the new owner sets up billing in
-     * Google Domains.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteRegistration(com.google.cloud.domains.v1beta1.DeleteRegistrationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRegistrationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the authorization code of the `Registration` for the purpose of
-     * transferring the domain to another registrar.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1beta1.AuthorizationCode> - retrieveAuthorizationCode( - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRetrieveAuthorizationCodeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Resets the authorization code of the `Registration` to a new random string.
-     * You can call this method only after 60 days have elapsed since the initial
-     * domain registration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.domains.v1beta1.AuthorizationCode> - resetAuthorizationCode( - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResetAuthorizationCodeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_SEARCH_DOMAINS = 0; - private static final int METHODID_RETRIEVE_REGISTER_PARAMETERS = 1; - private static final int METHODID_REGISTER_DOMAIN = 2; - private static final int METHODID_RETRIEVE_TRANSFER_PARAMETERS = 3; - private static final int METHODID_TRANSFER_DOMAIN = 4; - private static final int METHODID_LIST_REGISTRATIONS = 5; - private static final int METHODID_GET_REGISTRATION = 6; - private static final int METHODID_UPDATE_REGISTRATION = 7; - private static final int METHODID_CONFIGURE_MANAGEMENT_SETTINGS = 8; - private static final int METHODID_CONFIGURE_DNS_SETTINGS = 9; - private static final int METHODID_CONFIGURE_CONTACT_SETTINGS = 10; - private static final int METHODID_EXPORT_REGISTRATION = 11; - private static final int METHODID_DELETE_REGISTRATION = 12; - private static final int METHODID_RETRIEVE_AUTHORIZATION_CODE = 13; - private static final int METHODID_RESET_AUTHORIZATION_CODE = 14; - - 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 DomainsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DomainsImplBase 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_SEARCH_DOMAINS: - serviceImpl.searchDomains( - (com.google.cloud.domains.v1beta1.SearchDomainsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RETRIEVE_REGISTER_PARAMETERS: - serviceImpl.retrieveRegisterParameters( - (com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse>) - responseObserver); - break; - case METHODID_REGISTER_DOMAIN: - serviceImpl.registerDomain( - (com.google.cloud.domains.v1beta1.RegisterDomainRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RETRIEVE_TRANSFER_PARAMETERS: - serviceImpl.retrieveTransferParameters( - (com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse>) - responseObserver); - break; - case METHODID_TRANSFER_DOMAIN: - serviceImpl.transferDomain( - (com.google.cloud.domains.v1beta1.TransferDomainRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_REGISTRATIONS: - serviceImpl.listRegistrations( - (com.google.cloud.domains.v1beta1.ListRegistrationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.domains.v1beta1.ListRegistrationsResponse>) - responseObserver); - break; - case METHODID_GET_REGISTRATION: - serviceImpl.getRegistration( - (com.google.cloud.domains.v1beta1.GetRegistrationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_REGISTRATION: - serviceImpl.updateRegistration( - (com.google.cloud.domains.v1beta1.UpdateRegistrationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONFIGURE_MANAGEMENT_SETTINGS: - serviceImpl.configureManagementSettings( - (com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONFIGURE_DNS_SETTINGS: - serviceImpl.configureDnsSettings( - (com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CONFIGURE_CONTACT_SETTINGS: - serviceImpl.configureContactSettings( - (com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EXPORT_REGISTRATION: - serviceImpl.exportRegistration( - (com.google.cloud.domains.v1beta1.ExportRegistrationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_REGISTRATION: - serviceImpl.deleteRegistration( - (com.google.cloud.domains.v1beta1.DeleteRegistrationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RETRIEVE_AUTHORIZATION_CODE: - serviceImpl.retrieveAuthorizationCode( - (com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RESET_AUTHORIZATION_CODE: - serviceImpl.resetAuthorizationCode( - (com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest) 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 DomainsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DomainsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Domains"); - } - } - - private static final class DomainsFileDescriptorSupplier extends DomainsBaseDescriptorSupplier { - DomainsFileDescriptorSupplier() {} - } - - private static final class DomainsMethodDescriptorSupplier extends DomainsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DomainsMethodDescriptorSupplier(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 (DomainsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DomainsFileDescriptorSupplier()) - .addMethod(getSearchDomainsMethod()) - .addMethod(getRetrieveRegisterParametersMethod()) - .addMethod(getRegisterDomainMethod()) - .addMethod(getRetrieveTransferParametersMethod()) - .addMethod(getTransferDomainMethod()) - .addMethod(getListRegistrationsMethod()) - .addMethod(getGetRegistrationMethod()) - .addMethod(getUpdateRegistrationMethod()) - .addMethod(getConfigureManagementSettingsMethod()) - .addMethod(getConfigureDnsSettingsMethod()) - .addMethod(getConfigureContactSettingsMethod()) - .addMethod(getExportRegistrationMethod()) - .addMethod(getDeleteRegistrationMethod()) - .addMethod(getRetrieveAuthorizationCodeMethod()) - .addMethod(getResetAuthorizationCodeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java.header b/java.header deleted file mode 100644 index d0970ba7..00000000 --- a/java.header +++ /dev/null @@ -1,15 +0,0 @@ -^/\*$ -^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)$ -^ \*$ -^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);$ -^ \* you may not use this file except in compliance with the License\.$ -^ \* You may obtain a copy of the License at$ -^ \*$ -^ \*[ ]+https?://www.apache.org/licenses/LICENSE-2\.0$ -^ \*$ -^ \* Unless required by applicable law or agreed to in writing, software$ -^ \* distributed under the License is distributed on an "AS IS" BASIS,$ -^ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.$ -^ \* See the License for the specific language governing permissions and$ -^ \* limitations under the License\.$ -^ \*/$ diff --git a/license-checks.xml b/license-checks.xml deleted file mode 100644 index 6597fced..00000000 --- a/license-checks.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - diff --git a/pom.xml b/pom.xml deleted file mode 100644 index e1305bb6..00000000 --- a/pom.xml +++ /dev/null @@ -1,204 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-domains-parent - pom - 1.0.7-SNAPSHOT - Google Cloud Domains Parent - https://github.com/googleapis/java-domains - - Java idiomatic client for Google Cloud Platform services. - - - - com.google.cloud - google-cloud-shared-config - 1.5.3 - - - - - chingor - Jeff Ching - chingor@google.com - Google - - Developer - - - - - Google LLC - - - scm:git:git@github.com:googleapis/java-domains.git - scm:git:git@github.com:googleapis/java-domains.git - https://github.com/googleapis/java-domains - HEAD - - - https://github.com/googleapis/java-domains/issues - GitHub Issues - - - - - Apache-2.0 - https://www.apache.org/licenses/LICENSE-2.0.txt - - - - - UTF-8 - UTF-8 - github - google-cloud-domains-parent - - - - - - com.google.cloud - google-cloud-domains - 1.0.7-SNAPSHOT - - - com.google.api.grpc - proto-google-cloud-domains-v1 - 1.0.7-SNAPSHOT - - - com.google.api.grpc - grpc-google-cloud-domains-v1 - 1.0.7-SNAPSHOT - - - com.google.api.grpc - proto-google-cloud-domains-v1alpha2 - 0.8.7-SNAPSHOT - - - com.google.api.grpc - grpc-google-cloud-domains-v1alpha2 - 0.8.7-SNAPSHOT - - - com.google.api.grpc - proto-google-cloud-domains-v1beta1 - 0.8.7-SNAPSHOT - - - com.google.api.grpc - grpc-google-cloud-domains-v1beta1 - 0.8.7-SNAPSHOT - - - - com.google.cloud - google-cloud-shared-dependencies - 3.0.4 - pom - import - - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - org.objenesis:objenesis - javax.annotation:javax.annotation-api - - - - - - - - - google-cloud-domains - grpc-google-cloud-domains-v1beta1 - grpc-google-cloud-domains-v1alpha2 - grpc-google-cloud-domains-v1 - proto-google-cloud-domains-v1beta1 - proto-google-cloud-domains-v1alpha2 - proto-google-cloud-domains-v1 - google-cloud-domains-bom - - - - - - org.apache.maven.plugins - maven-project-info-reports-plugin - 3.4.1 - - - - index - dependency-info - team - ci-management - issue-management - licenses - scm - dependency-management - distribution-management - summary - modules - - - - - true - ${site.installationModule} - jar - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.4.1 - - - html - - aggregate - javadoc - - - - - none - protected - true - ${project.build.directory}/javadoc - - - Test helpers packages - com.google.cloud.testing - - - SPI packages - com.google.cloud.spi* - - - - - https://grpc.io/grpc-java/javadoc/ - https://developers.google.com/protocol-buffers/docs/reference/java/ - https://googleapis.dev/java/google-auth-library/latest/ - https://googleapis.dev/java/gax/latest/ - https://googleapis.github.io/api-common-java/${google.api-common.version}/apidocs/ - - - - - - diff --git a/proto-google-cloud-domains-v1/clirr-ignored-differences.xml b/proto-google-cloud-domains-v1/clirr-ignored-differences.xml deleted file mode 100644 index f1bcc979..00000000 --- a/proto-google-cloud-domains-v1/clirr-ignored-differences.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - 7012 - com/google/cloud/domains/v1/*OrBuilder - * get*(*) - - - 7012 - com/google/cloud/domains/v1/*OrBuilder - boolean contains*(*) - - - 7012 - com/google/cloud/domains/v1/*OrBuilder - boolean has*(*) - - diff --git a/proto-google-cloud-domains-v1/pom.xml b/proto-google-cloud-domains-v1/pom.xml deleted file mode 100644 index 56d21471..00000000 --- a/proto-google-cloud-domains-v1/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-cloud-domains-v1 - 1.0.7-SNAPSHOT - proto-google-cloud-domains-v1 - Proto library for google-cloud-domains - - com.google.cloud - google-cloud-domains-parent - 1.0.7-SNAPSHOT - - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - com.google.api - api-common - - - com.google.guava - guava - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/AuthorizationCode.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/AuthorizationCode.java deleted file mode 100644 index 820d2233..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/AuthorizationCode.java +++ /dev/null @@ -1,621 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Defines an authorization code.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.AuthorizationCode} - */ -public final class AuthorizationCode extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.AuthorizationCode) - AuthorizationCodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuthorizationCode.newBuilder() to construct. - private AuthorizationCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AuthorizationCode() { - code_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AuthorizationCode(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_AuthorizationCode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_AuthorizationCode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.AuthorizationCode.class, - com.google.cloud.domains.v1.AuthorizationCode.Builder.class); - } - - public static final int CODE_FIELD_NUMBER = 1; - private volatile java.lang.Object code_; - /** - * - * - *
-   * The Authorization Code in ASCII. It can be used to transfer the domain
-   * to or from another registrar.
-   * 
- * - * string code = 1; - * - * @return The code. - */ - @java.lang.Override - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } - } - /** - * - * - *
-   * The Authorization Code in ASCII. It can be used to transfer the domain
-   * to or from another registrar.
-   * 
- * - * string code = 1; - * - * @return The bytes for code. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.AuthorizationCode)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.AuthorizationCode other = - (com.google.cloud.domains.v1.AuthorizationCode) obj; - - if (!getCode().equals(other.getCode())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + getCode().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.AuthorizationCode parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.AuthorizationCode parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.AuthorizationCode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.AuthorizationCode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.AuthorizationCode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.AuthorizationCode parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.AuthorizationCode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.AuthorizationCode parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.AuthorizationCode parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.AuthorizationCode parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.AuthorizationCode parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.AuthorizationCode parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1.AuthorizationCode prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Defines an authorization code.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.AuthorizationCode} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.AuthorizationCode) - com.google.cloud.domains.v1.AuthorizationCodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_AuthorizationCode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_AuthorizationCode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.AuthorizationCode.class, - com.google.cloud.domains.v1.AuthorizationCode.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.AuthorizationCode.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - code_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_AuthorizationCode_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.AuthorizationCode getDefaultInstanceForType() { - return com.google.cloud.domains.v1.AuthorizationCode.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.AuthorizationCode build() { - com.google.cloud.domains.v1.AuthorizationCode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.AuthorizationCode buildPartial() { - com.google.cloud.domains.v1.AuthorizationCode result = - new com.google.cloud.domains.v1.AuthorizationCode(this); - result.code_ = code_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.AuthorizationCode) { - return mergeFrom((com.google.cloud.domains.v1.AuthorizationCode) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.AuthorizationCode other) { - if (other == com.google.cloud.domains.v1.AuthorizationCode.getDefaultInstance()) return this; - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - code_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object code_ = ""; - /** - * - * - *
-     * The Authorization Code in ASCII. It can be used to transfer the domain
-     * to or from another registrar.
-     * 
- * - * string code = 1; - * - * @return The code. - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The Authorization Code in ASCII. It can be used to transfer the domain
-     * to or from another registrar.
-     * 
- * - * string code = 1; - * - * @return The bytes for code. - */ - public com.google.protobuf.ByteString getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The Authorization Code in ASCII. It can be used to transfer the domain
-     * to or from another registrar.
-     * 
- * - * string code = 1; - * - * @param value The code to set. - * @return This builder for chaining. - */ - public Builder setCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The Authorization Code in ASCII. It can be used to transfer the domain
-     * to or from another registrar.
-     * 
- * - * string code = 1; - * - * @return This builder for chaining. - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** - * - * - *
-     * The Authorization Code in ASCII. It can be used to transfer the domain
-     * to or from another registrar.
-     * 
- * - * string code = 1; - * - * @param value The bytes for code to set. - * @return This builder for chaining. - */ - public Builder setCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.AuthorizationCode) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.AuthorizationCode) - private static final com.google.cloud.domains.v1.AuthorizationCode DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.AuthorizationCode(); - } - - public static com.google.cloud.domains.v1.AuthorizationCode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthorizationCode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.AuthorizationCode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/AuthorizationCodeOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/AuthorizationCodeOrBuilder.java deleted file mode 100644 index f2893185..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/AuthorizationCodeOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface AuthorizationCodeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.AuthorizationCode) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The Authorization Code in ASCII. It can be used to transfer the domain
-   * to or from another registrar.
-   * 
- * - * string code = 1; - * - * @return The code. - */ - java.lang.String getCode(); - /** - * - * - *
-   * The Authorization Code in ASCII. It can be used to transfer the domain
-   * to or from another registrar.
-   * 
- * - * string code = 1; - * - * @return The bytes for code. - */ - com.google.protobuf.ByteString getCodeBytes(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureContactSettingsRequest.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureContactSettingsRequest.java deleted file mode 100644 index 7c94b21e..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureContactSettingsRequest.java +++ /dev/null @@ -1,1698 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Request for the `ConfigureContactSettings` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.ConfigureContactSettingsRequest} - */ -public final class ConfigureContactSettingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.ConfigureContactSettingsRequest) - ConfigureContactSettingsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfigureContactSettingsRequest.newBuilder() to construct. - private ConfigureContactSettingsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ConfigureContactSettingsRequest() { - registration_ = ""; - contactNotices_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfigureContactSettingsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ConfigureContactSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ConfigureContactSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ConfigureContactSettingsRequest.class, - com.google.cloud.domains.v1.ConfigureContactSettingsRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private volatile java.lang.Object registration_; - /** - * - * - *
-   * Required. The name of the `Registration` whose contact settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - @java.lang.Override - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` whose contact settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONTACT_SETTINGS_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1.ContactSettings contactSettings_; - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.ContactSettings contact_settings = 2; - * - * @return Whether the contactSettings field is set. - */ - @java.lang.Override - public boolean hasContactSettings() { - return contactSettings_ != null; - } - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.ContactSettings contact_settings = 2; - * - * @return The contactSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettings getContactSettings() { - return contactSettings_ == null - ? com.google.cloud.domains.v1.ContactSettings.getDefaultInstance() - : contactSettings_; - } - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.ContactSettings contact_settings = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettingsOrBuilder getContactSettingsOrBuilder() { - return getContactSettings(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 3; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int CONTACT_NOTICES_FIELD_NUMBER = 4; - private java.util.List contactNotices_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.ContactNotice> - contactNotices_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.ContactNotice>() { - public com.google.cloud.domains.v1.ContactNotice convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.ContactNotice result = - com.google.cloud.domains.v1.ContactNotice.valueOf(from); - return result == null - ? com.google.cloud.domains.v1.ContactNotice.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - @java.lang.Override - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesValueList() { - return contactNotices_; - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - @java.lang.Override - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - - private int contactNoticesMemoizedSerializedSize; - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; - private boolean validateOnly_; - /** - * - * - *
-   * Validate the request without actually updating the contact settings.
-   * 
- * - * bool validate_only = 5; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registration_); - } - if (contactSettings_ != null) { - output.writeMessage(2, getContactSettings()); - } - if (updateMask_ != null) { - output.writeMessage(3, getUpdateMask()); - } - if (getContactNoticesList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(contactNoticesMemoizedSerializedSize); - } - for (int i = 0; i < contactNotices_.size(); i++) { - output.writeEnumNoTag(contactNotices_.get(i)); - } - if (validateOnly_ != false) { - output.writeBool(5, validateOnly_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registration_); - } - if (contactSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContactSettings()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); - } - { - int dataSize = 0; - for (int i = 0; i < contactNotices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(contactNotices_.get(i)); - } - size += dataSize; - if (!getContactNoticesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - contactNoticesMemoizedSerializedSize = dataSize; - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.ConfigureContactSettingsRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.ConfigureContactSettingsRequest other = - (com.google.cloud.domains.v1.ConfigureContactSettingsRequest) obj; - - if (!getRegistration().equals(other.getRegistration())) return false; - if (hasContactSettings() != other.hasContactSettings()) return false; - if (hasContactSettings()) { - if (!getContactSettings().equals(other.getContactSettings())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!contactNotices_.equals(other.contactNotices_)) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - if (hasContactSettings()) { - hash = (37 * hash) + CONTACT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getContactSettings().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - if (getContactNoticesCount() > 0) { - hash = (37 * hash) + CONTACT_NOTICES_FIELD_NUMBER; - hash = (53 * hash) + contactNotices_.hashCode(); - } - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.ConfigureContactSettingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ConfigureContactSettingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ConfigureContactSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ConfigureContactSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ConfigureContactSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ConfigureContactSettingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ConfigureContactSettingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ConfigureContactSettingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ConfigureContactSettingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ConfigureContactSettingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ConfigureContactSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ConfigureContactSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1.ConfigureContactSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ConfigureContactSettings` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.ConfigureContactSettingsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.ConfigureContactSettingsRequest) - com.google.cloud.domains.v1.ConfigureContactSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ConfigureContactSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ConfigureContactSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ConfigureContactSettingsRequest.class, - com.google.cloud.domains.v1.ConfigureContactSettingsRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.ConfigureContactSettingsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - registration_ = ""; - - if (contactSettingsBuilder_ == null) { - contactSettings_ = null; - } else { - contactSettings_ = null; - contactSettingsBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ConfigureContactSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ConfigureContactSettingsRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1.ConfigureContactSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.ConfigureContactSettingsRequest build() { - com.google.cloud.domains.v1.ConfigureContactSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ConfigureContactSettingsRequest buildPartial() { - com.google.cloud.domains.v1.ConfigureContactSettingsRequest result = - new com.google.cloud.domains.v1.ConfigureContactSettingsRequest(this); - int from_bitField0_ = bitField0_; - result.registration_ = registration_; - if (contactSettingsBuilder_ == null) { - result.contactSettings_ = contactSettings_; - } else { - result.contactSettings_ = contactSettingsBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - contactNotices_ = java.util.Collections.unmodifiableList(contactNotices_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.contactNotices_ = contactNotices_; - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.ConfigureContactSettingsRequest) { - return mergeFrom((com.google.cloud.domains.v1.ConfigureContactSettingsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.ConfigureContactSettingsRequest other) { - if (other == com.google.cloud.domains.v1.ConfigureContactSettingsRequest.getDefaultInstance()) - return this; - if (!other.getRegistration().isEmpty()) { - registration_ = other.registration_; - onChanged(); - } - if (other.hasContactSettings()) { - mergeContactSettings(other.getContactSettings()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (!other.contactNotices_.isEmpty()) { - if (contactNotices_.isEmpty()) { - contactNotices_ = other.contactNotices_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureContactNoticesIsMutable(); - contactNotices_.addAll(other.contactNotices_); - } - onChanged(); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - registration_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getContactSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 32: - { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - break; - } // case 32 - case 34: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 34 - case 40: - { - validateOnly_ = input.readBool(); - - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object registration_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` whose contact settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose contact settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose contact settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The registration to set. - * @return This builder for chaining. - */ - public Builder setRegistration(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose contact settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearRegistration() { - - registration_ = getDefaultInstance().getRegistration(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose contact settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for registration to set. - * @return This builder for chaining. - */ - public Builder setRegistrationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registration_ = value; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1.ContactSettings contactSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings, - com.google.cloud.domains.v1.ContactSettings.Builder, - com.google.cloud.domains.v1.ContactSettingsOrBuilder> - contactSettingsBuilder_; - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ContactSettings contact_settings = 2; - * - * @return Whether the contactSettings field is set. - */ - public boolean hasContactSettings() { - return contactSettingsBuilder_ != null || contactSettings_ != null; - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ContactSettings contact_settings = 2; - * - * @return The contactSettings. - */ - public com.google.cloud.domains.v1.ContactSettings getContactSettings() { - if (contactSettingsBuilder_ == null) { - return contactSettings_ == null - ? com.google.cloud.domains.v1.ContactSettings.getDefaultInstance() - : contactSettings_; - } else { - return contactSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ContactSettings contact_settings = 2; - */ - public Builder setContactSettings(com.google.cloud.domains.v1.ContactSettings value) { - if (contactSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - contactSettings_ = value; - onChanged(); - } else { - contactSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ContactSettings contact_settings = 2; - */ - public Builder setContactSettings( - com.google.cloud.domains.v1.ContactSettings.Builder builderForValue) { - if (contactSettingsBuilder_ == null) { - contactSettings_ = builderForValue.build(); - onChanged(); - } else { - contactSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ContactSettings contact_settings = 2; - */ - public Builder mergeContactSettings(com.google.cloud.domains.v1.ContactSettings value) { - if (contactSettingsBuilder_ == null) { - if (contactSettings_ != null) { - contactSettings_ = - com.google.cloud.domains.v1.ContactSettings.newBuilder(contactSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - contactSettings_ = value; - } - onChanged(); - } else { - contactSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ContactSettings contact_settings = 2; - */ - public Builder clearContactSettings() { - if (contactSettingsBuilder_ == null) { - contactSettings_ = null; - onChanged(); - } else { - contactSettings_ = null; - contactSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ContactSettings contact_settings = 2; - */ - public com.google.cloud.domains.v1.ContactSettings.Builder getContactSettingsBuilder() { - - onChanged(); - return getContactSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ContactSettings contact_settings = 2; - */ - public com.google.cloud.domains.v1.ContactSettingsOrBuilder getContactSettingsOrBuilder() { - if (contactSettingsBuilder_ != null) { - return contactSettingsBuilder_.getMessageOrBuilder(); - } else { - return contactSettings_ == null - ? com.google.cloud.domains.v1.ContactSettings.getDefaultInstance() - : contactSettings_; - } - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ContactSettings contact_settings = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings, - com.google.cloud.domains.v1.ContactSettings.Builder, - com.google.cloud.domains.v1.ContactSettingsOrBuilder> - getContactSettingsFieldBuilder() { - if (contactSettingsBuilder_ == null) { - contactSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings, - com.google.cloud.domains.v1.ContactSettings.Builder, - com.google.cloud.domains.v1.ContactSettingsOrBuilder>( - getContactSettings(), getParentForChildren(), isClean()); - contactSettings_ = null; - } - return contactSettingsBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private java.util.List contactNotices_ = java.util.Collections.emptyList(); - - private void ensureContactNoticesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - contactNotices_ = new java.util.ArrayList(contactNotices_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - public com.google.cloud.domains.v1.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param index The index to set the value at. - * @param value The contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNotices(int index, com.google.cloud.domains.v1.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param value The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNotices(com.google.cloud.domains.v1.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param values The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNotices( - java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (com.google.cloud.domains.v1.ContactNotice value : values) { - contactNotices_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return This builder for chaining. - */ - public Builder clearContactNotices() { - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - public java.util.List getContactNoticesValueList() { - return java.util.Collections.unmodifiableList(contactNotices_); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNoticesValue(int index, int value) { - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param value The enum numeric value on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNoticesValue(int value) { - ensureContactNoticesIsMutable(); - contactNotices_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param values The enum numeric values on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNoticesValue(java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (int value : values) { - contactNotices_.add(value); - } - onChanged(); - return this; - } - - private boolean validateOnly_; - /** - * - * - *
-     * Validate the request without actually updating the contact settings.
-     * 
- * - * bool validate_only = 5; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - * - * - *
-     * Validate the request without actually updating the contact settings.
-     * 
- * - * bool validate_only = 5; - * - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Validate the request without actually updating the contact settings.
-     * 
- * - * bool validate_only = 5; - * - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.ConfigureContactSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.ConfigureContactSettingsRequest) - private static final com.google.cloud.domains.v1.ConfigureContactSettingsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.ConfigureContactSettingsRequest(); - } - - public static com.google.cloud.domains.v1.ConfigureContactSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigureContactSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ConfigureContactSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureContactSettingsRequestOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureContactSettingsRequestOrBuilder.java deleted file mode 100644 index b94c22a4..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureContactSettingsRequestOrBuilder.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/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface ConfigureContactSettingsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.ConfigureContactSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` whose contact settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - java.lang.String getRegistration(); - /** - * - * - *
-   * Required. The name of the `Registration` whose contact settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - com.google.protobuf.ByteString getRegistrationBytes(); - - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.ContactSettings contact_settings = 2; - * - * @return Whether the contactSettings field is set. - */ - boolean hasContactSettings(); - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.ContactSettings contact_settings = 2; - * - * @return The contactSettings. - */ - com.google.cloud.domains.v1.ContactSettings getContactSettings(); - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.ContactSettings contact_settings = 2; - */ - com.google.cloud.domains.v1.ContactSettingsOrBuilder getContactSettingsOrBuilder(); - - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - java.util.List getContactNoticesList(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - int getContactNoticesCount(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - com.google.cloud.domains.v1.ContactNotice getContactNotices(int index); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - java.util.List getContactNoticesValueList(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - int getContactNoticesValue(int index); - - /** - * - * - *
-   * Validate the request without actually updating the contact settings.
-   * 
- * - * bool validate_only = 5; - * - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureDnsSettingsRequest.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureDnsSettingsRequest.java deleted file mode 100644 index 100aa390..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureDnsSettingsRequest.java +++ /dev/null @@ -1,1354 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Request for the `ConfigureDnsSettings` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.ConfigureDnsSettingsRequest} - */ -public final class ConfigureDnsSettingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.ConfigureDnsSettingsRequest) - ConfigureDnsSettingsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfigureDnsSettingsRequest.newBuilder() to construct. - private ConfigureDnsSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ConfigureDnsSettingsRequest() { - registration_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfigureDnsSettingsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ConfigureDnsSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ConfigureDnsSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ConfigureDnsSettingsRequest.class, - com.google.cloud.domains.v1.ConfigureDnsSettingsRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private volatile java.lang.Object registration_; - /** - * - * - *
-   * Required. The name of the `Registration` whose DNS settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - @java.lang.Override - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` whose DNS settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DNS_SETTINGS_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1.DnsSettings dnsSettings_; - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 2; - * - * @return Whether the dnsSettings field is set. - */ - @java.lang.Override - public boolean hasDnsSettings() { - return dnsSettings_ != null; - } - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 2; - * - * @return The dnsSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings getDnsSettings() { - return dnsSettings_ == null - ? com.google.cloud.domains.v1.DnsSettings.getDefaultInstance() - : dnsSettings_; - } - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettingsOrBuilder getDnsSettingsOrBuilder() { - return getDnsSettings(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 3; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; - private boolean validateOnly_; - /** - * - * - *
-   * Validate the request without actually updating the DNS settings.
-   * 
- * - * bool validate_only = 4; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registration_); - } - if (dnsSettings_ != null) { - output.writeMessage(2, getDnsSettings()); - } - if (updateMask_ != null) { - output.writeMessage(3, getUpdateMask()); - } - if (validateOnly_ != false) { - output.writeBool(4, validateOnly_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registration_); - } - if (dnsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDnsSettings()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.ConfigureDnsSettingsRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.ConfigureDnsSettingsRequest other = - (com.google.cloud.domains.v1.ConfigureDnsSettingsRequest) obj; - - if (!getRegistration().equals(other.getRegistration())) return false; - if (hasDnsSettings() != other.hasDnsSettings()) return false; - if (hasDnsSettings()) { - if (!getDnsSettings().equals(other.getDnsSettings())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - if (hasDnsSettings()) { - hash = (37 * hash) + DNS_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getDnsSettings().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.ConfigureDnsSettingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ConfigureDnsSettingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ConfigureDnsSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ConfigureDnsSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ConfigureDnsSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ConfigureDnsSettingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ConfigureDnsSettingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ConfigureDnsSettingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ConfigureDnsSettingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ConfigureDnsSettingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ConfigureDnsSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ConfigureDnsSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1.ConfigureDnsSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ConfigureDnsSettings` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.ConfigureDnsSettingsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.ConfigureDnsSettingsRequest) - com.google.cloud.domains.v1.ConfigureDnsSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ConfigureDnsSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ConfigureDnsSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ConfigureDnsSettingsRequest.class, - com.google.cloud.domains.v1.ConfigureDnsSettingsRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.ConfigureDnsSettingsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - registration_ = ""; - - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = null; - } else { - dnsSettings_ = null; - dnsSettingsBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ConfigureDnsSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ConfigureDnsSettingsRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1.ConfigureDnsSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.ConfigureDnsSettingsRequest build() { - com.google.cloud.domains.v1.ConfigureDnsSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ConfigureDnsSettingsRequest buildPartial() { - com.google.cloud.domains.v1.ConfigureDnsSettingsRequest result = - new com.google.cloud.domains.v1.ConfigureDnsSettingsRequest(this); - result.registration_ = registration_; - if (dnsSettingsBuilder_ == null) { - result.dnsSettings_ = dnsSettings_; - } else { - result.dnsSettings_ = dnsSettingsBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.ConfigureDnsSettingsRequest) { - return mergeFrom((com.google.cloud.domains.v1.ConfigureDnsSettingsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.ConfigureDnsSettingsRequest other) { - if (other == com.google.cloud.domains.v1.ConfigureDnsSettingsRequest.getDefaultInstance()) - return this; - if (!other.getRegistration().isEmpty()) { - registration_ = other.registration_; - onChanged(); - } - if (other.hasDnsSettings()) { - mergeDnsSettings(other.getDnsSettings()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - registration_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getDnsSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object registration_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` whose DNS settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose DNS settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose DNS settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The registration to set. - * @return This builder for chaining. - */ - public Builder setRegistration(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose DNS settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearRegistration() { - - registration_ = getDefaultInstance().getRegistration(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose DNS settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for registration to set. - * @return This builder for chaining. - */ - public Builder setRegistrationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registration_ = value; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1.DnsSettings dnsSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings, - com.google.cloud.domains.v1.DnsSettings.Builder, - com.google.cloud.domains.v1.DnsSettingsOrBuilder> - dnsSettingsBuilder_; - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 2; - * - * @return Whether the dnsSettings field is set. - */ - public boolean hasDnsSettings() { - return dnsSettingsBuilder_ != null || dnsSettings_ != null; - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 2; - * - * @return The dnsSettings. - */ - public com.google.cloud.domains.v1.DnsSettings getDnsSettings() { - if (dnsSettingsBuilder_ == null) { - return dnsSettings_ == null - ? com.google.cloud.domains.v1.DnsSettings.getDefaultInstance() - : dnsSettings_; - } else { - return dnsSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 2; - */ - public Builder setDnsSettings(com.google.cloud.domains.v1.DnsSettings value) { - if (dnsSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsSettings_ = value; - onChanged(); - } else { - dnsSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 2; - */ - public Builder setDnsSettings(com.google.cloud.domains.v1.DnsSettings.Builder builderForValue) { - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = builderForValue.build(); - onChanged(); - } else { - dnsSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 2; - */ - public Builder mergeDnsSettings(com.google.cloud.domains.v1.DnsSettings value) { - if (dnsSettingsBuilder_ == null) { - if (dnsSettings_ != null) { - dnsSettings_ = - com.google.cloud.domains.v1.DnsSettings.newBuilder(dnsSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - dnsSettings_ = value; - } - onChanged(); - } else { - dnsSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 2; - */ - public Builder clearDnsSettings() { - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = null; - onChanged(); - } else { - dnsSettings_ = null; - dnsSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 2; - */ - public com.google.cloud.domains.v1.DnsSettings.Builder getDnsSettingsBuilder() { - - onChanged(); - return getDnsSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 2; - */ - public com.google.cloud.domains.v1.DnsSettingsOrBuilder getDnsSettingsOrBuilder() { - if (dnsSettingsBuilder_ != null) { - return dnsSettingsBuilder_.getMessageOrBuilder(); - } else { - return dnsSettings_ == null - ? com.google.cloud.domains.v1.DnsSettings.getDefaultInstance() - : dnsSettings_; - } - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings, - com.google.cloud.domains.v1.DnsSettings.Builder, - com.google.cloud.domains.v1.DnsSettingsOrBuilder> - getDnsSettingsFieldBuilder() { - if (dnsSettingsBuilder_ == null) { - dnsSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings, - com.google.cloud.domains.v1.DnsSettings.Builder, - com.google.cloud.domains.v1.DnsSettingsOrBuilder>( - getDnsSettings(), getParentForChildren(), isClean()); - dnsSettings_ = null; - } - return dnsSettingsBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private boolean validateOnly_; - /** - * - * - *
-     * Validate the request without actually updating the DNS settings.
-     * 
- * - * bool validate_only = 4; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - * - * - *
-     * Validate the request without actually updating the DNS settings.
-     * 
- * - * bool validate_only = 4; - * - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Validate the request without actually updating the DNS settings.
-     * 
- * - * bool validate_only = 4; - * - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.ConfigureDnsSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.ConfigureDnsSettingsRequest) - private static final com.google.cloud.domains.v1.ConfigureDnsSettingsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.ConfigureDnsSettingsRequest(); - } - - public static com.google.cloud.domains.v1.ConfigureDnsSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigureDnsSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ConfigureDnsSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureDnsSettingsRequestOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureDnsSettingsRequestOrBuilder.java deleted file mode 100644 index 22a5a368..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureDnsSettingsRequestOrBuilder.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/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface ConfigureDnsSettingsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.ConfigureDnsSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` whose DNS settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - java.lang.String getRegistration(); - /** - * - * - *
-   * Required. The name of the `Registration` whose DNS settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - com.google.protobuf.ByteString getRegistrationBytes(); - - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 2; - * - * @return Whether the dnsSettings field is set. - */ - boolean hasDnsSettings(); - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 2; - * - * @return The dnsSettings. - */ - com.google.cloud.domains.v1.DnsSettings getDnsSettings(); - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 2; - */ - com.google.cloud.domains.v1.DnsSettingsOrBuilder getDnsSettingsOrBuilder(); - - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - * - * - *
-   * Validate the request without actually updating the DNS settings.
-   * 
- * - * bool validate_only = 4; - * - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureManagementSettingsRequest.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureManagementSettingsRequest.java deleted file mode 100644 index d72600a7..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureManagementSettingsRequest.java +++ /dev/null @@ -1,1212 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Request for the `ConfigureManagementSettings` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.ConfigureManagementSettingsRequest} - */ -public final class ConfigureManagementSettingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.ConfigureManagementSettingsRequest) - ConfigureManagementSettingsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfigureManagementSettingsRequest.newBuilder() to construct. - private ConfigureManagementSettingsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ConfigureManagementSettingsRequest() { - registration_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfigureManagementSettingsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ConfigureManagementSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ConfigureManagementSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest.class, - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private volatile java.lang.Object registration_; - /** - * - * - *
-   * Required. The name of the `Registration` whose management settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - @java.lang.Override - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` whose management settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MANAGEMENT_SETTINGS_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1.ManagementSettings managementSettings_; - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 2; - * - * @return Whether the managementSettings field is set. - */ - @java.lang.Override - public boolean hasManagementSettings() { - return managementSettings_ != null; - } - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 2; - * - * @return The managementSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ManagementSettings getManagementSettings() { - return managementSettings_ == null - ? com.google.cloud.domains.v1.ManagementSettings.getDefaultInstance() - : managementSettings_; - } - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1.ManagementSettingsOrBuilder getManagementSettingsOrBuilder() { - return getManagementSettings(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 3; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registration_); - } - if (managementSettings_ != null) { - output.writeMessage(2, getManagementSettings()); - } - if (updateMask_ != null) { - output.writeMessage(3, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registration_); - } - if (managementSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getManagementSettings()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.ConfigureManagementSettingsRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest other = - (com.google.cloud.domains.v1.ConfigureManagementSettingsRequest) obj; - - if (!getRegistration().equals(other.getRegistration())) return false; - if (hasManagementSettings() != other.hasManagementSettings()) return false; - if (hasManagementSettings()) { - if (!getManagementSettings().equals(other.getManagementSettings())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - if (hasManagementSettings()) { - hash = (37 * hash) + MANAGEMENT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getManagementSettings().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.ConfigureManagementSettingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ConfigureManagementSettingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ConfigureManagementSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ConfigureManagementSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ConfigureManagementSettingsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ConfigureManagementSettingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ConfigureManagementSettingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ConfigureManagementSettingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ConfigureManagementSettingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ConfigureManagementSettingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ConfigureManagementSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ConfigureManagementSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ConfigureManagementSettings` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.ConfigureManagementSettingsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.ConfigureManagementSettingsRequest) - com.google.cloud.domains.v1.ConfigureManagementSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ConfigureManagementSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ConfigureManagementSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest.class, - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.ConfigureManagementSettingsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - registration_ = ""; - - if (managementSettingsBuilder_ == null) { - managementSettings_ = null; - } else { - managementSettings_ = null; - managementSettingsBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ConfigureManagementSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ConfigureManagementSettingsRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1.ConfigureManagementSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.ConfigureManagementSettingsRequest build() { - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ConfigureManagementSettingsRequest buildPartial() { - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest result = - new com.google.cloud.domains.v1.ConfigureManagementSettingsRequest(this); - result.registration_ = registration_; - if (managementSettingsBuilder_ == null) { - result.managementSettings_ = managementSettings_; - } else { - result.managementSettings_ = managementSettingsBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.ConfigureManagementSettingsRequest) { - return mergeFrom((com.google.cloud.domains.v1.ConfigureManagementSettingsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.ConfigureManagementSettingsRequest other) { - if (other - == com.google.cloud.domains.v1.ConfigureManagementSettingsRequest.getDefaultInstance()) - return this; - if (!other.getRegistration().isEmpty()) { - registration_ = other.registration_; - onChanged(); - } - if (other.hasManagementSettings()) { - mergeManagementSettings(other.getManagementSettings()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - registration_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getManagementSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object registration_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` whose management settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose management settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose management settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The registration to set. - * @return This builder for chaining. - */ - public Builder setRegistration(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose management settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearRegistration() { - - registration_ = getDefaultInstance().getRegistration(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose management settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for registration to set. - * @return This builder for chaining. - */ - public Builder setRegistrationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registration_ = value; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1.ManagementSettings managementSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ManagementSettings, - com.google.cloud.domains.v1.ManagementSettings.Builder, - com.google.cloud.domains.v1.ManagementSettingsOrBuilder> - managementSettingsBuilder_; - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 2; - * - * @return Whether the managementSettings field is set. - */ - public boolean hasManagementSettings() { - return managementSettingsBuilder_ != null || managementSettings_ != null; - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 2; - * - * @return The managementSettings. - */ - public com.google.cloud.domains.v1.ManagementSettings getManagementSettings() { - if (managementSettingsBuilder_ == null) { - return managementSettings_ == null - ? com.google.cloud.domains.v1.ManagementSettings.getDefaultInstance() - : managementSettings_; - } else { - return managementSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 2; - */ - public Builder setManagementSettings(com.google.cloud.domains.v1.ManagementSettings value) { - if (managementSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - managementSettings_ = value; - onChanged(); - } else { - managementSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 2; - */ - public Builder setManagementSettings( - com.google.cloud.domains.v1.ManagementSettings.Builder builderForValue) { - if (managementSettingsBuilder_ == null) { - managementSettings_ = builderForValue.build(); - onChanged(); - } else { - managementSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 2; - */ - public Builder mergeManagementSettings(com.google.cloud.domains.v1.ManagementSettings value) { - if (managementSettingsBuilder_ == null) { - if (managementSettings_ != null) { - managementSettings_ = - com.google.cloud.domains.v1.ManagementSettings.newBuilder(managementSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - managementSettings_ = value; - } - onChanged(); - } else { - managementSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 2; - */ - public Builder clearManagementSettings() { - if (managementSettingsBuilder_ == null) { - managementSettings_ = null; - onChanged(); - } else { - managementSettings_ = null; - managementSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 2; - */ - public com.google.cloud.domains.v1.ManagementSettings.Builder getManagementSettingsBuilder() { - - onChanged(); - return getManagementSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 2; - */ - public com.google.cloud.domains.v1.ManagementSettingsOrBuilder - getManagementSettingsOrBuilder() { - if (managementSettingsBuilder_ != null) { - return managementSettingsBuilder_.getMessageOrBuilder(); - } else { - return managementSettings_ == null - ? com.google.cloud.domains.v1.ManagementSettings.getDefaultInstance() - : managementSettings_; - } - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ManagementSettings, - com.google.cloud.domains.v1.ManagementSettings.Builder, - com.google.cloud.domains.v1.ManagementSettingsOrBuilder> - getManagementSettingsFieldBuilder() { - if (managementSettingsBuilder_ == null) { - managementSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ManagementSettings, - com.google.cloud.domains.v1.ManagementSettings.Builder, - com.google.cloud.domains.v1.ManagementSettingsOrBuilder>( - getManagementSettings(), getParentForChildren(), isClean()); - managementSettings_ = null; - } - return managementSettingsBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.ConfigureManagementSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.ConfigureManagementSettingsRequest) - private static final com.google.cloud.domains.v1.ConfigureManagementSettingsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.ConfigureManagementSettingsRequest(); - } - - public static com.google.cloud.domains.v1.ConfigureManagementSettingsRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigureManagementSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ConfigureManagementSettingsRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureManagementSettingsRequestOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureManagementSettingsRequestOrBuilder.java deleted file mode 100644 index 8291d341..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ConfigureManagementSettingsRequestOrBuilder.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface ConfigureManagementSettingsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.ConfigureManagementSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` whose management settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - java.lang.String getRegistration(); - /** - * - * - *
-   * Required. The name of the `Registration` whose management settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - com.google.protobuf.ByteString getRegistrationBytes(); - - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 2; - * - * @return Whether the managementSettings field is set. - */ - boolean hasManagementSettings(); - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 2; - * - * @return The managementSettings. - */ - com.google.cloud.domains.v1.ManagementSettings getManagementSettings(); - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 2; - */ - com.google.cloud.domains.v1.ManagementSettingsOrBuilder getManagementSettingsOrBuilder(); - - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ContactNotice.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ContactNotice.java deleted file mode 100644 index 6fb11ec0..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ContactNotice.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Notices related to contact information.
- * 
- * - * Protobuf enum {@code google.cloud.domains.v1.ContactNotice} - */ -public enum ContactNotice implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * The notice is undefined.
-   * 
- * - * CONTACT_NOTICE_UNSPECIFIED = 0; - */ - CONTACT_NOTICE_UNSPECIFIED(0), - /** - * - * - *
-   * Required when setting the `privacy` field of `ContactSettings` to
-   * `PUBLIC_CONTACT_DATA`, which exposes contact data publicly.
-   * 
- * - * PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT = 1; - */ - PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * The notice is undefined.
-   * 
- * - * CONTACT_NOTICE_UNSPECIFIED = 0; - */ - public static final int CONTACT_NOTICE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Required when setting the `privacy` field of `ContactSettings` to
-   * `PUBLIC_CONTACT_DATA`, which exposes contact data publicly.
-   * 
- * - * PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT = 1; - */ - public static final int PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT_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 ContactNotice 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 ContactNotice forNumber(int value) { - switch (value) { - case 0: - return CONTACT_NOTICE_UNSPECIFIED; - case 1: - return PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT; - 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 ContactNotice findValueByNumber(int number) { - return ContactNotice.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto.getDescriptor().getEnumTypes().get(2); - } - - private static final ContactNotice[] VALUES = values(); - - public static ContactNotice 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 ContactNotice(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1.ContactNotice) -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ContactPrivacy.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ContactPrivacy.java deleted file mode 100644 index 51a7da0f..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ContactPrivacy.java +++ /dev/null @@ -1,220 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Defines a set of possible contact privacy settings for a `Registration`.
- * [ICANN](https://icann.org/) maintains the WHOIS database, a publicly
- * accessible mapping from domain name to contact information, and requires that
- * each domain name have an entry. Choose from these options to control how much
- * information in your `ContactSettings` is published.
- * 
- * - * Protobuf enum {@code google.cloud.domains.v1.ContactPrivacy} - */ -public enum ContactPrivacy implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * The contact privacy settings are undefined.
-   * 
- * - * CONTACT_PRIVACY_UNSPECIFIED = 0; - */ - CONTACT_PRIVACY_UNSPECIFIED(0), - /** - * - * - *
-   * All the data from `ContactSettings` is publicly available. When setting
-   * this option, you must also provide a
-   * `PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT` in the `contact_notices` field of the
-   * request.
-   * 
- * - * PUBLIC_CONTACT_DATA = 1; - */ - PUBLIC_CONTACT_DATA(1), - /** - * - * - *
-   * None of the data from `ContactSettings` is publicly available. Instead,
-   * proxy contact data is published for your domain. Email sent to the proxy
-   * email address is forwarded to the registrant's email address. Cloud Domains
-   * provides this privacy proxy service at no additional cost.
-   * 
- * - * PRIVATE_CONTACT_DATA = 2; - */ - PRIVATE_CONTACT_DATA(2), - /** - * - * - *
-   * Some data from `ContactSettings` is publicly available. The actual
-   * information redacted depends on the domain. For details, see [the
-   * registration privacy
-   * article](https://support.google.com/domains/answer/3251242).
-   * 
- * - * REDACTED_CONTACT_DATA = 3; - */ - REDACTED_CONTACT_DATA(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * The contact privacy settings are undefined.
-   * 
- * - * CONTACT_PRIVACY_UNSPECIFIED = 0; - */ - public static final int CONTACT_PRIVACY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * All the data from `ContactSettings` is publicly available. When setting
-   * this option, you must also provide a
-   * `PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT` in the `contact_notices` field of the
-   * request.
-   * 
- * - * PUBLIC_CONTACT_DATA = 1; - */ - public static final int PUBLIC_CONTACT_DATA_VALUE = 1; - /** - * - * - *
-   * None of the data from `ContactSettings` is publicly available. Instead,
-   * proxy contact data is published for your domain. Email sent to the proxy
-   * email address is forwarded to the registrant's email address. Cloud Domains
-   * provides this privacy proxy service at no additional cost.
-   * 
- * - * PRIVATE_CONTACT_DATA = 2; - */ - public static final int PRIVATE_CONTACT_DATA_VALUE = 2; - /** - * - * - *
-   * Some data from `ContactSettings` is publicly available. The actual
-   * information redacted depends on the domain. For details, see [the
-   * registration privacy
-   * article](https://support.google.com/domains/answer/3251242).
-   * 
- * - * REDACTED_CONTACT_DATA = 3; - */ - public static final int REDACTED_CONTACT_DATA_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 ContactPrivacy 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 ContactPrivacy forNumber(int value) { - switch (value) { - case 0: - return CONTACT_PRIVACY_UNSPECIFIED; - case 1: - return PUBLIC_CONTACT_DATA; - case 2: - return PRIVATE_CONTACT_DATA; - case 3: - return REDACTED_CONTACT_DATA; - 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 ContactPrivacy findValueByNumber(int number) { - return ContactPrivacy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto.getDescriptor().getEnumTypes().get(0); - } - - private static final ContactPrivacy[] VALUES = values(); - - public static ContactPrivacy 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 ContactPrivacy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1.ContactPrivacy) -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ContactSettings.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ContactSettings.java deleted file mode 100644 index 50f0cde1..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ContactSettings.java +++ /dev/null @@ -1,2942 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Defines the contact information associated with a `Registration`.
- * [ICANN](https://icann.org/) requires all domain names to have associated
- * contact information. The `registrant_contact` is considered the
- * domain's legal owner, and often the other contacts are identical.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.ContactSettings} - */ -public final class ContactSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.ContactSettings) - ContactSettingsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ContactSettings.newBuilder() to construct. - private ContactSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ContactSettings() { - privacy_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ContactSettings(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ContactSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ContactSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ContactSettings.class, - com.google.cloud.domains.v1.ContactSettings.Builder.class); - } - - public interface ContactOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.ContactSettings.Contact) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the postalAddress field is set. - */ - boolean hasPostalAddress(); - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The postalAddress. - */ - com.google.type.PostalAddress getPostalAddress(); - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder(); - - /** - * - * - *
-     * Required. Email address of the contact.
-     * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The email. - */ - java.lang.String getEmail(); - /** - * - * - *
-     * Required. Email address of the contact.
-     * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for email. - */ - com.google.protobuf.ByteString getEmailBytes(); - - /** - * - * - *
-     * Required. Phone number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The phoneNumber. - */ - java.lang.String getPhoneNumber(); - /** - * - * - *
-     * Required. Phone number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for phoneNumber. - */ - com.google.protobuf.ByteString getPhoneNumberBytes(); - - /** - * - * - *
-     * Fax number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string fax_number = 4; - * - * @return The faxNumber. - */ - java.lang.String getFaxNumber(); - /** - * - * - *
-     * Fax number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string fax_number = 4; - * - * @return The bytes for faxNumber. - */ - com.google.protobuf.ByteString getFaxNumberBytes(); - } - /** - * - * - *
-   * Details required for a contact associated with a `Registration`.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.ContactSettings.Contact} - */ - public static final class Contact extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.ContactSettings.Contact) - ContactOrBuilder { - private static final long serialVersionUID = 0L; - // Use Contact.newBuilder() to construct. - private Contact(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Contact() { - email_ = ""; - phoneNumber_ = ""; - faxNumber_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Contact(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ContactSettings_Contact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ContactSettings_Contact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ContactSettings.Contact.class, - com.google.cloud.domains.v1.ContactSettings.Contact.Builder.class); - } - - public static final int POSTAL_ADDRESS_FIELD_NUMBER = 1; - private com.google.type.PostalAddress postalAddress_; - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the postalAddress field is set. - */ - @java.lang.Override - public boolean hasPostalAddress() { - return postalAddress_ != null; - } - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The postalAddress. - */ - @java.lang.Override - public com.google.type.PostalAddress getPostalAddress() { - return postalAddress_ == null - ? com.google.type.PostalAddress.getDefaultInstance() - : postalAddress_; - } - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { - return getPostalAddress(); - } - - public static final int EMAIL_FIELD_NUMBER = 2; - private volatile java.lang.Object email_; - /** - * - * - *
-     * Required. Email address of the contact.
-     * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The email. - */ - @java.lang.Override - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - email_ = s; - return s; - } - } - /** - * - * - *
-     * Required. Email address of the contact.
-     * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for email. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PHONE_NUMBER_FIELD_NUMBER = 3; - private volatile java.lang.Object phoneNumber_; - /** - * - * - *
-     * Required. Phone number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The phoneNumber. - */ - @java.lang.Override - public java.lang.String getPhoneNumber() { - java.lang.Object ref = phoneNumber_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - phoneNumber_ = s; - return s; - } - } - /** - * - * - *
-     * Required. Phone number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for phoneNumber. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPhoneNumberBytes() { - java.lang.Object ref = phoneNumber_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - phoneNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FAX_NUMBER_FIELD_NUMBER = 4; - private volatile java.lang.Object faxNumber_; - /** - * - * - *
-     * Fax number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string fax_number = 4; - * - * @return The faxNumber. - */ - @java.lang.Override - public java.lang.String getFaxNumber() { - java.lang.Object ref = faxNumber_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - faxNumber_ = s; - return s; - } - } - /** - * - * - *
-     * Fax number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string fax_number = 4; - * - * @return The bytes for faxNumber. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFaxNumberBytes() { - java.lang.Object ref = faxNumber_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - faxNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (postalAddress_ != null) { - output.writeMessage(1, getPostalAddress()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, email_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumber_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, phoneNumber_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(faxNumber_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, faxNumber_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (postalAddress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPostalAddress()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumber_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, phoneNumber_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(faxNumber_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, faxNumber_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.ContactSettings.Contact)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.ContactSettings.Contact other = - (com.google.cloud.domains.v1.ContactSettings.Contact) obj; - - if (hasPostalAddress() != other.hasPostalAddress()) return false; - if (hasPostalAddress()) { - if (!getPostalAddress().equals(other.getPostalAddress())) return false; - } - if (!getEmail().equals(other.getEmail())) return false; - if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; - if (!getFaxNumber().equals(other.getFaxNumber())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPostalAddress()) { - hash = (37 * hash) + POSTAL_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getPostalAddress().hashCode(); - } - hash = (37 * hash) + EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getEmail().hashCode(); - hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getPhoneNumber().hashCode(); - hash = (37 * hash) + FAX_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getFaxNumber().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.ContactSettings.Contact parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ContactSettings.Contact parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ContactSettings.Contact parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ContactSettings.Contact parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ContactSettings.Contact parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ContactSettings.Contact parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ContactSettings.Contact parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ContactSettings.Contact parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ContactSettings.Contact parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ContactSettings.Contact parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ContactSettings.Contact parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ContactSettings.Contact parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1.ContactSettings.Contact prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Details required for a contact associated with a `Registration`.
-     * 
- * - * Protobuf type {@code google.cloud.domains.v1.ContactSettings.Contact} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.ContactSettings.Contact) - com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ContactSettings_Contact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ContactSettings_Contact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ContactSettings.Contact.class, - com.google.cloud.domains.v1.ContactSettings.Contact.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.ContactSettings.Contact.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (postalAddressBuilder_ == null) { - postalAddress_ = null; - } else { - postalAddress_ = null; - postalAddressBuilder_ = null; - } - email_ = ""; - - phoneNumber_ = ""; - - faxNumber_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ContactSettings_Contact_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettings.Contact getDefaultInstanceForType() { - return com.google.cloud.domains.v1.ContactSettings.Contact.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettings.Contact build() { - com.google.cloud.domains.v1.ContactSettings.Contact result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettings.Contact buildPartial() { - com.google.cloud.domains.v1.ContactSettings.Contact result = - new com.google.cloud.domains.v1.ContactSettings.Contact(this); - if (postalAddressBuilder_ == null) { - result.postalAddress_ = postalAddress_; - } else { - result.postalAddress_ = postalAddressBuilder_.build(); - } - result.email_ = email_; - result.phoneNumber_ = phoneNumber_; - result.faxNumber_ = faxNumber_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.ContactSettings.Contact) { - return mergeFrom((com.google.cloud.domains.v1.ContactSettings.Contact) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.ContactSettings.Contact other) { - if (other == com.google.cloud.domains.v1.ContactSettings.Contact.getDefaultInstance()) - return this; - if (other.hasPostalAddress()) { - mergePostalAddress(other.getPostalAddress()); - } - if (!other.getEmail().isEmpty()) { - email_ = other.email_; - onChanged(); - } - if (!other.getPhoneNumber().isEmpty()) { - phoneNumber_ = other.phoneNumber_; - onChanged(); - } - if (!other.getFaxNumber().isEmpty()) { - faxNumber_ = other.faxNumber_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getPostalAddressFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - email_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - phoneNumber_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - faxNumber_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.type.PostalAddress postalAddress_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.PostalAddress, - com.google.type.PostalAddress.Builder, - com.google.type.PostalAddressOrBuilder> - postalAddressBuilder_; - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the postalAddress field is set. - */ - public boolean hasPostalAddress() { - return postalAddressBuilder_ != null || postalAddress_ != null; - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The postalAddress. - */ - public com.google.type.PostalAddress getPostalAddress() { - if (postalAddressBuilder_ == null) { - return postalAddress_ == null - ? com.google.type.PostalAddress.getDefaultInstance() - : postalAddress_; - } else { - return postalAddressBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPostalAddress(com.google.type.PostalAddress value) { - if (postalAddressBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - postalAddress_ = value; - onChanged(); - } else { - postalAddressBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPostalAddress(com.google.type.PostalAddress.Builder builderForValue) { - if (postalAddressBuilder_ == null) { - postalAddress_ = builderForValue.build(); - onChanged(); - } else { - postalAddressBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergePostalAddress(com.google.type.PostalAddress value) { - if (postalAddressBuilder_ == null) { - if (postalAddress_ != null) { - postalAddress_ = - com.google.type.PostalAddress.newBuilder(postalAddress_) - .mergeFrom(value) - .buildPartial(); - } else { - postalAddress_ = value; - } - onChanged(); - } else { - postalAddressBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearPostalAddress() { - if (postalAddressBuilder_ == null) { - postalAddress_ = null; - onChanged(); - } else { - postalAddress_ = null; - postalAddressBuilder_ = null; - } - - return this; - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.type.PostalAddress.Builder getPostalAddressBuilder() { - - onChanged(); - return getPostalAddressFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { - if (postalAddressBuilder_ != null) { - return postalAddressBuilder_.getMessageOrBuilder(); - } else { - return postalAddress_ == null - ? com.google.type.PostalAddress.getDefaultInstance() - : postalAddress_; - } - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.PostalAddress, - com.google.type.PostalAddress.Builder, - com.google.type.PostalAddressOrBuilder> - getPostalAddressFieldBuilder() { - if (postalAddressBuilder_ == null) { - postalAddressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.PostalAddress, - com.google.type.PostalAddress.Builder, - com.google.type.PostalAddressOrBuilder>( - getPostalAddress(), getParentForChildren(), isClean()); - postalAddress_ = null; - } - return postalAddressBuilder_; - } - - private java.lang.Object email_ = ""; - /** - * - * - *
-       * Required. Email address of the contact.
-       * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The email. - */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - email_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Required. Email address of the contact.
-       * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for email. - */ - public com.google.protobuf.ByteString getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Required. Email address of the contact.
-       * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The email to set. - * @return This builder for chaining. - */ - public Builder setEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - email_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Email address of the contact.
-       * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearEmail() { - - email_ = getDefaultInstance().getEmail(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Email address of the contact.
-       * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for email to set. - * @return This builder for chaining. - */ - public Builder setEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - email_ = value; - onChanged(); - return this; - } - - private java.lang.Object phoneNumber_ = ""; - /** - * - * - *
-       * Required. Phone number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The phoneNumber. - */ - public java.lang.String getPhoneNumber() { - java.lang.Object ref = phoneNumber_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - phoneNumber_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Required. Phone number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for phoneNumber. - */ - public com.google.protobuf.ByteString getPhoneNumberBytes() { - java.lang.Object ref = phoneNumber_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - phoneNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Required. Phone number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The phoneNumber to set. - * @return This builder for chaining. - */ - public Builder setPhoneNumber(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - phoneNumber_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Phone number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearPhoneNumber() { - - phoneNumber_ = getDefaultInstance().getPhoneNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Phone number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for phoneNumber to set. - * @return This builder for chaining. - */ - public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - phoneNumber_ = value; - onChanged(); - return this; - } - - private java.lang.Object faxNumber_ = ""; - /** - * - * - *
-       * Fax number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string fax_number = 4; - * - * @return The faxNumber. - */ - public java.lang.String getFaxNumber() { - java.lang.Object ref = faxNumber_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - faxNumber_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Fax number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string fax_number = 4; - * - * @return The bytes for faxNumber. - */ - public com.google.protobuf.ByteString getFaxNumberBytes() { - java.lang.Object ref = faxNumber_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - faxNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Fax number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string fax_number = 4; - * - * @param value The faxNumber to set. - * @return This builder for chaining. - */ - public Builder setFaxNumber(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - faxNumber_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Fax number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string fax_number = 4; - * - * @return This builder for chaining. - */ - public Builder clearFaxNumber() { - - faxNumber_ = getDefaultInstance().getFaxNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Fax number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string fax_number = 4; - * - * @param value The bytes for faxNumber to set. - * @return This builder for chaining. - */ - public Builder setFaxNumberBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - faxNumber_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.ContactSettings.Contact) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.ContactSettings.Contact) - private static final com.google.cloud.domains.v1.ContactSettings.Contact DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.ContactSettings.Contact(); - } - - public static com.google.cloud.domains.v1.ContactSettings.Contact getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Contact parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettings.Contact getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int PRIVACY_FIELD_NUMBER = 1; - private int privacy_; - /** - * - * - *
-   * Required. Privacy setting for the contacts associated with the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for privacy. - */ - @java.lang.Override - public int getPrivacyValue() { - return privacy_; - } - /** - * - * - *
-   * Required. Privacy setting for the contacts associated with the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The privacy. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactPrivacy getPrivacy() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.ContactPrivacy result = - com.google.cloud.domains.v1.ContactPrivacy.valueOf(privacy_); - return result == null ? com.google.cloud.domains.v1.ContactPrivacy.UNRECOGNIZED : result; - } - - public static final int REGISTRANT_CONTACT_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1.ContactSettings.Contact registrantContact_; - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registrantContact field is set. - */ - @java.lang.Override - public boolean hasRegistrantContact() { - return registrantContact_ != null; - } - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registrantContact. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettings.Contact getRegistrantContact() { - return registrantContact_ == null - ? com.google.cloud.domains.v1.ContactSettings.Contact.getDefaultInstance() - : registrantContact_; - } - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder - getRegistrantContactOrBuilder() { - return getRegistrantContact(); - } - - public static final int ADMIN_CONTACT_FIELD_NUMBER = 3; - private com.google.cloud.domains.v1.ContactSettings.Contact adminContact_; - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the adminContact field is set. - */ - @java.lang.Override - public boolean hasAdminContact() { - return adminContact_ != null; - } - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The adminContact. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettings.Contact getAdminContact() { - return adminContact_ == null - ? com.google.cloud.domains.v1.ContactSettings.Contact.getDefaultInstance() - : adminContact_; - } - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder getAdminContactOrBuilder() { - return getAdminContact(); - } - - public static final int TECHNICAL_CONTACT_FIELD_NUMBER = 4; - private com.google.cloud.domains.v1.ContactSettings.Contact technicalContact_; - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the technicalContact field is set. - */ - @java.lang.Override - public boolean hasTechnicalContact() { - return technicalContact_ != null; - } - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The technicalContact. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettings.Contact getTechnicalContact() { - return technicalContact_ == null - ? com.google.cloud.domains.v1.ContactSettings.Contact.getDefaultInstance() - : technicalContact_; - } - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder - getTechnicalContactOrBuilder() { - return getTechnicalContact(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (privacy_ - != com.google.cloud.domains.v1.ContactPrivacy.CONTACT_PRIVACY_UNSPECIFIED.getNumber()) { - output.writeEnum(1, privacy_); - } - if (registrantContact_ != null) { - output.writeMessage(2, getRegistrantContact()); - } - if (adminContact_ != null) { - output.writeMessage(3, getAdminContact()); - } - if (technicalContact_ != null) { - output.writeMessage(4, getTechnicalContact()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (privacy_ - != com.google.cloud.domains.v1.ContactPrivacy.CONTACT_PRIVACY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, privacy_); - } - if (registrantContact_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRegistrantContact()); - } - if (adminContact_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAdminContact()); - } - if (technicalContact_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTechnicalContact()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.ContactSettings)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.ContactSettings other = - (com.google.cloud.domains.v1.ContactSettings) obj; - - if (privacy_ != other.privacy_) return false; - if (hasRegistrantContact() != other.hasRegistrantContact()) return false; - if (hasRegistrantContact()) { - if (!getRegistrantContact().equals(other.getRegistrantContact())) return false; - } - if (hasAdminContact() != other.hasAdminContact()) return false; - if (hasAdminContact()) { - if (!getAdminContact().equals(other.getAdminContact())) return false; - } - if (hasTechnicalContact() != other.hasTechnicalContact()) return false; - if (hasTechnicalContact()) { - if (!getTechnicalContact().equals(other.getTechnicalContact())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PRIVACY_FIELD_NUMBER; - hash = (53 * hash) + privacy_; - if (hasRegistrantContact()) { - hash = (37 * hash) + REGISTRANT_CONTACT_FIELD_NUMBER; - hash = (53 * hash) + getRegistrantContact().hashCode(); - } - if (hasAdminContact()) { - hash = (37 * hash) + ADMIN_CONTACT_FIELD_NUMBER; - hash = (53 * hash) + getAdminContact().hashCode(); - } - if (hasTechnicalContact()) { - hash = (37 * hash) + TECHNICAL_CONTACT_FIELD_NUMBER; - hash = (53 * hash) + getTechnicalContact().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.ContactSettings parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ContactSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ContactSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ContactSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ContactSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ContactSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ContactSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ContactSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ContactSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ContactSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ContactSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ContactSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1.ContactSettings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Defines the contact information associated with a `Registration`.
-   * [ICANN](https://icann.org/) requires all domain names to have associated
-   * contact information. The `registrant_contact` is considered the
-   * domain's legal owner, and often the other contacts are identical.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.ContactSettings} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.ContactSettings) - com.google.cloud.domains.v1.ContactSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ContactSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ContactSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ContactSettings.class, - com.google.cloud.domains.v1.ContactSettings.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.ContactSettings.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - privacy_ = 0; - - if (registrantContactBuilder_ == null) { - registrantContact_ = null; - } else { - registrantContact_ = null; - registrantContactBuilder_ = null; - } - if (adminContactBuilder_ == null) { - adminContact_ = null; - } else { - adminContact_ = null; - adminContactBuilder_ = null; - } - if (technicalContactBuilder_ == null) { - technicalContact_ = null; - } else { - technicalContact_ = null; - technicalContactBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ContactSettings_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettings getDefaultInstanceForType() { - return com.google.cloud.domains.v1.ContactSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettings build() { - com.google.cloud.domains.v1.ContactSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettings buildPartial() { - com.google.cloud.domains.v1.ContactSettings result = - new com.google.cloud.domains.v1.ContactSettings(this); - result.privacy_ = privacy_; - if (registrantContactBuilder_ == null) { - result.registrantContact_ = registrantContact_; - } else { - result.registrantContact_ = registrantContactBuilder_.build(); - } - if (adminContactBuilder_ == null) { - result.adminContact_ = adminContact_; - } else { - result.adminContact_ = adminContactBuilder_.build(); - } - if (technicalContactBuilder_ == null) { - result.technicalContact_ = technicalContact_; - } else { - result.technicalContact_ = technicalContactBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.ContactSettings) { - return mergeFrom((com.google.cloud.domains.v1.ContactSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.ContactSettings other) { - if (other == com.google.cloud.domains.v1.ContactSettings.getDefaultInstance()) return this; - if (other.privacy_ != 0) { - setPrivacyValue(other.getPrivacyValue()); - } - if (other.hasRegistrantContact()) { - mergeRegistrantContact(other.getRegistrantContact()); - } - if (other.hasAdminContact()) { - mergeAdminContact(other.getAdminContact()); - } - if (other.hasTechnicalContact()) { - mergeTechnicalContact(other.getTechnicalContact()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - privacy_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getRegistrantContactFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getAdminContactFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage( - getTechnicalContactFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int privacy_ = 0; - /** - * - * - *
-     * Required. Privacy setting for the contacts associated with the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for privacy. - */ - @java.lang.Override - public int getPrivacyValue() { - return privacy_; - } - /** - * - * - *
-     * Required. Privacy setting for the contacts associated with the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for privacy to set. - * @return This builder for chaining. - */ - public Builder setPrivacyValue(int value) { - - privacy_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Privacy setting for the contacts associated with the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The privacy. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactPrivacy getPrivacy() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.ContactPrivacy result = - com.google.cloud.domains.v1.ContactPrivacy.valueOf(privacy_); - return result == null ? com.google.cloud.domains.v1.ContactPrivacy.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Required. Privacy setting for the contacts associated with the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The privacy to set. - * @return This builder for chaining. - */ - public Builder setPrivacy(com.google.cloud.domains.v1.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - - privacy_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Privacy setting for the contacts associated with the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearPrivacy() { - - privacy_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1.ContactSettings.Contact registrantContact_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings.Contact, - com.google.cloud.domains.v1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder> - registrantContactBuilder_; - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registrantContact field is set. - */ - public boolean hasRegistrantContact() { - return registrantContactBuilder_ != null || registrantContact_ != null; - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registrantContact. - */ - public com.google.cloud.domains.v1.ContactSettings.Contact getRegistrantContact() { - if (registrantContactBuilder_ == null) { - return registrantContact_ == null - ? com.google.cloud.domains.v1.ContactSettings.Contact.getDefaultInstance() - : registrantContact_; - } else { - return registrantContactBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistrantContact(com.google.cloud.domains.v1.ContactSettings.Contact value) { - if (registrantContactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - registrantContact_ = value; - onChanged(); - } else { - registrantContactBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistrantContact( - com.google.cloud.domains.v1.ContactSettings.Contact.Builder builderForValue) { - if (registrantContactBuilder_ == null) { - registrantContact_ = builderForValue.build(); - onChanged(); - } else { - registrantContactBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRegistrantContact( - com.google.cloud.domains.v1.ContactSettings.Contact value) { - if (registrantContactBuilder_ == null) { - if (registrantContact_ != null) { - registrantContact_ = - com.google.cloud.domains.v1.ContactSettings.Contact.newBuilder(registrantContact_) - .mergeFrom(value) - .buildPartial(); - } else { - registrantContact_ = value; - } - onChanged(); - } else { - registrantContactBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRegistrantContact() { - if (registrantContactBuilder_ == null) { - registrantContact_ = null; - onChanged(); - } else { - registrantContact_ = null; - registrantContactBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1.ContactSettings.Contact.Builder - getRegistrantContactBuilder() { - - onChanged(); - return getRegistrantContactFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder - getRegistrantContactOrBuilder() { - if (registrantContactBuilder_ != null) { - return registrantContactBuilder_.getMessageOrBuilder(); - } else { - return registrantContact_ == null - ? com.google.cloud.domains.v1.ContactSettings.Contact.getDefaultInstance() - : registrantContact_; - } - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings.Contact, - com.google.cloud.domains.v1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder> - getRegistrantContactFieldBuilder() { - if (registrantContactBuilder_ == null) { - registrantContactBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings.Contact, - com.google.cloud.domains.v1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder>( - getRegistrantContact(), getParentForChildren(), isClean()); - registrantContact_ = null; - } - return registrantContactBuilder_; - } - - private com.google.cloud.domains.v1.ContactSettings.Contact adminContact_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings.Contact, - com.google.cloud.domains.v1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder> - adminContactBuilder_; - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the adminContact field is set. - */ - public boolean hasAdminContact() { - return adminContactBuilder_ != null || adminContact_ != null; - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The adminContact. - */ - public com.google.cloud.domains.v1.ContactSettings.Contact getAdminContact() { - if (adminContactBuilder_ == null) { - return adminContact_ == null - ? com.google.cloud.domains.v1.ContactSettings.Contact.getDefaultInstance() - : adminContact_; - } else { - return adminContactBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAdminContact(com.google.cloud.domains.v1.ContactSettings.Contact value) { - if (adminContactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - adminContact_ = value; - onChanged(); - } else { - adminContactBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAdminContact( - com.google.cloud.domains.v1.ContactSettings.Contact.Builder builderForValue) { - if (adminContactBuilder_ == null) { - adminContact_ = builderForValue.build(); - onChanged(); - } else { - adminContactBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeAdminContact(com.google.cloud.domains.v1.ContactSettings.Contact value) { - if (adminContactBuilder_ == null) { - if (adminContact_ != null) { - adminContact_ = - com.google.cloud.domains.v1.ContactSettings.Contact.newBuilder(adminContact_) - .mergeFrom(value) - .buildPartial(); - } else { - adminContact_ = value; - } - onChanged(); - } else { - adminContactBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearAdminContact() { - if (adminContactBuilder_ == null) { - adminContact_ = null; - onChanged(); - } else { - adminContact_ = null; - adminContactBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1.ContactSettings.Contact.Builder getAdminContactBuilder() { - - onChanged(); - return getAdminContactFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder getAdminContactOrBuilder() { - if (adminContactBuilder_ != null) { - return adminContactBuilder_.getMessageOrBuilder(); - } else { - return adminContact_ == null - ? com.google.cloud.domains.v1.ContactSettings.Contact.getDefaultInstance() - : adminContact_; - } - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings.Contact, - com.google.cloud.domains.v1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder> - getAdminContactFieldBuilder() { - if (adminContactBuilder_ == null) { - adminContactBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings.Contact, - com.google.cloud.domains.v1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder>( - getAdminContact(), getParentForChildren(), isClean()); - adminContact_ = null; - } - return adminContactBuilder_; - } - - private com.google.cloud.domains.v1.ContactSettings.Contact technicalContact_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings.Contact, - com.google.cloud.domains.v1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder> - technicalContactBuilder_; - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the technicalContact field is set. - */ - public boolean hasTechnicalContact() { - return technicalContactBuilder_ != null || technicalContact_ != null; - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The technicalContact. - */ - public com.google.cloud.domains.v1.ContactSettings.Contact getTechnicalContact() { - if (technicalContactBuilder_ == null) { - return technicalContact_ == null - ? com.google.cloud.domains.v1.ContactSettings.Contact.getDefaultInstance() - : technicalContact_; - } else { - return technicalContactBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTechnicalContact(com.google.cloud.domains.v1.ContactSettings.Contact value) { - if (technicalContactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - technicalContact_ = value; - onChanged(); - } else { - technicalContactBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTechnicalContact( - com.google.cloud.domains.v1.ContactSettings.Contact.Builder builderForValue) { - if (technicalContactBuilder_ == null) { - technicalContact_ = builderForValue.build(); - onChanged(); - } else { - technicalContactBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTechnicalContact( - com.google.cloud.domains.v1.ContactSettings.Contact value) { - if (technicalContactBuilder_ == null) { - if (technicalContact_ != null) { - technicalContact_ = - com.google.cloud.domains.v1.ContactSettings.Contact.newBuilder(technicalContact_) - .mergeFrom(value) - .buildPartial(); - } else { - technicalContact_ = value; - } - onChanged(); - } else { - technicalContactBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTechnicalContact() { - if (technicalContactBuilder_ == null) { - technicalContact_ = null; - onChanged(); - } else { - technicalContact_ = null; - technicalContactBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1.ContactSettings.Contact.Builder - getTechnicalContactBuilder() { - - onChanged(); - return getTechnicalContactFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder - getTechnicalContactOrBuilder() { - if (technicalContactBuilder_ != null) { - return technicalContactBuilder_.getMessageOrBuilder(); - } else { - return technicalContact_ == null - ? com.google.cloud.domains.v1.ContactSettings.Contact.getDefaultInstance() - : technicalContact_; - } - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings.Contact, - com.google.cloud.domains.v1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder> - getTechnicalContactFieldBuilder() { - if (technicalContactBuilder_ == null) { - technicalContactBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings.Contact, - com.google.cloud.domains.v1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder>( - getTechnicalContact(), getParentForChildren(), isClean()); - technicalContact_ = null; - } - return technicalContactBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.ContactSettings) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.ContactSettings) - private static final com.google.cloud.domains.v1.ContactSettings DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.ContactSettings(); - } - - public static com.google.cloud.domains.v1.ContactSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContactSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ContactSettingsOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ContactSettingsOrBuilder.java deleted file mode 100644 index d6fe7444..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ContactSettingsOrBuilder.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface ContactSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.ContactSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Privacy setting for the contacts associated with the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for privacy. - */ - int getPrivacyValue(); - /** - * - * - *
-   * Required. Privacy setting for the contacts associated with the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The privacy. - */ - com.google.cloud.domains.v1.ContactPrivacy getPrivacy(); - - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registrantContact field is set. - */ - boolean hasRegistrantContact(); - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registrantContact. - */ - com.google.cloud.domains.v1.ContactSettings.Contact getRegistrantContact(); - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder getRegistrantContactOrBuilder(); - - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the adminContact field is set. - */ - boolean hasAdminContact(); - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The adminContact. - */ - com.google.cloud.domains.v1.ContactSettings.Contact getAdminContact(); - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder getAdminContactOrBuilder(); - - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the technicalContact field is set. - */ - boolean hasTechnicalContact(); - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The technicalContact. - */ - com.google.cloud.domains.v1.ContactSettings.Contact getTechnicalContact(); - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1.ContactSettings.ContactOrBuilder getTechnicalContactOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DeleteRegistrationRequest.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DeleteRegistrationRequest.java deleted file mode 100644 index 96f0e016..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DeleteRegistrationRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Request for the `DeleteRegistration` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.DeleteRegistrationRequest} - */ -public final class DeleteRegistrationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.DeleteRegistrationRequest) - DeleteRegistrationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteRegistrationRequest.newBuilder() to construct. - private DeleteRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteRegistrationRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteRegistrationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DeleteRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DeleteRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.DeleteRegistrationRequest.class, - com.google.cloud.domains.v1.DeleteRegistrationRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the `Registration` to delete,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` to delete,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.DeleteRegistrationRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.DeleteRegistrationRequest other = - (com.google.cloud.domains.v1.DeleteRegistrationRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.DeleteRegistrationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DeleteRegistrationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DeleteRegistrationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DeleteRegistrationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DeleteRegistrationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DeleteRegistrationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DeleteRegistrationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DeleteRegistrationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DeleteRegistrationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DeleteRegistrationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DeleteRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DeleteRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1.DeleteRegistrationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `DeleteRegistration` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.DeleteRegistrationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.DeleteRegistrationRequest) - com.google.cloud.domains.v1.DeleteRegistrationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DeleteRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DeleteRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.DeleteRegistrationRequest.class, - com.google.cloud.domains.v1.DeleteRegistrationRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.DeleteRegistrationRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DeleteRegistrationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DeleteRegistrationRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1.DeleteRegistrationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.DeleteRegistrationRequest build() { - com.google.cloud.domains.v1.DeleteRegistrationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DeleteRegistrationRequest buildPartial() { - com.google.cloud.domains.v1.DeleteRegistrationRequest result = - new com.google.cloud.domains.v1.DeleteRegistrationRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.DeleteRegistrationRequest) { - return mergeFrom((com.google.cloud.domains.v1.DeleteRegistrationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.DeleteRegistrationRequest other) { - if (other == com.google.cloud.domains.v1.DeleteRegistrationRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` to delete,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to delete,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to delete,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to delete,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to delete,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.DeleteRegistrationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.DeleteRegistrationRequest) - private static final com.google.cloud.domains.v1.DeleteRegistrationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.DeleteRegistrationRequest(); - } - - public static com.google.cloud.domains.v1.DeleteRegistrationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRegistrationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DeleteRegistrationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DeleteRegistrationRequestOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DeleteRegistrationRequestOrBuilder.java deleted file mode 100644 index 334012bf..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DeleteRegistrationRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface DeleteRegistrationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.DeleteRegistrationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` to delete,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the `Registration` to delete,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DnsSettings.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DnsSettings.java deleted file mode 100644 index 61de4217..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DnsSettings.java +++ /dev/null @@ -1,8019 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Defines the DNS configuration of a `Registration`, including name servers,
- * DNSSEC, and glue records.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.DnsSettings} - */ -public final class DnsSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.DnsSettings) - DnsSettingsOrBuilder { - private static final long serialVersionUID = 0L; - // Use DnsSettings.newBuilder() to construct. - private DnsSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DnsSettings() { - glueRecords_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DnsSettings(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.DnsSettings.class, - com.google.cloud.domains.v1.DnsSettings.Builder.class); - } - - /** - * - * - *
-   * The publication state of DS records for a `Registration`.
-   * 
- * - * Protobuf enum {@code google.cloud.domains.v1.DnsSettings.DsState} - */ - public enum DsState implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * DS state is unspecified.
-     * 
- * - * DS_STATE_UNSPECIFIED = 0; - */ - DS_STATE_UNSPECIFIED(0), - /** - * - * - *
-     * DNSSEC is disabled for this domain. No DS records for this domain are
-     * published in the parent DNS zone.
-     * 
- * - * DS_RECORDS_UNPUBLISHED = 1; - */ - DS_RECORDS_UNPUBLISHED(1), - /** - * - * - *
-     * DNSSEC is enabled for this domain. Appropriate DS records for this domain
-     * are published in the parent DNS zone. This option is valid only if the
-     * DNS zone referenced in the `Registration`'s `dns_provider` field is
-     * already DNSSEC-signed.
-     * 
- * - * DS_RECORDS_PUBLISHED = 2; - */ - DS_RECORDS_PUBLISHED(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * DS state is unspecified.
-     * 
- * - * DS_STATE_UNSPECIFIED = 0; - */ - public static final int DS_STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * DNSSEC is disabled for this domain. No DS records for this domain are
-     * published in the parent DNS zone.
-     * 
- * - * DS_RECORDS_UNPUBLISHED = 1; - */ - public static final int DS_RECORDS_UNPUBLISHED_VALUE = 1; - /** - * - * - *
-     * DNSSEC is enabled for this domain. Appropriate DS records for this domain
-     * are published in the parent DNS zone. This option is valid only if the
-     * DNS zone referenced in the `Registration`'s `dns_provider` field is
-     * already DNSSEC-signed.
-     * 
- * - * DS_RECORDS_PUBLISHED = 2; - */ - public static final int DS_RECORDS_PUBLISHED_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 DsState 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 DsState forNumber(int value) { - switch (value) { - case 0: - return DS_STATE_UNSPECIFIED; - case 1: - return DS_RECORDS_UNPUBLISHED; - case 2: - return DS_RECORDS_PUBLISHED; - 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 DsState findValueByNumber(int number) { - return DsState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1.DnsSettings.getDescriptor().getEnumTypes().get(0); - } - - private static final DsState[] VALUES = values(); - - public static DsState 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 DsState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1.DnsSettings.DsState) - } - - public interface CustomDnsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.DnsSettings.CustomDns) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the nameServers. - */ - java.util.List getNameServersList(); - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of nameServers. - */ - int getNameServersCount(); - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - java.lang.String getNameServers(int index); - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - com.google.protobuf.ByteString getNameServersBytes(int index); - - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - java.util.List getDsRecordsList(); - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - com.google.cloud.domains.v1.DnsSettings.DsRecord getDsRecords(int index); - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - int getDsRecordsCount(); - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - java.util.List - getDsRecordsOrBuilderList(); - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - com.google.cloud.domains.v1.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder(int index); - } - /** - * - * - *
-   * Configuration for an arbitrary DNS provider.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.DnsSettings.CustomDns} - */ - public static final class CustomDns extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.DnsSettings.CustomDns) - CustomDnsOrBuilder { - private static final long serialVersionUID = 0L; - // Use CustomDns.newBuilder() to construct. - private CustomDns(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CustomDns() { - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - dsRecords_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CustomDns(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_CustomDns_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_CustomDns_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.DnsSettings.CustomDns.class, - com.google.cloud.domains.v1.DnsSettings.CustomDns.Builder.class); - } - - public static final int NAME_SERVERS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList nameServers_; - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_; - } - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - - public static final int DS_RECORDS_FIELD_NUMBER = 2; - private java.util.List dsRecords_; - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - @java.lang.Override - public java.util.List getDsRecordsList() { - return dsRecords_; - } - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - @java.lang.Override - public java.util.List - getDsRecordsOrBuilderList() { - return dsRecords_; - } - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - @java.lang.Override - public int getDsRecordsCount() { - return dsRecords_.size(); - } - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.DsRecord getDsRecords(int index) { - return dsRecords_.get(index); - } - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder( - int index) { - return dsRecords_.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 < nameServers_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nameServers_.getRaw(i)); - } - for (int i = 0; i < dsRecords_.size(); i++) { - output.writeMessage(2, dsRecords_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < nameServers_.size(); i++) { - dataSize += computeStringSizeNoTag(nameServers_.getRaw(i)); - } - size += dataSize; - size += 1 * getNameServersList().size(); - } - for (int i = 0; i < dsRecords_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dsRecords_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.DnsSettings.CustomDns)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.DnsSettings.CustomDns other = - (com.google.cloud.domains.v1.DnsSettings.CustomDns) obj; - - if (!getNameServersList().equals(other.getNameServersList())) return false; - if (!getDsRecordsList().equals(other.getDsRecordsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNameServersCount() > 0) { - hash = (37 * hash) + NAME_SERVERS_FIELD_NUMBER; - hash = (53 * hash) + getNameServersList().hashCode(); - } - if (getDsRecordsCount() > 0) { - hash = (37 * hash) + DS_RECORDS_FIELD_NUMBER; - hash = (53 * hash) + getDsRecordsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.DnsSettings.CustomDns parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DnsSettings.CustomDns parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.CustomDns parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DnsSettings.CustomDns parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.CustomDns parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DnsSettings.CustomDns parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.CustomDns parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DnsSettings.CustomDns parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.CustomDns parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DnsSettings.CustomDns parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.CustomDns parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DnsSettings.CustomDns parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1.DnsSettings.CustomDns prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 an arbitrary DNS provider.
-     * 
- * - * Protobuf type {@code google.cloud.domains.v1.DnsSettings.CustomDns} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.DnsSettings.CustomDns) - com.google.cloud.domains.v1.DnsSettings.CustomDnsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_CustomDns_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_CustomDns_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.DnsSettings.CustomDns.class, - com.google.cloud.domains.v1.DnsSettings.CustomDns.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.DnsSettings.CustomDns.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (dsRecordsBuilder_ == null) { - dsRecords_ = java.util.Collections.emptyList(); - } else { - dsRecords_ = null; - dsRecordsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_CustomDns_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.CustomDns getDefaultInstanceForType() { - return com.google.cloud.domains.v1.DnsSettings.CustomDns.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.CustomDns build() { - com.google.cloud.domains.v1.DnsSettings.CustomDns result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.CustomDns buildPartial() { - com.google.cloud.domains.v1.DnsSettings.CustomDns result = - new com.google.cloud.domains.v1.DnsSettings.CustomDns(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - nameServers_ = nameServers_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nameServers_ = nameServers_; - if (dsRecordsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - dsRecords_ = java.util.Collections.unmodifiableList(dsRecords_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.dsRecords_ = dsRecords_; - } else { - result.dsRecords_ = dsRecordsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.DnsSettings.CustomDns) { - return mergeFrom((com.google.cloud.domains.v1.DnsSettings.CustomDns) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.DnsSettings.CustomDns other) { - if (other == com.google.cloud.domains.v1.DnsSettings.CustomDns.getDefaultInstance()) - return this; - if (!other.nameServers_.isEmpty()) { - if (nameServers_.isEmpty()) { - nameServers_ = other.nameServers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNameServersIsMutable(); - nameServers_.addAll(other.nameServers_); - } - onChanged(); - } - if (dsRecordsBuilder_ == null) { - if (!other.dsRecords_.isEmpty()) { - if (dsRecords_.isEmpty()) { - dsRecords_ = other.dsRecords_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDsRecordsIsMutable(); - dsRecords_.addAll(other.dsRecords_); - } - onChanged(); - } - } else { - if (!other.dsRecords_.isEmpty()) { - if (dsRecordsBuilder_.isEmpty()) { - dsRecordsBuilder_.dispose(); - dsRecordsBuilder_ = null; - dsRecords_ = other.dsRecords_; - bitField0_ = (bitField0_ & ~0x00000002); - dsRecordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDsRecordsFieldBuilder() - : null; - } else { - dsRecordsBuilder_.addAllMessages(other.dsRecords_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureNameServersIsMutable(); - nameServers_.add(s); - break; - } // case 10 - case 18: - { - com.google.cloud.domains.v1.DnsSettings.DsRecord m = - input.readMessage( - com.google.cloud.domains.v1.DnsSettings.DsRecord.parser(), - extensionRegistry); - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(m); - } else { - dsRecordsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList nameServers_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureNameServersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nameServers_ = new com.google.protobuf.LazyStringArrayList(nameServers_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_.getUnmodifiableView(); - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index to set the value at. - * @param value The nameServers to set. - * @return This builder for chaining. - */ - public Builder setNameServers(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServers(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param values The nameServers to add. - * @return This builder for chaining. - */ - public Builder addAllNameServers(java.lang.Iterable values) { - ensureNameServersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nameServers_); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearNameServers() { - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes of the nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServersBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - - private java.util.List dsRecords_ = - java.util.Collections.emptyList(); - - private void ensureDsRecordsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - dsRecords_ = - new java.util.ArrayList(dsRecords_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings.DsRecord, - com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1.DnsSettings.DsRecordOrBuilder> - dsRecordsBuilder_; - - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public java.util.List getDsRecordsList() { - if (dsRecordsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dsRecords_); - } else { - return dsRecordsBuilder_.getMessageList(); - } - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public int getDsRecordsCount() { - if (dsRecordsBuilder_ == null) { - return dsRecords_.size(); - } else { - return dsRecordsBuilder_.getCount(); - } - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public com.google.cloud.domains.v1.DnsSettings.DsRecord getDsRecords(int index) { - if (dsRecordsBuilder_ == null) { - return dsRecords_.get(index); - } else { - return dsRecordsBuilder_.getMessage(index); - } - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder setDsRecords( - int index, com.google.cloud.domains.v1.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.set(index, value); - onChanged(); - } else { - dsRecordsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder setDsRecords( - int index, com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.set(index, builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder addDsRecords(com.google.cloud.domains.v1.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.add(value); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder addDsRecords( - int index, com.google.cloud.domains.v1.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.add(index, value); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder addDsRecords( - com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder addDsRecords( - int index, com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(index, builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder addAllDsRecords( - java.lang.Iterable values) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dsRecords_); - onChanged(); - } else { - dsRecordsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder clearDsRecords() { - if (dsRecordsBuilder_ == null) { - dsRecords_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - dsRecordsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder removeDsRecords(int index) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.remove(index); - onChanged(); - } else { - dsRecordsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder getDsRecordsBuilder( - int index) { - return getDsRecordsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public com.google.cloud.domains.v1.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder( - int index) { - if (dsRecordsBuilder_ == null) { - return dsRecords_.get(index); - } else { - return dsRecordsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public java.util.List - getDsRecordsOrBuilderList() { - if (dsRecordsBuilder_ != null) { - return dsRecordsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dsRecords_); - } - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder addDsRecordsBuilder() { - return getDsRecordsFieldBuilder() - .addBuilder(com.google.cloud.domains.v1.DnsSettings.DsRecord.getDefaultInstance()); - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder addDsRecordsBuilder( - int index) { - return getDsRecordsFieldBuilder() - .addBuilder( - index, com.google.cloud.domains.v1.DnsSettings.DsRecord.getDefaultInstance()); - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - public java.util.List - getDsRecordsBuilderList() { - return getDsRecordsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings.DsRecord, - com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1.DnsSettings.DsRecordOrBuilder> - getDsRecordsFieldBuilder() { - if (dsRecordsBuilder_ == null) { - dsRecordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings.DsRecord, - com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1.DnsSettings.DsRecordOrBuilder>( - dsRecords_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - dsRecords_ = null; - } - return dsRecordsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.DnsSettings.CustomDns) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.DnsSettings.CustomDns) - private static final com.google.cloud.domains.v1.DnsSettings.CustomDns DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.DnsSettings.CustomDns(); - } - - public static com.google.cloud.domains.v1.DnsSettings.CustomDns getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomDns parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.CustomDns getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface GoogleDomainsDnsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.DnsSettings.GoogleDomainsDns) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the nameServers. - */ - java.util.List getNameServersList(); - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of nameServers. - */ - int getNameServersCount(); - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - java.lang.String getNameServers(int index); - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - com.google.protobuf.ByteString getNameServersBytes(int index); - - /** - * - * - *
-     * Required. The state of DS records for this domain. Used to enable or disable
-     * automatic DNSSEC.
-     * 
- * - * - * .google.cloud.domains.v1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for dsState. - */ - int getDsStateValue(); - /** - * - * - *
-     * Required. The state of DS records for this domain. Used to enable or disable
-     * automatic DNSSEC.
-     * 
- * - * - * .google.cloud.domains.v1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dsState. - */ - com.google.cloud.domains.v1.DnsSettings.DsState getDsState(); - - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getDsRecordsList(); - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.domains.v1.DnsSettings.DsRecord getDsRecords(int index); - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getDsRecordsCount(); - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getDsRecordsOrBuilderList(); - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.domains.v1.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder(int index); - } - /** - * - * - *
-   * Configuration for using the free DNS zone provided by Google Domains as a
-   * `Registration`'s `dns_provider`. You cannot configure the DNS zone itself
-   * using the API. To configure the DNS zone, go to
-   * [Google Domains](https://domains.google/).
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.DnsSettings.GoogleDomainsDns} - */ - public static final class GoogleDomainsDns extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.DnsSettings.GoogleDomainsDns) - GoogleDomainsDnsOrBuilder { - private static final long serialVersionUID = 0L; - // Use GoogleDomainsDns.newBuilder() to construct. - private GoogleDomainsDns(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GoogleDomainsDns() { - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - dsState_ = 0; - dsRecords_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GoogleDomainsDns(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_GoogleDomainsDns_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_GoogleDomainsDns_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.class, - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.Builder.class); - } - - public static final int NAME_SERVERS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList nameServers_; - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_; - } - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - - public static final int DS_STATE_FIELD_NUMBER = 2; - private int dsState_; - /** - * - * - *
-     * Required. The state of DS records for this domain. Used to enable or disable
-     * automatic DNSSEC.
-     * 
- * - * - * .google.cloud.domains.v1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for dsState. - */ - @java.lang.Override - public int getDsStateValue() { - return dsState_; - } - /** - * - * - *
-     * Required. The state of DS records for this domain. Used to enable or disable
-     * automatic DNSSEC.
-     * 
- * - * - * .google.cloud.domains.v1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dsState. - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.DsState getDsState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.DnsSettings.DsState result = - com.google.cloud.domains.v1.DnsSettings.DsState.valueOf(dsState_); - return result == null ? com.google.cloud.domains.v1.DnsSettings.DsState.UNRECOGNIZED : result; - } - - public static final int DS_RECORDS_FIELD_NUMBER = 3; - private java.util.List dsRecords_; - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getDsRecordsList() { - return dsRecords_; - } - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getDsRecordsOrBuilderList() { - return dsRecords_; - } - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getDsRecordsCount() { - return dsRecords_.size(); - } - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.DsRecord getDsRecords(int index) { - return dsRecords_.get(index); - } - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder( - int index) { - return dsRecords_.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 < nameServers_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nameServers_.getRaw(i)); - } - if (dsState_ - != com.google.cloud.domains.v1.DnsSettings.DsState.DS_STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, dsState_); - } - for (int i = 0; i < dsRecords_.size(); i++) { - output.writeMessage(3, dsRecords_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < nameServers_.size(); i++) { - dataSize += computeStringSizeNoTag(nameServers_.getRaw(i)); - } - size += dataSize; - size += 1 * getNameServersList().size(); - } - if (dsState_ - != com.google.cloud.domains.v1.DnsSettings.DsState.DS_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, dsState_); - } - for (int i = 0; i < dsRecords_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, dsRecords_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns other = - (com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns) obj; - - if (!getNameServersList().equals(other.getNameServersList())) return false; - if (dsState_ != other.dsState_) return false; - if (!getDsRecordsList().equals(other.getDsRecordsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNameServersCount() > 0) { - hash = (37 * hash) + NAME_SERVERS_FIELD_NUMBER; - hash = (53 * hash) + getNameServersList().hashCode(); - } - hash = (37 * hash) + DS_STATE_FIELD_NUMBER; - hash = (53 * hash) + dsState_; - if (getDsRecordsCount() > 0) { - hash = (37 * hash) + DS_RECORDS_FIELD_NUMBER; - hash = (53 * hash) + getDsRecordsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 using the free DNS zone provided by Google Domains as a
-     * `Registration`'s `dns_provider`. You cannot configure the DNS zone itself
-     * using the API. To configure the DNS zone, go to
-     * [Google Domains](https://domains.google/).
-     * 
- * - * Protobuf type {@code google.cloud.domains.v1.DnsSettings.GoogleDomainsDns} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.DnsSettings.GoogleDomainsDns) - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDnsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_GoogleDomainsDns_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_GoogleDomainsDns_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.class, - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - dsState_ = 0; - - if (dsRecordsBuilder_ == null) { - dsRecords_ = java.util.Collections.emptyList(); - } else { - dsRecords_ = null; - dsRecordsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_GoogleDomainsDns_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns getDefaultInstanceForType() { - return com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns build() { - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns buildPartial() { - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns result = - new com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - nameServers_ = nameServers_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nameServers_ = nameServers_; - result.dsState_ = dsState_; - if (dsRecordsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - dsRecords_ = java.util.Collections.unmodifiableList(dsRecords_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.dsRecords_ = dsRecords_; - } else { - result.dsRecords_ = dsRecordsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns) { - return mergeFrom((com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns other) { - if (other == com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.getDefaultInstance()) - return this; - if (!other.nameServers_.isEmpty()) { - if (nameServers_.isEmpty()) { - nameServers_ = other.nameServers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNameServersIsMutable(); - nameServers_.addAll(other.nameServers_); - } - onChanged(); - } - if (other.dsState_ != 0) { - setDsStateValue(other.getDsStateValue()); - } - if (dsRecordsBuilder_ == null) { - if (!other.dsRecords_.isEmpty()) { - if (dsRecords_.isEmpty()) { - dsRecords_ = other.dsRecords_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDsRecordsIsMutable(); - dsRecords_.addAll(other.dsRecords_); - } - onChanged(); - } - } else { - if (!other.dsRecords_.isEmpty()) { - if (dsRecordsBuilder_.isEmpty()) { - dsRecordsBuilder_.dispose(); - dsRecordsBuilder_ = null; - dsRecords_ = other.dsRecords_; - bitField0_ = (bitField0_ & ~0x00000002); - dsRecordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDsRecordsFieldBuilder() - : null; - } else { - dsRecordsBuilder_.addAllMessages(other.dsRecords_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureNameServersIsMutable(); - nameServers_.add(s); - break; - } // case 10 - case 16: - { - dsState_ = input.readEnum(); - - break; - } // case 16 - case 26: - { - com.google.cloud.domains.v1.DnsSettings.DsRecord m = - input.readMessage( - com.google.cloud.domains.v1.DnsSettings.DsRecord.parser(), - extensionRegistry); - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(m); - } else { - dsRecordsBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList nameServers_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureNameServersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nameServers_ = new com.google.protobuf.LazyStringArrayList(nameServers_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_.getUnmodifiableView(); - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index to set the value at. - * @param value The nameServers to set. - * @return This builder for chaining. - */ - public Builder setNameServers(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServers(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param values The nameServers to add. - * @return This builder for chaining. - */ - public Builder addAllNameServers(java.lang.Iterable values) { - ensureNameServersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nameServers_); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearNameServers() { - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes of the nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServersBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - - private int dsState_ = 0; - /** - * - * - *
-       * Required. The state of DS records for this domain. Used to enable or disable
-       * automatic DNSSEC.
-       * 
- * - * - * .google.cloud.domains.v1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for dsState. - */ - @java.lang.Override - public int getDsStateValue() { - return dsState_; - } - /** - * - * - *
-       * Required. The state of DS records for this domain. Used to enable or disable
-       * automatic DNSSEC.
-       * 
- * - * - * .google.cloud.domains.v1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for dsState to set. - * @return This builder for chaining. - */ - public Builder setDsStateValue(int value) { - - dsState_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Required. The state of DS records for this domain. Used to enable or disable
-       * automatic DNSSEC.
-       * 
- * - * - * .google.cloud.domains.v1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dsState. - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.DsState getDsState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.DnsSettings.DsState result = - com.google.cloud.domains.v1.DnsSettings.DsState.valueOf(dsState_); - return result == null - ? com.google.cloud.domains.v1.DnsSettings.DsState.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Required. The state of DS records for this domain. Used to enable or disable
-       * automatic DNSSEC.
-       * 
- * - * - * .google.cloud.domains.v1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The dsState to set. - * @return This builder for chaining. - */ - public Builder setDsState(com.google.cloud.domains.v1.DnsSettings.DsState value) { - if (value == null) { - throw new NullPointerException(); - } - - dsState_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. The state of DS records for this domain. Used to enable or disable
-       * automatic DNSSEC.
-       * 
- * - * - * .google.cloud.domains.v1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearDsState() { - - dsState_ = 0; - onChanged(); - return this; - } - - private java.util.List dsRecords_ = - java.util.Collections.emptyList(); - - private void ensureDsRecordsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - dsRecords_ = - new java.util.ArrayList(dsRecords_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings.DsRecord, - com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1.DnsSettings.DsRecordOrBuilder> - dsRecordsBuilder_; - - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getDsRecordsList() { - if (dsRecordsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dsRecords_); - } else { - return dsRecordsBuilder_.getMessageList(); - } - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getDsRecordsCount() { - if (dsRecordsBuilder_ == null) { - return dsRecords_.size(); - } else { - return dsRecordsBuilder_.getCount(); - } - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1.DnsSettings.DsRecord getDsRecords(int index) { - if (dsRecordsBuilder_ == null) { - return dsRecords_.get(index); - } else { - return dsRecordsBuilder_.getMessage(index); - } - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDsRecords( - int index, com.google.cloud.domains.v1.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.set(index, value); - onChanged(); - } else { - dsRecordsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDsRecords( - int index, com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.set(index, builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addDsRecords(com.google.cloud.domains.v1.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.add(value); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addDsRecords( - int index, com.google.cloud.domains.v1.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.add(index, value); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addDsRecords( - com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addDsRecords( - int index, com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(index, builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllDsRecords( - java.lang.Iterable values) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dsRecords_); - onChanged(); - } else { - dsRecordsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearDsRecords() { - if (dsRecordsBuilder_ == null) { - dsRecords_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - dsRecordsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeDsRecords(int index) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.remove(index); - onChanged(); - } else { - dsRecordsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder getDsRecordsBuilder( - int index) { - return getDsRecordsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder( - int index) { - if (dsRecordsBuilder_ == null) { - return dsRecords_.get(index); - } else { - return dsRecordsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getDsRecordsOrBuilderList() { - if (dsRecordsBuilder_ != null) { - return dsRecordsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dsRecords_); - } - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder addDsRecordsBuilder() { - return getDsRecordsFieldBuilder() - .addBuilder(com.google.cloud.domains.v1.DnsSettings.DsRecord.getDefaultInstance()); - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder addDsRecordsBuilder( - int index) { - return getDsRecordsFieldBuilder() - .addBuilder( - index, com.google.cloud.domains.v1.DnsSettings.DsRecord.getDefaultInstance()); - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getDsRecordsBuilderList() { - return getDsRecordsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings.DsRecord, - com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1.DnsSettings.DsRecordOrBuilder> - getDsRecordsFieldBuilder() { - if (dsRecordsBuilder_ == null) { - dsRecordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings.DsRecord, - com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1.DnsSettings.DsRecordOrBuilder>( - dsRecords_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - dsRecords_ = null; - } - return dsRecordsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.DnsSettings.GoogleDomainsDns) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.DnsSettings.GoogleDomainsDns) - private static final com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns(); - } - - public static com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GoogleDomainsDns parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface DsRecordOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.DnsSettings.DsRecord) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The key tag of the record. Must be set in range 0 -- 65535.
-     * 
- * - * int32 key_tag = 1; - * - * @return The keyTag. - */ - int getKeyTag(); - - /** - * - * - *
-     * The algorithm used to generate the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The enum numeric value on the wire for algorithm. - */ - int getAlgorithmValue(); - /** - * - * - *
-     * The algorithm used to generate the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The algorithm. - */ - com.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm getAlgorithm(); - - /** - * - * - *
-     * The hash function used to generate the digest of the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return The enum numeric value on the wire for digestType. - */ - int getDigestTypeValue(); - /** - * - * - *
-     * The hash function used to generate the digest of the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return The digestType. - */ - com.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType getDigestType(); - - /** - * - * - *
-     * The digest generated from the referenced DNSKEY.
-     * 
- * - * string digest = 4; - * - * @return The digest. - */ - java.lang.String getDigest(); - /** - * - * - *
-     * The digest generated from the referenced DNSKEY.
-     * 
- * - * string digest = 4; - * - * @return The bytes for digest. - */ - com.google.protobuf.ByteString getDigestBytes(); - } - /** - * - * - *
-   * Defines a Delegation Signer (DS) record, which is needed to enable DNSSEC
-   * for a domain. It contains a digest (hash) of a DNSKEY record that must be
-   * present in the domain's DNS zone.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.DnsSettings.DsRecord} - */ - public static final class DsRecord extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.DnsSettings.DsRecord) - DsRecordOrBuilder { - private static final long serialVersionUID = 0L; - // Use DsRecord.newBuilder() to construct. - private DsRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DsRecord() { - algorithm_ = 0; - digestType_ = 0; - digest_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DsRecord(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_DsRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_DsRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.DnsSettings.DsRecord.class, - com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder.class); - } - - /** - * - * - *
-     * List of algorithms used to create a DNSKEY. Certain
-     * algorithms are not supported for particular domains.
-     * 
- * - * Protobuf enum {@code google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm} - */ - public enum Algorithm implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * The algorithm is unspecified.
-       * 
- * - * ALGORITHM_UNSPECIFIED = 0; - */ - ALGORITHM_UNSPECIFIED(0), - /** - * - * - *
-       * RSA/MD5. Cannot be used for new deployments.
-       * 
- * - * RSAMD5 = 1; - */ - RSAMD5(1), - /** - * - * - *
-       * Diffie-Hellman. Cannot be used for new deployments.
-       * 
- * - * DH = 2; - */ - DH(2), - /** - * - * - *
-       * DSA/SHA1. Not recommended for new deployments.
-       * 
- * - * DSA = 3; - */ - DSA(3), - /** - * - * - *
-       * ECC. Not recommended for new deployments.
-       * 
- * - * ECC = 4; - */ - ECC(4), - /** - * - * - *
-       * RSA/SHA-1. Not recommended for new deployments.
-       * 
- * - * RSASHA1 = 5; - */ - RSASHA1(5), - /** - * - * - *
-       * DSA-NSEC3-SHA1. Not recommended for new deployments.
-       * 
- * - * DSANSEC3SHA1 = 6; - */ - DSANSEC3SHA1(6), - /** - * - * - *
-       * RSA/SHA1-NSEC3-SHA1. Not recommended for new deployments.
-       * 
- * - * RSASHA1NSEC3SHA1 = 7; - */ - RSASHA1NSEC3SHA1(7), - /** - * - * - *
-       * RSA/SHA-256.
-       * 
- * - * RSASHA256 = 8; - */ - RSASHA256(8), - /** - * - * - *
-       * RSA/SHA-512.
-       * 
- * - * RSASHA512 = 10; - */ - RSASHA512(10), - /** - * - * - *
-       * GOST R 34.10-2001.
-       * 
- * - * ECCGOST = 12; - */ - ECCGOST(12), - /** - * - * - *
-       * ECDSA Curve P-256 with SHA-256.
-       * 
- * - * ECDSAP256SHA256 = 13; - */ - ECDSAP256SHA256(13), - /** - * - * - *
-       * ECDSA Curve P-384 with SHA-384.
-       * 
- * - * ECDSAP384SHA384 = 14; - */ - ECDSAP384SHA384(14), - /** - * - * - *
-       * Ed25519.
-       * 
- * - * ED25519 = 15; - */ - ED25519(15), - /** - * - * - *
-       * Ed448.
-       * 
- * - * ED448 = 16; - */ - ED448(16), - /** - * - * - *
-       * Reserved for Indirect Keys. Cannot be used for new deployments.
-       * 
- * - * INDIRECT = 252; - */ - INDIRECT(252), - /** - * - * - *
-       * Private algorithm. Cannot be used for new deployments.
-       * 
- * - * PRIVATEDNS = 253; - */ - PRIVATEDNS(253), - /** - * - * - *
-       * Private algorithm OID. Cannot be used for new deployments.
-       * 
- * - * PRIVATEOID = 254; - */ - PRIVATEOID(254), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * The algorithm is unspecified.
-       * 
- * - * ALGORITHM_UNSPECIFIED = 0; - */ - public static final int ALGORITHM_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * RSA/MD5. Cannot be used for new deployments.
-       * 
- * - * RSAMD5 = 1; - */ - public static final int RSAMD5_VALUE = 1; - /** - * - * - *
-       * Diffie-Hellman. Cannot be used for new deployments.
-       * 
- * - * DH = 2; - */ - public static final int DH_VALUE = 2; - /** - * - * - *
-       * DSA/SHA1. Not recommended for new deployments.
-       * 
- * - * DSA = 3; - */ - public static final int DSA_VALUE = 3; - /** - * - * - *
-       * ECC. Not recommended for new deployments.
-       * 
- * - * ECC = 4; - */ - public static final int ECC_VALUE = 4; - /** - * - * - *
-       * RSA/SHA-1. Not recommended for new deployments.
-       * 
- * - * RSASHA1 = 5; - */ - public static final int RSASHA1_VALUE = 5; - /** - * - * - *
-       * DSA-NSEC3-SHA1. Not recommended for new deployments.
-       * 
- * - * DSANSEC3SHA1 = 6; - */ - public static final int DSANSEC3SHA1_VALUE = 6; - /** - * - * - *
-       * RSA/SHA1-NSEC3-SHA1. Not recommended for new deployments.
-       * 
- * - * RSASHA1NSEC3SHA1 = 7; - */ - public static final int RSASHA1NSEC3SHA1_VALUE = 7; - /** - * - * - *
-       * RSA/SHA-256.
-       * 
- * - * RSASHA256 = 8; - */ - public static final int RSASHA256_VALUE = 8; - /** - * - * - *
-       * RSA/SHA-512.
-       * 
- * - * RSASHA512 = 10; - */ - public static final int RSASHA512_VALUE = 10; - /** - * - * - *
-       * GOST R 34.10-2001.
-       * 
- * - * ECCGOST = 12; - */ - public static final int ECCGOST_VALUE = 12; - /** - * - * - *
-       * ECDSA Curve P-256 with SHA-256.
-       * 
- * - * ECDSAP256SHA256 = 13; - */ - public static final int ECDSAP256SHA256_VALUE = 13; - /** - * - * - *
-       * ECDSA Curve P-384 with SHA-384.
-       * 
- * - * ECDSAP384SHA384 = 14; - */ - public static final int ECDSAP384SHA384_VALUE = 14; - /** - * - * - *
-       * Ed25519.
-       * 
- * - * ED25519 = 15; - */ - public static final int ED25519_VALUE = 15; - /** - * - * - *
-       * Ed448.
-       * 
- * - * ED448 = 16; - */ - public static final int ED448_VALUE = 16; - /** - * - * - *
-       * Reserved for Indirect Keys. Cannot be used for new deployments.
-       * 
- * - * INDIRECT = 252; - */ - public static final int INDIRECT_VALUE = 252; - /** - * - * - *
-       * Private algorithm. Cannot be used for new deployments.
-       * 
- * - * PRIVATEDNS = 253; - */ - public static final int PRIVATEDNS_VALUE = 253; - /** - * - * - *
-       * Private algorithm OID. Cannot be used for new deployments.
-       * 
- * - * PRIVATEOID = 254; - */ - public static final int PRIVATEOID_VALUE = 254; - - 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 Algorithm 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 Algorithm forNumber(int value) { - switch (value) { - case 0: - return ALGORITHM_UNSPECIFIED; - case 1: - return RSAMD5; - case 2: - return DH; - case 3: - return DSA; - case 4: - return ECC; - case 5: - return RSASHA1; - case 6: - return DSANSEC3SHA1; - case 7: - return RSASHA1NSEC3SHA1; - case 8: - return RSASHA256; - case 10: - return RSASHA512; - case 12: - return ECCGOST; - case 13: - return ECDSAP256SHA256; - case 14: - return ECDSAP384SHA384; - case 15: - return ED25519; - case 16: - return ED448; - case 252: - return INDIRECT; - case 253: - return PRIVATEDNS; - case 254: - return PRIVATEOID; - 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 Algorithm findValueByNumber(int number) { - return Algorithm.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1.DnsSettings.DsRecord.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Algorithm[] VALUES = values(); - - public static Algorithm 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 Algorithm(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm) - } - - /** - * - * - *
-     * List of hash functions that may have been used to generate a digest of a
-     * DNSKEY.
-     * 
- * - * Protobuf enum {@code google.cloud.domains.v1.DnsSettings.DsRecord.DigestType} - */ - public enum DigestType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * The DigestType is unspecified.
-       * 
- * - * DIGEST_TYPE_UNSPECIFIED = 0; - */ - DIGEST_TYPE_UNSPECIFIED(0), - /** - * - * - *
-       * SHA-1. Not recommended for new deployments.
-       * 
- * - * SHA1 = 1; - */ - SHA1(1), - /** - * - * - *
-       * SHA-256.
-       * 
- * - * SHA256 = 2; - */ - SHA256(2), - /** - * - * - *
-       * GOST R 34.11-94.
-       * 
- * - * GOST3411 = 3; - */ - GOST3411(3), - /** - * - * - *
-       * SHA-384.
-       * 
- * - * SHA384 = 4; - */ - SHA384(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * The DigestType is unspecified.
-       * 
- * - * DIGEST_TYPE_UNSPECIFIED = 0; - */ - public static final int DIGEST_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * SHA-1. Not recommended for new deployments.
-       * 
- * - * SHA1 = 1; - */ - public static final int SHA1_VALUE = 1; - /** - * - * - *
-       * SHA-256.
-       * 
- * - * SHA256 = 2; - */ - public static final int SHA256_VALUE = 2; - /** - * - * - *
-       * GOST R 34.11-94.
-       * 
- * - * GOST3411 = 3; - */ - public static final int GOST3411_VALUE = 3; - /** - * - * - *
-       * SHA-384.
-       * 
- * - * SHA384 = 4; - */ - public static final int SHA384_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 DigestType 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 DigestType forNumber(int value) { - switch (value) { - case 0: - return DIGEST_TYPE_UNSPECIFIED; - case 1: - return SHA1; - case 2: - return SHA256; - case 3: - return GOST3411; - case 4: - return SHA384; - 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 DigestType findValueByNumber(int number) { - return DigestType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1.DnsSettings.DsRecord.getDescriptor() - .getEnumTypes() - .get(1); - } - - private static final DigestType[] VALUES = values(); - - public static DigestType 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 DigestType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1.DnsSettings.DsRecord.DigestType) - } - - public static final int KEY_TAG_FIELD_NUMBER = 1; - private int keyTag_; - /** - * - * - *
-     * The key tag of the record. Must be set in range 0 -- 65535.
-     * 
- * - * int32 key_tag = 1; - * - * @return The keyTag. - */ - @java.lang.Override - public int getKeyTag() { - return keyTag_; - } - - public static final int ALGORITHM_FIELD_NUMBER = 2; - private int algorithm_; - /** - * - * - *
-     * The algorithm used to generate the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The enum numeric value on the wire for algorithm. - */ - @java.lang.Override - public int getAlgorithmValue() { - return algorithm_; - } - /** - * - * - *
-     * The algorithm used to generate the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The algorithm. - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm getAlgorithm() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm result = - com.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm.valueOf(algorithm_); - return result == null - ? com.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm.UNRECOGNIZED - : result; - } - - public static final int DIGEST_TYPE_FIELD_NUMBER = 3; - private int digestType_; - /** - * - * - *
-     * The hash function used to generate the digest of the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return The enum numeric value on the wire for digestType. - */ - @java.lang.Override - public int getDigestTypeValue() { - return digestType_; - } - /** - * - * - *
-     * The hash function used to generate the digest of the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return The digestType. - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType getDigestType() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType result = - com.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType.valueOf(digestType_); - return result == null - ? com.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType.UNRECOGNIZED - : result; - } - - public static final int DIGEST_FIELD_NUMBER = 4; - private volatile java.lang.Object digest_; - /** - * - * - *
-     * The digest generated from the referenced DNSKEY.
-     * 
- * - * string digest = 4; - * - * @return The digest. - */ - @java.lang.Override - public java.lang.String getDigest() { - java.lang.Object ref = digest_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - digest_ = s; - return s; - } - } - /** - * - * - *
-     * The digest generated from the referenced DNSKEY.
-     * 
- * - * string digest = 4; - * - * @return The bytes for digest. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDigestBytes() { - java.lang.Object ref = digest_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - digest_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (keyTag_ != 0) { - output.writeInt32(1, keyTag_); - } - if (algorithm_ - != com.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm.ALGORITHM_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, algorithm_); - } - if (digestType_ - != com.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType.DIGEST_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(3, digestType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(digest_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, digest_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (keyTag_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, keyTag_); - } - if (algorithm_ - != com.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm.ALGORITHM_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, algorithm_); - } - if (digestType_ - != com.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType.DIGEST_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, digestType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(digest_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, digest_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.DnsSettings.DsRecord)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.DnsSettings.DsRecord other = - (com.google.cloud.domains.v1.DnsSettings.DsRecord) obj; - - if (getKeyTag() != other.getKeyTag()) return false; - if (algorithm_ != other.algorithm_) return false; - if (digestType_ != other.digestType_) return false; - if (!getDigest().equals(other.getDigest())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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_TAG_FIELD_NUMBER; - hash = (53 * hash) + getKeyTag(); - hash = (37 * hash) + ALGORITHM_FIELD_NUMBER; - hash = (53 * hash) + algorithm_; - hash = (37 * hash) + DIGEST_TYPE_FIELD_NUMBER; - hash = (53 * hash) + digestType_; - hash = (37 * hash) + DIGEST_FIELD_NUMBER; - hash = (53 * hash) + getDigest().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.DnsSettings.DsRecord parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DnsSettings.DsRecord parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.DsRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DnsSettings.DsRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.DsRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DnsSettings.DsRecord parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.DsRecord parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DnsSettings.DsRecord parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.DsRecord parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DnsSettings.DsRecord parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.DsRecord parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DnsSettings.DsRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1.DnsSettings.DsRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Defines a Delegation Signer (DS) record, which is needed to enable DNSSEC
-     * for a domain. It contains a digest (hash) of a DNSKEY record that must be
-     * present in the domain's DNS zone.
-     * 
- * - * Protobuf type {@code google.cloud.domains.v1.DnsSettings.DsRecord} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.DnsSettings.DsRecord) - com.google.cloud.domains.v1.DnsSettings.DsRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_DsRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_DsRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.DnsSettings.DsRecord.class, - com.google.cloud.domains.v1.DnsSettings.DsRecord.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.DnsSettings.DsRecord.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - keyTag_ = 0; - - algorithm_ = 0; - - digestType_ = 0; - - digest_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_DsRecord_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.DsRecord getDefaultInstanceForType() { - return com.google.cloud.domains.v1.DnsSettings.DsRecord.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.DsRecord build() { - com.google.cloud.domains.v1.DnsSettings.DsRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.DsRecord buildPartial() { - com.google.cloud.domains.v1.DnsSettings.DsRecord result = - new com.google.cloud.domains.v1.DnsSettings.DsRecord(this); - result.keyTag_ = keyTag_; - result.algorithm_ = algorithm_; - result.digestType_ = digestType_; - result.digest_ = digest_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.DnsSettings.DsRecord) { - return mergeFrom((com.google.cloud.domains.v1.DnsSettings.DsRecord) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.DnsSettings.DsRecord other) { - if (other == com.google.cloud.domains.v1.DnsSettings.DsRecord.getDefaultInstance()) - return this; - if (other.getKeyTag() != 0) { - setKeyTag(other.getKeyTag()); - } - if (other.algorithm_ != 0) { - setAlgorithmValue(other.getAlgorithmValue()); - } - if (other.digestType_ != 0) { - setDigestTypeValue(other.getDigestTypeValue()); - } - if (!other.getDigest().isEmpty()) { - digest_ = other.digest_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - keyTag_ = input.readInt32(); - - break; - } // case 8 - case 16: - { - algorithm_ = input.readEnum(); - - break; - } // case 16 - case 24: - { - digestType_ = input.readEnum(); - - break; - } // case 24 - case 34: - { - digest_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int keyTag_; - /** - * - * - *
-       * The key tag of the record. Must be set in range 0 -- 65535.
-       * 
- * - * int32 key_tag = 1; - * - * @return The keyTag. - */ - @java.lang.Override - public int getKeyTag() { - return keyTag_; - } - /** - * - * - *
-       * The key tag of the record. Must be set in range 0 -- 65535.
-       * 
- * - * int32 key_tag = 1; - * - * @param value The keyTag to set. - * @return This builder for chaining. - */ - public Builder setKeyTag(int value) { - - keyTag_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The key tag of the record. Must be set in range 0 -- 65535.
-       * 
- * - * int32 key_tag = 1; - * - * @return This builder for chaining. - */ - public Builder clearKeyTag() { - - keyTag_ = 0; - onChanged(); - return this; - } - - private int algorithm_ = 0; - /** - * - * - *
-       * The algorithm used to generate the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The enum numeric value on the wire for algorithm. - */ - @java.lang.Override - public int getAlgorithmValue() { - return algorithm_; - } - /** - * - * - *
-       * The algorithm used to generate the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @param value The enum numeric value on the wire for algorithm to set. - * @return This builder for chaining. - */ - public Builder setAlgorithmValue(int value) { - - algorithm_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The algorithm used to generate the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The algorithm. - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm getAlgorithm() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm result = - com.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm.valueOf(algorithm_); - return result == null - ? com.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * The algorithm used to generate the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @param value The algorithm to set. - * @return This builder for chaining. - */ - public Builder setAlgorithm( - com.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm value) { - if (value == null) { - throw new NullPointerException(); - } - - algorithm_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * The algorithm used to generate the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return This builder for chaining. - */ - public Builder clearAlgorithm() { - - algorithm_ = 0; - onChanged(); - return this; - } - - private int digestType_ = 0; - /** - * - * - *
-       * The hash function used to generate the digest of the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return The enum numeric value on the wire for digestType. - */ - @java.lang.Override - public int getDigestTypeValue() { - return digestType_; - } - /** - * - * - *
-       * The hash function used to generate the digest of the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @param value The enum numeric value on the wire for digestType to set. - * @return This builder for chaining. - */ - public Builder setDigestTypeValue(int value) { - - digestType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The hash function used to generate the digest of the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return The digestType. - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType getDigestType() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType result = - com.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType.valueOf(digestType_); - return result == null - ? com.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * The hash function used to generate the digest of the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @param value The digestType to set. - * @return This builder for chaining. - */ - public Builder setDigestType( - com.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType value) { - if (value == null) { - throw new NullPointerException(); - } - - digestType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * The hash function used to generate the digest of the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return This builder for chaining. - */ - public Builder clearDigestType() { - - digestType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object digest_ = ""; - /** - * - * - *
-       * The digest generated from the referenced DNSKEY.
-       * 
- * - * string digest = 4; - * - * @return The digest. - */ - public java.lang.String getDigest() { - java.lang.Object ref = digest_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - digest_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The digest generated from the referenced DNSKEY.
-       * 
- * - * string digest = 4; - * - * @return The bytes for digest. - */ - public com.google.protobuf.ByteString getDigestBytes() { - java.lang.Object ref = digest_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - digest_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The digest generated from the referenced DNSKEY.
-       * 
- * - * string digest = 4; - * - * @param value The digest to set. - * @return This builder for chaining. - */ - public Builder setDigest(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - digest_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The digest generated from the referenced DNSKEY.
-       * 
- * - * string digest = 4; - * - * @return This builder for chaining. - */ - public Builder clearDigest() { - - digest_ = getDefaultInstance().getDigest(); - onChanged(); - return this; - } - /** - * - * - *
-       * The digest generated from the referenced DNSKEY.
-       * 
- * - * string digest = 4; - * - * @param value The bytes for digest to set. - * @return This builder for chaining. - */ - public Builder setDigestBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - digest_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.DnsSettings.DsRecord) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.DnsSettings.DsRecord) - private static final com.google.cloud.domains.v1.DnsSettings.DsRecord DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.DnsSettings.DsRecord(); - } - - public static com.google.cloud.domains.v1.DnsSettings.DsRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DsRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.DsRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface GlueRecordOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.DnsSettings.GlueRecord) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Required. Domain name of the host in Punycode format.
-     * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The hostName. - */ - java.lang.String getHostName(); - /** - * - * - *
-     * Required. Domain name of the host in Punycode format.
-     * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for hostName. - */ - com.google.protobuf.ByteString getHostNameBytes(); - - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @return A list containing the ipv4Addresses. - */ - java.util.List getIpv4AddressesList(); - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @return The count of ipv4Addresses. - */ - int getIpv4AddressesCount(); - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the element to return. - * @return The ipv4Addresses at the given index. - */ - java.lang.String getIpv4Addresses(int index); - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the value to return. - * @return The bytes of the ipv4Addresses at the given index. - */ - com.google.protobuf.ByteString getIpv4AddressesBytes(int index); - - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @return A list containing the ipv6Addresses. - */ - java.util.List getIpv6AddressesList(); - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @return The count of ipv6Addresses. - */ - int getIpv6AddressesCount(); - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the element to return. - * @return The ipv6Addresses at the given index. - */ - java.lang.String getIpv6Addresses(int index); - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the value to return. - * @return The bytes of the ipv6Addresses at the given index. - */ - com.google.protobuf.ByteString getIpv6AddressesBytes(int index); - } - /** - * - * - *
-   * Defines a host on your domain that is a DNS name server for your domain
-   * and/or other domains. Glue records are a way of making the IP address of a
-   * name server known, even when it serves DNS queries for its parent domain.
-   * For example, when `ns.example.com` is a name server for `example.com`, the
-   * host `ns.example.com` must have a glue record to break the circular DNS
-   * reference.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.DnsSettings.GlueRecord} - */ - public static final class GlueRecord extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.DnsSettings.GlueRecord) - GlueRecordOrBuilder { - private static final long serialVersionUID = 0L; - // Use GlueRecord.newBuilder() to construct. - private GlueRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GlueRecord() { - hostName_ = ""; - ipv4Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - ipv6Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GlueRecord(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_GlueRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_GlueRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.DnsSettings.GlueRecord.class, - com.google.cloud.domains.v1.DnsSettings.GlueRecord.Builder.class); - } - - public static final int HOST_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object hostName_; - /** - * - * - *
-     * Required. Domain name of the host in Punycode format.
-     * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The hostName. - */ - @java.lang.Override - public java.lang.String getHostName() { - java.lang.Object ref = hostName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hostName_ = s; - return s; - } - } - /** - * - * - *
-     * Required. Domain name of the host in Punycode format.
-     * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for hostName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getHostNameBytes() { - java.lang.Object ref = hostName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - hostName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IPV4_ADDRESSES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList ipv4Addresses_; - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @return A list containing the ipv4Addresses. - */ - public com.google.protobuf.ProtocolStringList getIpv4AddressesList() { - return ipv4Addresses_; - } - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @return The count of ipv4Addresses. - */ - public int getIpv4AddressesCount() { - return ipv4Addresses_.size(); - } - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the element to return. - * @return The ipv4Addresses at the given index. - */ - public java.lang.String getIpv4Addresses(int index) { - return ipv4Addresses_.get(index); - } - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the value to return. - * @return The bytes of the ipv4Addresses at the given index. - */ - public com.google.protobuf.ByteString getIpv4AddressesBytes(int index) { - return ipv4Addresses_.getByteString(index); - } - - public static final int IPV6_ADDRESSES_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList ipv6Addresses_; - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @return A list containing the ipv6Addresses. - */ - public com.google.protobuf.ProtocolStringList getIpv6AddressesList() { - return ipv6Addresses_; - } - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @return The count of ipv6Addresses. - */ - public int getIpv6AddressesCount() { - return ipv6Addresses_.size(); - } - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the element to return. - * @return The ipv6Addresses at the given index. - */ - public java.lang.String getIpv6Addresses(int index) { - return ipv6Addresses_.get(index); - } - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the value to return. - * @return The bytes of the ipv6Addresses at the given index. - */ - public com.google.protobuf.ByteString getIpv6AddressesBytes(int index) { - return ipv6Addresses_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostName_); - } - for (int i = 0; i < ipv4Addresses_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipv4Addresses_.getRaw(i)); - } - for (int i = 0; i < ipv6Addresses_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipv6Addresses_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostName_); - } - { - int dataSize = 0; - for (int i = 0; i < ipv4Addresses_.size(); i++) { - dataSize += computeStringSizeNoTag(ipv4Addresses_.getRaw(i)); - } - size += dataSize; - size += 1 * getIpv4AddressesList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < ipv6Addresses_.size(); i++) { - dataSize += computeStringSizeNoTag(ipv6Addresses_.getRaw(i)); - } - size += dataSize; - size += 1 * getIpv6AddressesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.DnsSettings.GlueRecord)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.DnsSettings.GlueRecord other = - (com.google.cloud.domains.v1.DnsSettings.GlueRecord) obj; - - if (!getHostName().equals(other.getHostName())) return false; - if (!getIpv4AddressesList().equals(other.getIpv4AddressesList())) return false; - if (!getIpv6AddressesList().equals(other.getIpv6AddressesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HOST_NAME_FIELD_NUMBER; - hash = (53 * hash) + getHostName().hashCode(); - if (getIpv4AddressesCount() > 0) { - hash = (37 * hash) + IPV4_ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + getIpv4AddressesList().hashCode(); - } - if (getIpv6AddressesCount() > 0) { - hash = (37 * hash) + IPV6_ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + getIpv6AddressesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.DnsSettings.GlueRecord parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DnsSettings.GlueRecord parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.GlueRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DnsSettings.GlueRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.GlueRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DnsSettings.GlueRecord parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.GlueRecord parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DnsSettings.GlueRecord parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.GlueRecord parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DnsSettings.GlueRecord parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings.GlueRecord parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DnsSettings.GlueRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1.DnsSettings.GlueRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Defines a host on your domain that is a DNS name server for your domain
-     * and/or other domains. Glue records are a way of making the IP address of a
-     * name server known, even when it serves DNS queries for its parent domain.
-     * For example, when `ns.example.com` is a name server for `example.com`, the
-     * host `ns.example.com` must have a glue record to break the circular DNS
-     * reference.
-     * 
- * - * Protobuf type {@code google.cloud.domains.v1.DnsSettings.GlueRecord} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.DnsSettings.GlueRecord) - com.google.cloud.domains.v1.DnsSettings.GlueRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_GlueRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_GlueRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.DnsSettings.GlueRecord.class, - com.google.cloud.domains.v1.DnsSettings.GlueRecord.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.DnsSettings.GlueRecord.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - hostName_ = ""; - - ipv4Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - ipv6Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_GlueRecord_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.GlueRecord getDefaultInstanceForType() { - return com.google.cloud.domains.v1.DnsSettings.GlueRecord.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.GlueRecord build() { - com.google.cloud.domains.v1.DnsSettings.GlueRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.GlueRecord buildPartial() { - com.google.cloud.domains.v1.DnsSettings.GlueRecord result = - new com.google.cloud.domains.v1.DnsSettings.GlueRecord(this); - int from_bitField0_ = bitField0_; - result.hostName_ = hostName_; - if (((bitField0_ & 0x00000001) != 0)) { - ipv4Addresses_ = ipv4Addresses_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.ipv4Addresses_ = ipv4Addresses_; - if (((bitField0_ & 0x00000002) != 0)) { - ipv6Addresses_ = ipv6Addresses_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.ipv6Addresses_ = ipv6Addresses_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.DnsSettings.GlueRecord) { - return mergeFrom((com.google.cloud.domains.v1.DnsSettings.GlueRecord) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.DnsSettings.GlueRecord other) { - if (other == com.google.cloud.domains.v1.DnsSettings.GlueRecord.getDefaultInstance()) - return this; - if (!other.getHostName().isEmpty()) { - hostName_ = other.hostName_; - onChanged(); - } - if (!other.ipv4Addresses_.isEmpty()) { - if (ipv4Addresses_.isEmpty()) { - ipv4Addresses_ = other.ipv4Addresses_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIpv4AddressesIsMutable(); - ipv4Addresses_.addAll(other.ipv4Addresses_); - } - onChanged(); - } - if (!other.ipv6Addresses_.isEmpty()) { - if (ipv6Addresses_.isEmpty()) { - ipv6Addresses_ = other.ipv6Addresses_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureIpv6AddressesIsMutable(); - ipv6Addresses_.addAll(other.ipv6Addresses_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - hostName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpv4AddressesIsMutable(); - ipv4Addresses_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpv6AddressesIsMutable(); - ipv6Addresses_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object hostName_ = ""; - /** - * - * - *
-       * Required. Domain name of the host in Punycode format.
-       * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The hostName. - */ - public java.lang.String getHostName() { - java.lang.Object ref = hostName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hostName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Required. Domain name of the host in Punycode format.
-       * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for hostName. - */ - public com.google.protobuf.ByteString getHostNameBytes() { - java.lang.Object ref = hostName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - hostName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Required. Domain name of the host in Punycode format.
-       * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The hostName to set. - * @return This builder for chaining. - */ - public Builder setHostName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - hostName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Domain name of the host in Punycode format.
-       * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearHostName() { - - hostName_ = getDefaultInstance().getHostName(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Domain name of the host in Punycode format.
-       * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for hostName to set. - * @return This builder for chaining. - */ - public Builder setHostNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - hostName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList ipv4Addresses_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureIpv4AddressesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - ipv4Addresses_ = new com.google.protobuf.LazyStringArrayList(ipv4Addresses_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @return A list containing the ipv4Addresses. - */ - public com.google.protobuf.ProtocolStringList getIpv4AddressesList() { - return ipv4Addresses_.getUnmodifiableView(); - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @return The count of ipv4Addresses. - */ - public int getIpv4AddressesCount() { - return ipv4Addresses_.size(); - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the element to return. - * @return The ipv4Addresses at the given index. - */ - public java.lang.String getIpv4Addresses(int index) { - return ipv4Addresses_.get(index); - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the value to return. - * @return The bytes of the ipv4Addresses at the given index. - */ - public com.google.protobuf.ByteString getIpv4AddressesBytes(int index) { - return ipv4Addresses_.getByteString(index); - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index to set the value at. - * @param value The ipv4Addresses to set. - * @return This builder for chaining. - */ - public Builder setIpv4Addresses(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIpv4AddressesIsMutable(); - ipv4Addresses_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param value The ipv4Addresses to add. - * @return This builder for chaining. - */ - public Builder addIpv4Addresses(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIpv4AddressesIsMutable(); - ipv4Addresses_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param values The ipv4Addresses to add. - * @return This builder for chaining. - */ - public Builder addAllIpv4Addresses(java.lang.Iterable values) { - ensureIpv4AddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipv4Addresses_); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @return This builder for chaining. - */ - public Builder clearIpv4Addresses() { - ipv4Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param value The bytes of the ipv4Addresses to add. - * @return This builder for chaining. - */ - public Builder addIpv4AddressesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIpv4AddressesIsMutable(); - ipv4Addresses_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList ipv6Addresses_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureIpv6AddressesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - ipv6Addresses_ = new com.google.protobuf.LazyStringArrayList(ipv6Addresses_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @return A list containing the ipv6Addresses. - */ - public com.google.protobuf.ProtocolStringList getIpv6AddressesList() { - return ipv6Addresses_.getUnmodifiableView(); - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @return The count of ipv6Addresses. - */ - public int getIpv6AddressesCount() { - return ipv6Addresses_.size(); - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the element to return. - * @return The ipv6Addresses at the given index. - */ - public java.lang.String getIpv6Addresses(int index) { - return ipv6Addresses_.get(index); - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the value to return. - * @return The bytes of the ipv6Addresses at the given index. - */ - public com.google.protobuf.ByteString getIpv6AddressesBytes(int index) { - return ipv6Addresses_.getByteString(index); - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index to set the value at. - * @param value The ipv6Addresses to set. - * @return This builder for chaining. - */ - public Builder setIpv6Addresses(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIpv6AddressesIsMutable(); - ipv6Addresses_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param value The ipv6Addresses to add. - * @return This builder for chaining. - */ - public Builder addIpv6Addresses(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIpv6AddressesIsMutable(); - ipv6Addresses_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param values The ipv6Addresses to add. - * @return This builder for chaining. - */ - public Builder addAllIpv6Addresses(java.lang.Iterable values) { - ensureIpv6AddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipv6Addresses_); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @return This builder for chaining. - */ - public Builder clearIpv6Addresses() { - ipv6Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param value The bytes of the ipv6Addresses to add. - * @return This builder for chaining. - */ - public Builder addIpv6AddressesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIpv6AddressesIsMutable(); - ipv6Addresses_.add(value); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.DnsSettings.GlueRecord) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.DnsSettings.GlueRecord) - private static final com.google.cloud.domains.v1.DnsSettings.GlueRecord DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.DnsSettings.GlueRecord(); - } - - public static com.google.cloud.domains.v1.DnsSettings.GlueRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GlueRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.GlueRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int dnsProviderCase_ = 0; - private java.lang.Object dnsProvider_; - - public enum DnsProviderCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CUSTOM_DNS(1), - GOOGLE_DOMAINS_DNS(2), - DNSPROVIDER_NOT_SET(0); - private final int value; - - private DnsProviderCase(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 DnsProviderCase valueOf(int value) { - return forNumber(value); - } - - public static DnsProviderCase forNumber(int value) { - switch (value) { - case 1: - return CUSTOM_DNS; - case 2: - return GOOGLE_DOMAINS_DNS; - case 0: - return DNSPROVIDER_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public DnsProviderCase getDnsProviderCase() { - return DnsProviderCase.forNumber(dnsProviderCase_); - } - - public static final int CUSTOM_DNS_FIELD_NUMBER = 1; - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings.CustomDns custom_dns = 1; - * - * @return Whether the customDns field is set. - */ - @java.lang.Override - public boolean hasCustomDns() { - return dnsProviderCase_ == 1; - } - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings.CustomDns custom_dns = 1; - * - * @return The customDns. - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.CustomDns getCustomDns() { - if (dnsProviderCase_ == 1) { - return (com.google.cloud.domains.v1.DnsSettings.CustomDns) dnsProvider_; - } - return com.google.cloud.domains.v1.DnsSettings.CustomDns.getDefaultInstance(); - } - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings.CustomDns custom_dns = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.CustomDnsOrBuilder getCustomDnsOrBuilder() { - if (dnsProviderCase_ == 1) { - return (com.google.cloud.domains.v1.DnsSettings.CustomDns) dnsProvider_; - } - return com.google.cloud.domains.v1.DnsSettings.CustomDns.getDefaultInstance(); - } - - public static final int GOOGLE_DOMAINS_DNS_FIELD_NUMBER = 2; - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * @return Whether the googleDomainsDns field is set. - */ - @java.lang.Override - public boolean hasGoogleDomainsDns() { - return dnsProviderCase_ == 2; - } - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * @return The googleDomainsDns. - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns getGoogleDomainsDns() { - if (dnsProviderCase_ == 2) { - return (com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns) dnsProvider_; - } - return com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDnsOrBuilder - getGoogleDomainsDnsOrBuilder() { - if (dnsProviderCase_ == 2) { - return (com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns) dnsProvider_; - } - return com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - - public static final int GLUE_RECORDS_FIELD_NUMBER = 4; - private java.util.List glueRecords_; - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - @java.lang.Override - public java.util.List getGlueRecordsList() { - return glueRecords_; - } - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - @java.lang.Override - public java.util.List - getGlueRecordsOrBuilderList() { - return glueRecords_; - } - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - @java.lang.Override - public int getGlueRecordsCount() { - return glueRecords_.size(); - } - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.GlueRecord getGlueRecords(int index) { - return glueRecords_.get(index); - } - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.GlueRecordOrBuilder getGlueRecordsOrBuilder( - int index) { - return glueRecords_.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 (dnsProviderCase_ == 1) { - output.writeMessage(1, (com.google.cloud.domains.v1.DnsSettings.CustomDns) dnsProvider_); - } - if (dnsProviderCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns) dnsProvider_); - } - for (int i = 0; i < glueRecords_.size(); i++) { - output.writeMessage(4, glueRecords_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dnsProviderCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.domains.v1.DnsSettings.CustomDns) dnsProvider_); - } - if (dnsProviderCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns) dnsProvider_); - } - for (int i = 0; i < glueRecords_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, glueRecords_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.DnsSettings)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.DnsSettings other = (com.google.cloud.domains.v1.DnsSettings) obj; - - if (!getGlueRecordsList().equals(other.getGlueRecordsList())) return false; - if (!getDnsProviderCase().equals(other.getDnsProviderCase())) return false; - switch (dnsProviderCase_) { - case 1: - if (!getCustomDns().equals(other.getCustomDns())) return false; - break; - case 2: - if (!getGoogleDomainsDns().equals(other.getGoogleDomainsDns())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getGlueRecordsCount() > 0) { - hash = (37 * hash) + GLUE_RECORDS_FIELD_NUMBER; - hash = (53 * hash) + getGlueRecordsList().hashCode(); - } - switch (dnsProviderCase_) { - case 1: - hash = (37 * hash) + CUSTOM_DNS_FIELD_NUMBER; - hash = (53 * hash) + getCustomDns().hashCode(); - break; - case 2: - hash = (37 * hash) + GOOGLE_DOMAINS_DNS_FIELD_NUMBER; - hash = (53 * hash) + getGoogleDomainsDns().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.DnsSettings parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DnsSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DnsSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.DnsSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DnsSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DnsSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.DnsSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.DnsSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1.DnsSettings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Defines the DNS configuration of a `Registration`, including name servers,
-   * DNSSEC, and glue records.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.DnsSettings} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.DnsSettings) - com.google.cloud.domains.v1.DnsSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.DnsSettings.class, - com.google.cloud.domains.v1.DnsSettings.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.DnsSettings.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (customDnsBuilder_ != null) { - customDnsBuilder_.clear(); - } - if (googleDomainsDnsBuilder_ != null) { - googleDomainsDnsBuilder_.clear(); - } - if (glueRecordsBuilder_ == null) { - glueRecords_ = java.util.Collections.emptyList(); - } else { - glueRecords_ = null; - glueRecordsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - dnsProviderCase_ = 0; - dnsProvider_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_DnsSettings_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings getDefaultInstanceForType() { - return com.google.cloud.domains.v1.DnsSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings build() { - com.google.cloud.domains.v1.DnsSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings buildPartial() { - com.google.cloud.domains.v1.DnsSettings result = - new com.google.cloud.domains.v1.DnsSettings(this); - int from_bitField0_ = bitField0_; - if (dnsProviderCase_ == 1) { - if (customDnsBuilder_ == null) { - result.dnsProvider_ = dnsProvider_; - } else { - result.dnsProvider_ = customDnsBuilder_.build(); - } - } - if (dnsProviderCase_ == 2) { - if (googleDomainsDnsBuilder_ == null) { - result.dnsProvider_ = dnsProvider_; - } else { - result.dnsProvider_ = googleDomainsDnsBuilder_.build(); - } - } - if (glueRecordsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - glueRecords_ = java.util.Collections.unmodifiableList(glueRecords_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.glueRecords_ = glueRecords_; - } else { - result.glueRecords_ = glueRecordsBuilder_.build(); - } - result.dnsProviderCase_ = dnsProviderCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.DnsSettings) { - return mergeFrom((com.google.cloud.domains.v1.DnsSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.DnsSettings other) { - if (other == com.google.cloud.domains.v1.DnsSettings.getDefaultInstance()) return this; - if (glueRecordsBuilder_ == null) { - if (!other.glueRecords_.isEmpty()) { - if (glueRecords_.isEmpty()) { - glueRecords_ = other.glueRecords_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureGlueRecordsIsMutable(); - glueRecords_.addAll(other.glueRecords_); - } - onChanged(); - } - } else { - if (!other.glueRecords_.isEmpty()) { - if (glueRecordsBuilder_.isEmpty()) { - glueRecordsBuilder_.dispose(); - glueRecordsBuilder_ = null; - glueRecords_ = other.glueRecords_; - bitField0_ = (bitField0_ & ~0x00000001); - glueRecordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGlueRecordsFieldBuilder() - : null; - } else { - glueRecordsBuilder_.addAllMessages(other.glueRecords_); - } - } - } - switch (other.getDnsProviderCase()) { - case CUSTOM_DNS: - { - mergeCustomDns(other.getCustomDns()); - break; - } - case GOOGLE_DOMAINS_DNS: - { - mergeGoogleDomainsDns(other.getGoogleDomainsDns()); - break; - } - case DNSPROVIDER_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getCustomDnsFieldBuilder().getBuilder(), extensionRegistry); - dnsProviderCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - getGoogleDomainsDnsFieldBuilder().getBuilder(), extensionRegistry); - dnsProviderCase_ = 2; - break; - } // case 18 - case 34: - { - com.google.cloud.domains.v1.DnsSettings.GlueRecord m = - input.readMessage( - com.google.cloud.domains.v1.DnsSettings.GlueRecord.parser(), - extensionRegistry); - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - glueRecords_.add(m); - } else { - glueRecordsBuilder_.addMessage(m); - } - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int dnsProviderCase_ = 0; - private java.lang.Object dnsProvider_; - - public DnsProviderCase getDnsProviderCase() { - return DnsProviderCase.forNumber(dnsProviderCase_); - } - - public Builder clearDnsProvider() { - dnsProviderCase_ = 0; - dnsProvider_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings.CustomDns, - com.google.cloud.domains.v1.DnsSettings.CustomDns.Builder, - com.google.cloud.domains.v1.DnsSettings.CustomDnsOrBuilder> - customDnsBuilder_; - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.CustomDns custom_dns = 1; - * - * @return Whether the customDns field is set. - */ - @java.lang.Override - public boolean hasCustomDns() { - return dnsProviderCase_ == 1; - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.CustomDns custom_dns = 1; - * - * @return The customDns. - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.CustomDns getCustomDns() { - if (customDnsBuilder_ == null) { - if (dnsProviderCase_ == 1) { - return (com.google.cloud.domains.v1.DnsSettings.CustomDns) dnsProvider_; - } - return com.google.cloud.domains.v1.DnsSettings.CustomDns.getDefaultInstance(); - } else { - if (dnsProviderCase_ == 1) { - return customDnsBuilder_.getMessage(); - } - return com.google.cloud.domains.v1.DnsSettings.CustomDns.getDefaultInstance(); - } - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.CustomDns custom_dns = 1; - */ - public Builder setCustomDns(com.google.cloud.domains.v1.DnsSettings.CustomDns value) { - if (customDnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsProvider_ = value; - onChanged(); - } else { - customDnsBuilder_.setMessage(value); - } - dnsProviderCase_ = 1; - return this; - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.CustomDns custom_dns = 1; - */ - public Builder setCustomDns( - com.google.cloud.domains.v1.DnsSettings.CustomDns.Builder builderForValue) { - if (customDnsBuilder_ == null) { - dnsProvider_ = builderForValue.build(); - onChanged(); - } else { - customDnsBuilder_.setMessage(builderForValue.build()); - } - dnsProviderCase_ = 1; - return this; - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.CustomDns custom_dns = 1; - */ - public Builder mergeCustomDns(com.google.cloud.domains.v1.DnsSettings.CustomDns value) { - if (customDnsBuilder_ == null) { - if (dnsProviderCase_ == 1 - && dnsProvider_ - != com.google.cloud.domains.v1.DnsSettings.CustomDns.getDefaultInstance()) { - dnsProvider_ = - com.google.cloud.domains.v1.DnsSettings.CustomDns.newBuilder( - (com.google.cloud.domains.v1.DnsSettings.CustomDns) dnsProvider_) - .mergeFrom(value) - .buildPartial(); - } else { - dnsProvider_ = value; - } - onChanged(); - } else { - if (dnsProviderCase_ == 1) { - customDnsBuilder_.mergeFrom(value); - } else { - customDnsBuilder_.setMessage(value); - } - } - dnsProviderCase_ = 1; - return this; - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.CustomDns custom_dns = 1; - */ - public Builder clearCustomDns() { - if (customDnsBuilder_ == null) { - if (dnsProviderCase_ == 1) { - dnsProviderCase_ = 0; - dnsProvider_ = null; - onChanged(); - } - } else { - if (dnsProviderCase_ == 1) { - dnsProviderCase_ = 0; - dnsProvider_ = null; - } - customDnsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.CustomDns custom_dns = 1; - */ - public com.google.cloud.domains.v1.DnsSettings.CustomDns.Builder getCustomDnsBuilder() { - return getCustomDnsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.CustomDns custom_dns = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.CustomDnsOrBuilder getCustomDnsOrBuilder() { - if ((dnsProviderCase_ == 1) && (customDnsBuilder_ != null)) { - return customDnsBuilder_.getMessageOrBuilder(); - } else { - if (dnsProviderCase_ == 1) { - return (com.google.cloud.domains.v1.DnsSettings.CustomDns) dnsProvider_; - } - return com.google.cloud.domains.v1.DnsSettings.CustomDns.getDefaultInstance(); - } - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.CustomDns custom_dns = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings.CustomDns, - com.google.cloud.domains.v1.DnsSettings.CustomDns.Builder, - com.google.cloud.domains.v1.DnsSettings.CustomDnsOrBuilder> - getCustomDnsFieldBuilder() { - if (customDnsBuilder_ == null) { - if (!(dnsProviderCase_ == 1)) { - dnsProvider_ = com.google.cloud.domains.v1.DnsSettings.CustomDns.getDefaultInstance(); - } - customDnsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings.CustomDns, - com.google.cloud.domains.v1.DnsSettings.CustomDns.Builder, - com.google.cloud.domains.v1.DnsSettings.CustomDnsOrBuilder>( - (com.google.cloud.domains.v1.DnsSettings.CustomDns) dnsProvider_, - getParentForChildren(), - isClean()); - dnsProvider_ = null; - } - dnsProviderCase_ = 1; - onChanged(); - ; - return customDnsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns, - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.Builder, - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDnsOrBuilder> - googleDomainsDnsBuilder_; - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * @return Whether the googleDomainsDns field is set. - */ - @java.lang.Override - public boolean hasGoogleDomainsDns() { - return dnsProviderCase_ == 2; - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * @return The googleDomainsDns. - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns getGoogleDomainsDns() { - if (googleDomainsDnsBuilder_ == null) { - if (dnsProviderCase_ == 2) { - return (com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns) dnsProvider_; - } - return com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } else { - if (dnsProviderCase_ == 2) { - return googleDomainsDnsBuilder_.getMessage(); - } - return com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - */ - public Builder setGoogleDomainsDns( - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns value) { - if (googleDomainsDnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsProvider_ = value; - onChanged(); - } else { - googleDomainsDnsBuilder_.setMessage(value); - } - dnsProviderCase_ = 2; - return this; - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - */ - public Builder setGoogleDomainsDns( - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.Builder builderForValue) { - if (googleDomainsDnsBuilder_ == null) { - dnsProvider_ = builderForValue.build(); - onChanged(); - } else { - googleDomainsDnsBuilder_.setMessage(builderForValue.build()); - } - dnsProviderCase_ = 2; - return this; - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - */ - public Builder mergeGoogleDomainsDns( - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns value) { - if (googleDomainsDnsBuilder_ == null) { - if (dnsProviderCase_ == 2 - && dnsProvider_ - != com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.getDefaultInstance()) { - dnsProvider_ = - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.newBuilder( - (com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns) dnsProvider_) - .mergeFrom(value) - .buildPartial(); - } else { - dnsProvider_ = value; - } - onChanged(); - } else { - if (dnsProviderCase_ == 2) { - googleDomainsDnsBuilder_.mergeFrom(value); - } else { - googleDomainsDnsBuilder_.setMessage(value); - } - } - dnsProviderCase_ = 2; - return this; - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - */ - public Builder clearGoogleDomainsDns() { - if (googleDomainsDnsBuilder_ == null) { - if (dnsProviderCase_ == 2) { - dnsProviderCase_ = 0; - dnsProvider_ = null; - onChanged(); - } - } else { - if (dnsProviderCase_ == 2) { - dnsProviderCase_ = 0; - dnsProvider_ = null; - } - googleDomainsDnsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - */ - public com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.Builder - getGoogleDomainsDnsBuilder() { - return getGoogleDomainsDnsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDnsOrBuilder - getGoogleDomainsDnsOrBuilder() { - if ((dnsProviderCase_ == 2) && (googleDomainsDnsBuilder_ != null)) { - return googleDomainsDnsBuilder_.getMessageOrBuilder(); - } else { - if (dnsProviderCase_ == 2) { - return (com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns) dnsProvider_; - } - return com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns, - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.Builder, - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDnsOrBuilder> - getGoogleDomainsDnsFieldBuilder() { - if (googleDomainsDnsBuilder_ == null) { - if (!(dnsProviderCase_ == 2)) { - dnsProvider_ = - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - googleDomainsDnsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns, - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns.Builder, - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDnsOrBuilder>( - (com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns) dnsProvider_, - getParentForChildren(), - isClean()); - dnsProvider_ = null; - } - dnsProviderCase_ = 2; - onChanged(); - ; - return googleDomainsDnsBuilder_; - } - - private java.util.List glueRecords_ = - java.util.Collections.emptyList(); - - private void ensureGlueRecordsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - glueRecords_ = - new java.util.ArrayList( - glueRecords_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings.GlueRecord, - com.google.cloud.domains.v1.DnsSettings.GlueRecord.Builder, - com.google.cloud.domains.v1.DnsSettings.GlueRecordOrBuilder> - glueRecordsBuilder_; - - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public java.util.List getGlueRecordsList() { - if (glueRecordsBuilder_ == null) { - return java.util.Collections.unmodifiableList(glueRecords_); - } else { - return glueRecordsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public int getGlueRecordsCount() { - if (glueRecordsBuilder_ == null) { - return glueRecords_.size(); - } else { - return glueRecordsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public com.google.cloud.domains.v1.DnsSettings.GlueRecord getGlueRecords(int index) { - if (glueRecordsBuilder_ == null) { - return glueRecords_.get(index); - } else { - return glueRecordsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder setGlueRecords( - int index, com.google.cloud.domains.v1.DnsSettings.GlueRecord value) { - if (glueRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGlueRecordsIsMutable(); - glueRecords_.set(index, value); - onChanged(); - } else { - glueRecordsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder setGlueRecords( - int index, com.google.cloud.domains.v1.DnsSettings.GlueRecord.Builder builderForValue) { - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - glueRecords_.set(index, builderForValue.build()); - onChanged(); - } else { - glueRecordsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder addGlueRecords(com.google.cloud.domains.v1.DnsSettings.GlueRecord value) { - if (glueRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGlueRecordsIsMutable(); - glueRecords_.add(value); - onChanged(); - } else { - glueRecordsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder addGlueRecords( - int index, com.google.cloud.domains.v1.DnsSettings.GlueRecord value) { - if (glueRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGlueRecordsIsMutable(); - glueRecords_.add(index, value); - onChanged(); - } else { - glueRecordsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder addGlueRecords( - com.google.cloud.domains.v1.DnsSettings.GlueRecord.Builder builderForValue) { - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - glueRecords_.add(builderForValue.build()); - onChanged(); - } else { - glueRecordsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder addGlueRecords( - int index, com.google.cloud.domains.v1.DnsSettings.GlueRecord.Builder builderForValue) { - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - glueRecords_.add(index, builderForValue.build()); - onChanged(); - } else { - glueRecordsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder addAllGlueRecords( - java.lang.Iterable values) { - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glueRecords_); - onChanged(); - } else { - glueRecordsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder clearGlueRecords() { - if (glueRecordsBuilder_ == null) { - glueRecords_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - glueRecordsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder removeGlueRecords(int index) { - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - glueRecords_.remove(index); - onChanged(); - } else { - glueRecordsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public com.google.cloud.domains.v1.DnsSettings.GlueRecord.Builder getGlueRecordsBuilder( - int index) { - return getGlueRecordsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public com.google.cloud.domains.v1.DnsSettings.GlueRecordOrBuilder getGlueRecordsOrBuilder( - int index) { - if (glueRecordsBuilder_ == null) { - return glueRecords_.get(index); - } else { - return glueRecordsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public java.util.List - getGlueRecordsOrBuilderList() { - if (glueRecordsBuilder_ != null) { - return glueRecordsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(glueRecords_); - } - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public com.google.cloud.domains.v1.DnsSettings.GlueRecord.Builder addGlueRecordsBuilder() { - return getGlueRecordsFieldBuilder() - .addBuilder(com.google.cloud.domains.v1.DnsSettings.GlueRecord.getDefaultInstance()); - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public com.google.cloud.domains.v1.DnsSettings.GlueRecord.Builder addGlueRecordsBuilder( - int index) { - return getGlueRecordsFieldBuilder() - .addBuilder( - index, com.google.cloud.domains.v1.DnsSettings.GlueRecord.getDefaultInstance()); - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - public java.util.List - getGlueRecordsBuilderList() { - return getGlueRecordsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings.GlueRecord, - com.google.cloud.domains.v1.DnsSettings.GlueRecord.Builder, - com.google.cloud.domains.v1.DnsSettings.GlueRecordOrBuilder> - getGlueRecordsFieldBuilder() { - if (glueRecordsBuilder_ == null) { - glueRecordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings.GlueRecord, - com.google.cloud.domains.v1.DnsSettings.GlueRecord.Builder, - com.google.cloud.domains.v1.DnsSettings.GlueRecordOrBuilder>( - glueRecords_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - glueRecords_ = null; - } - return glueRecordsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.DnsSettings) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.DnsSettings) - private static final com.google.cloud.domains.v1.DnsSettings DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.DnsSettings(); - } - - public static com.google.cloud.domains.v1.DnsSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DnsSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DnsSettingsOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DnsSettingsOrBuilder.java deleted file mode 100644 index 8bc33daf..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DnsSettingsOrBuilder.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface DnsSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.DnsSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings.CustomDns custom_dns = 1; - * - * @return Whether the customDns field is set. - */ - boolean hasCustomDns(); - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings.CustomDns custom_dns = 1; - * - * @return The customDns. - */ - com.google.cloud.domains.v1.DnsSettings.CustomDns getCustomDns(); - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings.CustomDns custom_dns = 1; - */ - com.google.cloud.domains.v1.DnsSettings.CustomDnsOrBuilder getCustomDnsOrBuilder(); - - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * @return Whether the googleDomainsDns field is set. - */ - boolean hasGoogleDomainsDns(); - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * @return The googleDomainsDns. - */ - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDns getGoogleDomainsDns(); - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - */ - com.google.cloud.domains.v1.DnsSettings.GoogleDomainsDnsOrBuilder getGoogleDomainsDnsOrBuilder(); - - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - java.util.List getGlueRecordsList(); - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - com.google.cloud.domains.v1.DnsSettings.GlueRecord getGlueRecords(int index); - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - int getGlueRecordsCount(); - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - java.util.List - getGlueRecordsOrBuilderList(); - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - com.google.cloud.domains.v1.DnsSettings.GlueRecordOrBuilder getGlueRecordsOrBuilder(int index); - - public com.google.cloud.domains.v1.DnsSettings.DnsProviderCase getDnsProviderCase(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DomainNotice.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DomainNotice.java deleted file mode 100644 index a1572c2f..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DomainNotice.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Notices about special properties of certain domains.
- * 
- * - * Protobuf enum {@code google.cloud.domains.v1.DomainNotice} - */ -public enum DomainNotice implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * The notice is undefined.
-   * 
- * - * DOMAIN_NOTICE_UNSPECIFIED = 0; - */ - DOMAIN_NOTICE_UNSPECIFIED(0), - /** - * - * - *
-   * Indicates that the domain is preloaded on the HTTP Strict Transport
-   * Security list in browsers. Serving a website on such domain requires
-   * an SSL certificate. For details, see
-   * [how to get an SSL
-   * certificate](https://support.google.com/domains/answer/7638036).
-   * 
- * - * HSTS_PRELOADED = 1; - */ - HSTS_PRELOADED(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * The notice is undefined.
-   * 
- * - * DOMAIN_NOTICE_UNSPECIFIED = 0; - */ - public static final int DOMAIN_NOTICE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Indicates that the domain is preloaded on the HTTP Strict Transport
-   * Security list in browsers. Serving a website on such domain requires
-   * an SSL certificate. For details, see
-   * [how to get an SSL
-   * certificate](https://support.google.com/domains/answer/7638036).
-   * 
- * - * HSTS_PRELOADED = 1; - */ - public static final int HSTS_PRELOADED_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 DomainNotice 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 DomainNotice forNumber(int value) { - switch (value) { - case 0: - return DOMAIN_NOTICE_UNSPECIFIED; - case 1: - return HSTS_PRELOADED; - 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 DomainNotice findValueByNumber(int number) { - return DomainNotice.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto.getDescriptor().getEnumTypes().get(1); - } - - private static final DomainNotice[] VALUES = values(); - - public static DomainNotice 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 DomainNotice(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1.DomainNotice) -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DomainsProto.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DomainsProto.java deleted file mode 100644 index 89d2c3e1..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DomainsProto.java +++ /dev/null @@ -1,793 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public final class DomainsProto { - private DomainsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_Registration_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_Registration_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_Registration_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_Registration_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_ManagementSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_ManagementSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_DnsSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_DnsSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_DnsSettings_CustomDns_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_DnsSettings_CustomDns_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_DnsSettings_GoogleDomainsDns_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_DnsSettings_GoogleDomainsDns_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_DnsSettings_DsRecord_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_DnsSettings_DsRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_DnsSettings_GlueRecord_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_DnsSettings_GlueRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_ContactSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_ContactSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_ContactSettings_Contact_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_ContactSettings_Contact_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_SearchDomainsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_SearchDomainsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_SearchDomainsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_SearchDomainsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_RetrieveRegisterParametersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_RetrieveRegisterParametersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_RetrieveRegisterParametersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_RetrieveRegisterParametersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_RegisterDomainRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_RegisterDomainRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_RetrieveTransferParametersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_RetrieveTransferParametersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_RetrieveTransferParametersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_RetrieveTransferParametersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_TransferDomainRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_TransferDomainRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_ListRegistrationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_ListRegistrationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_ListRegistrationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_ListRegistrationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_GetRegistrationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_GetRegistrationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_UpdateRegistrationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_UpdateRegistrationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_ConfigureManagementSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_ConfigureManagementSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_ConfigureDnsSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_ConfigureDnsSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_ConfigureContactSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_ConfigureContactSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_ExportRegistrationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_ExportRegistrationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_DeleteRegistrationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_DeleteRegistrationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_RetrieveAuthorizationCodeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_RetrieveAuthorizationCodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_ResetAuthorizationCodeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_ResetAuthorizationCodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_RegisterParameters_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_RegisterParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_TransferParameters_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_TransferParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_AuthorizationCode_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_AuthorizationCode_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n%google/cloud/domains/v1/domains.proto\022" - + "\027google.cloud.domains.v1\032\034google/api/ann" - + "otations.proto\032\027google/api/client.proto\032" - + "\037google/api/field_behavior.proto\032\031google" - + "/api/resource.proto\032#google/longrunning/" - + "operations.proto\032 google/protobuf/field_" - + "mask.proto\032\037google/protobuf/timestamp.pr" - + "oto\032\027google/type/money.proto\032 google/typ" - + "e/postal_address.proto\"\353\010\n\014Registration\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\033\n\013domain_name\030\002 \001(\tB" - + "\006\340A\002\340A\005\0224\n\013create_time\030\003 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\0224\n\013expire_time\030\006 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022?\n\005s" - + "tate\030\007 \001(\0162+.google.cloud.domains.v1.Reg" - + "istration.StateB\003\340A\003\022@\n\006issues\030\010 \003(\0162+.g" - + "oogle.cloud.domains.v1.Registration.Issu" - + "eB\003\340A\003\022A\n\006labels\030\t \003(\01321.google.cloud.do" - + "mains.v1.Registration.LabelsEntry\022H\n\023man" - + "agement_settings\030\n \001(\0132+.google.cloud.do" - + "mains.v1.ManagementSettings\022:\n\014dns_setti" - + "ngs\030\013 \001(\0132$.google.cloud.domains.v1.DnsS" - + "ettings\022G\n\020contact_settings\030\014 \001(\0132(.goog" - + "le.cloud.domains.v1.ContactSettingsB\003\340A\002" - + "\022O\n\030pending_contact_settings\030\r \001(\0132(.goo" - + "gle.cloud.domains.v1.ContactSettingsB\003\340A" - + "\003\022G\n\021supported_privacy\030\016 \003(\0162\'.google.cl" - + "oud.domains.v1.ContactPrivacyB\003\340A\003\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\"\245\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\030\n\024RE" - + "GISTRATION_PENDING\020\001\022\027\n\023REGISTRATION_FAI" - + "LED\020\002\022\024\n\020TRANSFER_PENDING\020\003\022\023\n\017TRANSFER_" - + "FAILED\020\004\022\n\n\006ACTIVE\020\006\022\r\n\tSUSPENDED\020\007\022\014\n\010E" - + "XPORTED\020\010\"I\n\005Issue\022\025\n\021ISSUE_UNSPECIFIED\020" - + "\000\022\023\n\017CONTACT_SUPPORT\020\001\022\024\n\020UNVERIFIED_EMA" - + "IL\020\002:n\352Ak\n#domains.googleapis.com/Regist" - + "ration\022Dprojects/{project}/locations/{lo" - + "cation}/registrations/{registration}\"\221\002\n" - + "\022ManagementSettings\022V\n\016renewal_method\030\003 " - + "\001(\01629.google.cloud.domains.v1.Management" - + "Settings.RenewalMethodB\003\340A\003\022G\n\023transfer_" - + "lock_state\030\004 \001(\0162*.google.cloud.domains." - + "v1.TransferLockState\"Z\n\rRenewalMethod\022\036\n" - + "\032RENEWAL_METHOD_UNSPECIFIED\020\000\022\025\n\021AUTOMAT" - + "IC_RENEWAL\020\001\022\022\n\016MANUAL_RENEWAL\020\002\"\236\n\n\013Dns" - + "Settings\022D\n\ncustom_dns\030\001 \001(\0132..google.cl" - + "oud.domains.v1.DnsSettings.CustomDnsH\000\022S" - + "\n\022google_domains_dns\030\002 \001(\01325.google.clou" - + "d.domains.v1.DnsSettings.GoogleDomainsDn" - + "sH\000\022E\n\014glue_records\030\004 \003(\0132/.google.cloud" - + ".domains.v1.DnsSettings.GlueRecord\032i\n\tCu" - + "stomDns\022\031\n\014name_servers\030\001 \003(\tB\003\340A\002\022A\n\nds" - + "_records\030\002 \003(\0132-.google.cloud.domains.v1" - + ".DnsSettings.DsRecord\032\272\001\n\020GoogleDomainsD" - + "ns\022\031\n\014name_servers\030\001 \003(\tB\003\340A\003\022C\n\010ds_stat" - + "e\030\002 \001(\0162,.google.cloud.domains.v1.DnsSet" - + "tings.DsStateB\003\340A\002\022F\n\nds_records\030\003 \003(\0132-" - + ".google.cloud.domains.v1.DnsSettings.DsR" - + "ecordB\003\340A\003\032\303\004\n\010DsRecord\022\017\n\007key_tag\030\001 \001(\005" - + "\022J\n\talgorithm\030\002 \001(\01627.google.cloud.domai" - + "ns.v1.DnsSettings.DsRecord.Algorithm\022M\n\013" - + "digest_type\030\003 \001(\01628.google.cloud.domains" - + ".v1.DnsSettings.DsRecord.DigestType\022\016\n\006d" - + "igest\030\004 \001(\t\"\237\002\n\tAlgorithm\022\031\n\025ALGORITHM_U" - + "NSPECIFIED\020\000\022\n\n\006RSAMD5\020\001\022\006\n\002DH\020\002\022\007\n\003DSA\020" - + "\003\022\007\n\003ECC\020\004\022\013\n\007RSASHA1\020\005\022\020\n\014DSANSEC3SHA1\020" - + "\006\022\024\n\020RSASHA1NSEC3SHA1\020\007\022\r\n\tRSASHA256\020\010\022\r" - + "\n\tRSASHA512\020\n\022\013\n\007ECCGOST\020\014\022\023\n\017ECDSAP256S" - + "HA256\020\r\022\023\n\017ECDSAP384SHA384\020\016\022\013\n\007ED25519\020" - + "\017\022\t\n\005ED448\020\020\022\r\n\010INDIRECT\020\374\001\022\017\n\nPRIVATEDN" - + "S\020\375\001\022\017\n\nPRIVATEOID\020\376\001\"Y\n\nDigestType\022\033\n\027D" - + "IGEST_TYPE_UNSPECIFIED\020\000\022\010\n\004SHA1\020\001\022\n\n\006SH" - + "A256\020\002\022\014\n\010GOST3411\020\003\022\n\n\006SHA384\020\004\032T\n\nGlue" - + "Record\022\026\n\thost_name\030\001 \001(\tB\003\340A\002\022\026\n\016ipv4_a" - + "ddresses\030\002 \003(\t\022\026\n\016ipv6_addresses\030\003 \003(\t\"Y" - + "\n\007DsState\022\030\n\024DS_STATE_UNSPECIFIED\020\000\022\032\n\026D" - + "S_RECORDS_UNPUBLISHED\020\001\022\030\n\024DS_RECORDS_PU" - + "BLISHED\020\002B\016\n\014dns_provider\"\313\003\n\017ContactSet" - + "tings\022=\n\007privacy\030\001 \001(\0162\'.google.cloud.do" - + "mains.v1.ContactPrivacyB\003\340A\002\022Q\n\022registra" - + "nt_contact\030\002 \001(\01320.google.cloud.domains." - + "v1.ContactSettings.ContactB\003\340A\002\022L\n\radmin" - + "_contact\030\003 \001(\01320.google.cloud.domains.v1" - + ".ContactSettings.ContactB\003\340A\002\022P\n\021technic" - + "al_contact\030\004 \001(\01320.google.cloud.domains." - + "v1.ContactSettings.ContactB\003\340A\002\032\205\001\n\007Cont" - + "act\0227\n\016postal_address\030\001 \001(\0132\032.google.typ" - + "e.PostalAddressB\003\340A\002\022\022\n\005email\030\002 \001(\tB\003\340A\002" - + "\022\031\n\014phone_number\030\003 \001(\tB\003\340A\002\022\022\n\nfax_numbe" - + "r\030\004 \001(\t\"g\n\024SearchDomainsRequest\022\022\n\005query" - + "\030\001 \001(\tB\003\340A\002\022;\n\010location\030\002 \001(\tB)\340A\002\372A#\n!l" - + "ocations.googleapis.com/Location\"a\n\025Sear" - + "chDomainsResponse\022H\n\023register_parameters" - + "\030\001 \003(\0132+.google.cloud.domains.v1.Registe" - + "rParameters\"z\n!RetrieveRegisterParameter" - + "sRequest\022\030\n\013domain_name\030\001 \001(\tB\003\340A\002\022;\n\010lo" - + "cation\030\002 \001(\tB)\340A\002\372A#\n!locations.googleap" - + "is.com/Location\"n\n\"RetrieveRegisterParam" - + "etersResponse\022H\n\023register_parameters\030\001 \001" - + "(\0132+.google.cloud.domains.v1.RegisterPar" - + "ameters\"\332\002\n\025RegisterDomainRequest\0229\n\006par" - + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." - + "com/Location\022@\n\014registration\030\002 \001(\0132%.goo" - + "gle.cloud.domains.v1.RegistrationB\003\340A\002\022=" - + "\n\016domain_notices\030\003 \003(\0162%.google.cloud.do" - + "mains.v1.DomainNotice\022?\n\017contact_notices" - + "\030\004 \003(\0162&.google.cloud.domains.v1.Contact" - + "Notice\022-\n\014yearly_price\030\005 \001(\0132\022.google.ty" - + "pe.MoneyB\003\340A\002\022\025\n\rvalidate_only\030\006 \001(\010\"z\n!" - + "RetrieveTransferParametersRequest\022\030\n\013dom" - + "ain_name\030\001 \001(\tB\003\340A\002\022;\n\010location\030\002 \001(\tB)\340" - + "A\002\372A#\n!locations.googleapis.com/Location" - + "\"n\n\"RetrieveTransferParametersResponse\022H" - + "\n\023transfer_parameters\030\001 \001(\0132+.google.clo" - + "ud.domains.v1.TransferParameters\"\343\002\n\025Tra" - + "nsferDomainRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" - + "A#\n!locations.googleapis.com/Location\022@\n" - + "\014registration\030\002 \001(\0132%.google.cloud.domai" - + "ns.v1.RegistrationB\003\340A\002\022?\n\017contact_notic" - + "es\030\003 \003(\0162&.google.cloud.domains.v1.Conta" - + "ctNotice\022-\n\014yearly_price\030\004 \001(\0132\022.google." - + "type.MoneyB\003\340A\002\022F\n\022authorization_code\030\005 " - + "\001(\0132*.google.cloud.domains.v1.Authorizat" - + "ionCode\022\025\n\rvalidate_only\030\006 \001(\010\"\214\001\n\030ListR" - + "egistrationsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002" - + "\372A#\n!locations.googleapis.com/Location\022\021" - + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n" - + "\006filter\030\004 \001(\t\"r\n\031ListRegistrationsRespon" - + "se\022<\n\rregistrations\030\001 \003(\0132%.google.cloud" - + ".domains.v1.Registration\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\"S\n\026GetRegistrationRequest\0229\n\004n" - + "ame\030\001 \001(\tB+\340A\002\372A%\n#domains.googleapis.co" - + "m/Registration\"\216\001\n\031UpdateRegistrationReq" - + "uest\022;\n\014registration\030\001 \001(\0132%.google.clou" - + "d.domains.v1.Registration\0224\n\013update_mask" - + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"" - + "\347\001\n\"ConfigureManagementSettingsRequest\022A" - + "\n\014registration\030\001 \001(\tB+\340A\002\372A%\n#domains.go" - + "ogleapis.com/Registration\022H\n\023management_" - + "settings\030\002 \001(\0132+.google.cloud.domains.v1" - + ".ManagementSettings\0224\n\013update_mask\030\003 \001(\013" - + "2\032.google.protobuf.FieldMaskB\003\340A\002\"\351\001\n\033Co" - + "nfigureDnsSettingsRequest\022A\n\014registratio" - + "n\030\001 \001(\tB+\340A\002\372A%\n#domains.googleapis.com/" - + "Registration\022:\n\014dns_settings\030\002 \001(\0132$.goo" - + "gle.cloud.domains.v1.DnsSettings\0224\n\013upda" - + "te_mask\030\003 \001(\0132\032.google.protobuf.FieldMas" - + "kB\003\340A\002\022\025\n\rvalidate_only\030\004 \001(\010\"\266\002\n\037Config" - + "ureContactSettingsRequest\022A\n\014registratio" - + "n\030\001 \001(\tB+\340A\002\372A%\n#domains.googleapis.com/" - + "Registration\022B\n\020contact_settings\030\002 \001(\0132(" - + ".google.cloud.domains.v1.ContactSettings" - + "\0224\n\013update_mask\030\003 \001(\0132\032.google.protobuf." - + "FieldMaskB\003\340A\002\022?\n\017contact_notices\030\004 \003(\0162" - + "&.google.cloud.domains.v1.ContactNotice\022" - + "\025\n\rvalidate_only\030\005 \001(\010\"V\n\031ExportRegistra" - + "tionRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#domai" - + "ns.googleapis.com/Registration\"V\n\031Delete" - + "RegistrationRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A" - + "%\n#domains.googleapis.com/Registration\"e" - + "\n RetrieveAuthorizationCodeRequest\022A\n\014re" - + "gistration\030\001 \001(\tB+\340A\002\372A%\n#domains.google" - + "apis.com/Registration\"b\n\035ResetAuthorizat" - + "ionCodeRequest\022A\n\014registration\030\001 \001(\tB+\340A" - + "\002\372A%\n#domains.googleapis.com/Registratio" - + "n\"\222\003\n\022RegisterParameters\022\023\n\013domain_name\030" - + "\001 \001(\t\022N\n\014availability\030\002 \001(\01628.google.clo" - + "ud.domains.v1.RegisterParameters.Availab" - + "ility\022B\n\021supported_privacy\030\003 \003(\0162\'.googl" - + "e.cloud.domains.v1.ContactPrivacy\022=\n\016dom" - + "ain_notices\030\004 \003(\0162%.google.cloud.domains" - + ".v1.DomainNotice\022(\n\014yearly_price\030\005 \001(\0132\022" - + ".google.type.Money\"j\n\014Availability\022\034\n\030AV" - + "AILABILITY_UNSPECIFIED\020\000\022\r\n\tAVAILABLE\020\001\022" - + "\017\n\013UNAVAILABLE\020\002\022\017\n\013UNSUPPORTED\020\003\022\013\n\007UNK" - + "NOWN\020\004\"\221\002\n\022TransferParameters\022\023\n\013domain_" - + "name\030\001 \001(\t\022\031\n\021current_registrar\030\002 \001(\t\022\024\n" - + "\014name_servers\030\003 \003(\t\022G\n\023transfer_lock_sta" - + "te\030\004 \001(\0162*.google.cloud.domains.v1.Trans" - + "ferLockState\022B\n\021supported_privacy\030\005 \003(\0162" - + "\'.google.cloud.domains.v1.ContactPrivacy" - + "\022(\n\014yearly_price\030\006 \001(\0132\022.google.type.Mon" - + "ey\"!\n\021AuthorizationCode\022\014\n\004code\030\001 \001(\t\"\274\001" - + "\n\021OperationMetadata\022/\n\013create_time\030\001 \001(\013" - + "2\032.google.protobuf.Timestamp\022,\n\010end_time" - + "\030\002 \001(\0132\032.google.protobuf.Timestamp\022\016\n\006ta" - + "rget\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\022\025\n\rstatus_detai" - + "l\030\005 \001(\t\022\023\n\013api_version\030\006 \001(\t*\177\n\016ContactP" - + "rivacy\022\037\n\033CONTACT_PRIVACY_UNSPECIFIED\020\000\022" - + "\027\n\023PUBLIC_CONTACT_DATA\020\001\022\030\n\024PRIVATE_CONT" - + "ACT_DATA\020\002\022\031\n\025REDACTED_CONTACT_DATA\020\003*A\n" - + "\014DomainNotice\022\035\n\031DOMAIN_NOTICE_UNSPECIFI" - + "ED\020\000\022\022\n\016HSTS_PRELOADED\020\001*X\n\rContactNotic" - + "e\022\036\n\032CONTACT_NOTICE_UNSPECIFIED\020\000\022\'\n#PUB" - + "LIC_CONTACT_DATA_ACKNOWLEDGEMENT\020\001*R\n\021Tr" - + "ansferLockState\022#\n\037TRANSFER_LOCK_STATE_U" - + "NSPECIFIED\020\000\022\014\n\010UNLOCKED\020\001\022\n\n\006LOCKED\020\0022\221" - + "\035\n\007Domains\022\312\001\n\rSearchDomains\022-.google.cl" - + "oud.domains.v1.SearchDomainsRequest\032..go" - + "ogle.cloud.domains.v1.SearchDomainsRespo" - + "nse\"Z\202\323\344\223\002C\022A/v1/{location=projects/*/lo" - + "cations/*}/registrations:searchDomains\332A" - + "\016location,query\022\204\002\n\032RetrieveRegisterPara" - + "meters\022:.google.cloud.domains.v1.Retriev" - + "eRegisterParametersRequest\032;.google.clou" - + "d.domains.v1.RetrieveRegisterParametersR" - + "esponse\"m\202\323\344\223\002P\022N/v1/{location=projects/" - + "*/locations/*}/registrations:retrieveReg" - + "isterParameters\332A\024location,domain_name\022\356" - + "\001\n\016RegisterDomain\022..google.cloud.domains" - + ".v1.RegisterDomainRequest\032\035.google.longr" - + "unning.Operation\"\214\001\202\323\344\223\002?\":/v1/{parent=p" - + "rojects/*/locations/*}/registrations:reg" - + "ister:\001*\332A parent,registration,yearly_pr" - + "ice\312A!\n\014Registration\022\021OperationMetadata\022" - + "\204\002\n\032RetrieveTransferParameters\022:.google." - + "cloud.domains.v1.RetrieveTransferParamet" - + "ersRequest\032;.google.cloud.domains.v1.Ret" - + "rieveTransferParametersResponse\"m\202\323\344\223\002P\022" - + "N/v1/{location=projects/*/locations/*}/r" - + "egistrations:retrieveTransferParameters\332" - + "A\024location,domain_name\022\201\002\n\016TransferDomai" - + "n\022..google.cloud.domains.v1.TransferDoma" - + "inRequest\032\035.google.longrunning.Operation" - + "\"\237\001\202\323\344\223\002?\":/v1/{parent=projects/*/locati" - + "ons/*}/registrations:transfer:\001*\332A3paren" - + "t,registration,yearly_price,authorizatio" - + "n_code\312A!\n\014Registration\022\021OperationMetada" - + "ta\022\276\001\n\021ListRegistrations\0221.google.cloud." - + "domains.v1.ListRegistrationsRequest\0322.go" - + "ogle.cloud.domains.v1.ListRegistrationsR" - + "esponse\"B\202\323\344\223\0023\0221/v1/{parent=projects/*/" - + "locations/*}/registrations\332A\006parent\022\253\001\n\017" - + "GetRegistration\022/.google.cloud.domains.v" - + "1.GetRegistrationRequest\032%.google.cloud." - + "domains.v1.Registration\"@\202\323\344\223\0023\0221/v1/{na" - + "me=projects/*/locations/*/registrations/" - + "*}\332A\004name\022\375\001\n\022UpdateRegistration\0222.googl" - + "e.cloud.domains.v1.UpdateRegistrationReq" - + "uest\032\035.google.longrunning.Operation\"\223\001\202\323" - + "\344\223\002N2>/v1/{registration.name=projects/*/" - + "locations/*/registrations/*}:\014registrati" - + "on\332A\030registration,update_mask\312A!\n\014Regist" - + "ration\022\021OperationMetadata\022\257\002\n\033ConfigureM" - + "anagementSettings\022;.google.cloud.domains" - + ".v1.ConfigureManagementSettingsRequest\032\035" - + ".google.longrunning.Operation\"\263\001\202\323\344\223\002Z\"U" - + "/v1/{registration=projects/*/locations/*" - + "/registrations/*}:configureManagementSet" - + "tings:\001*\332A,registration,management_setti" - + "ngs,update_mask\312A!\n\014Registration\022\021Operat" - + "ionMetadata\022\223\002\n\024ConfigureDnsSettings\0224.g" - + "oogle.cloud.domains.v1.ConfigureDnsSetti" - + "ngsRequest\032\035.google.longrunning.Operatio" - + "n\"\245\001\202\323\344\223\002S\"N/v1/{registration=projects/*" - + "/locations/*/registrations/*}:configureD" - + "nsSettings:\001*\332A%registration,dns_setting" - + "s,update_mask\312A!\n\014Registration\022\021Operatio" - + "nMetadata\022\243\002\n\030ConfigureContactSettings\0228" - + ".google.cloud.domains.v1.ConfigureContac" - + "tSettingsRequest\032\035.google.longrunning.Op" - + "eration\"\255\001\202\323\344\223\002W\"R/v1/{registration=proj" - + "ects/*/locations/*/registrations/*}:conf" - + "igureContactSettings:\001*\332A)registration,c" - + "ontact_settings,update_mask\312A!\n\014Registra" - + "tion\022\021OperationMetadata\022\327\001\n\022ExportRegist" - + "ration\0222.google.cloud.domains.v1.ExportR" - + "egistrationRequest\032\035.google.longrunning." - + "Operation\"n\202\323\344\223\002=\"8/v1/{name=projects/*/" - + "locations/*/registrations/*}:export:\001*\332A" - + "\004name\312A!\n\014Registration\022\021OperationMetadat" - + "a\022\326\001\n\022DeleteRegistration\0222.google.cloud." - + "domains.v1.DeleteRegistrationRequest\032\035.g" - + "oogle.longrunning.Operation\"m\202\323\344\223\0023*1/v1" - + "/{name=projects/*/locations/*/registrati" - + "ons/*}\332A\004name\312A*\n\025google.protobuf.Empty\022" - + "\021OperationMetadata\022\356\001\n\031RetrieveAuthoriza" - + "tionCode\0229.google.cloud.domains.v1.Retri" - + "eveAuthorizationCodeRequest\032*.google.clo" - + "ud.domains.v1.AuthorizationCode\"j\202\323\344\223\002U\022" - + "S/v1/{registration=projects/*/locations/" - + "*/registrations/*}:retrieveAuthorization" - + "Code\332A\014registration\022\350\001\n\026ResetAuthorizati" - + "onCode\0226.google.cloud.domains.v1.ResetAu" - + "thorizationCodeRequest\032*.google.cloud.do" - + "mains.v1.AuthorizationCode\"j\202\323\344\223\002U\"P/v1/" - + "{registration=projects/*/locations/*/reg" - + "istrations/*}:resetAuthorizationCode:\001*\332" - + "A\014registration\032J\312A\026domains.googleapis.co" - + "m\322A.https://www.googleapis.com/auth/clou" - + "d-platformBm\n\033com.google.cloud.domains.v" - + "1B\014DomainsProtoP\001Z>google.golang.org/gen" - + "proto/googleapis/cloud/domains/v1;domain" - + "sb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.MoneyProto.getDescriptor(), - com.google.type.PostalAddressProto.getDescriptor(), - }); - internal_static_google_cloud_domains_v1_Registration_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_domains_v1_Registration_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_Registration_descriptor, - new java.lang.String[] { - "Name", - "DomainName", - "CreateTime", - "ExpireTime", - "State", - "Issues", - "Labels", - "ManagementSettings", - "DnsSettings", - "ContactSettings", - "PendingContactSettings", - "SupportedPrivacy", - }); - internal_static_google_cloud_domains_v1_Registration_LabelsEntry_descriptor = - internal_static_google_cloud_domains_v1_Registration_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_domains_v1_Registration_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_Registration_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_domains_v1_ManagementSettings_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_domains_v1_ManagementSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_ManagementSettings_descriptor, - new java.lang.String[] { - "RenewalMethod", "TransferLockState", - }); - internal_static_google_cloud_domains_v1_DnsSettings_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_domains_v1_DnsSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_DnsSettings_descriptor, - new java.lang.String[] { - "CustomDns", "GoogleDomainsDns", "GlueRecords", "DnsProvider", - }); - internal_static_google_cloud_domains_v1_DnsSettings_CustomDns_descriptor = - internal_static_google_cloud_domains_v1_DnsSettings_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_domains_v1_DnsSettings_CustomDns_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_DnsSettings_CustomDns_descriptor, - new java.lang.String[] { - "NameServers", "DsRecords", - }); - internal_static_google_cloud_domains_v1_DnsSettings_GoogleDomainsDns_descriptor = - internal_static_google_cloud_domains_v1_DnsSettings_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_domains_v1_DnsSettings_GoogleDomainsDns_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_DnsSettings_GoogleDomainsDns_descriptor, - new java.lang.String[] { - "NameServers", "DsState", "DsRecords", - }); - internal_static_google_cloud_domains_v1_DnsSettings_DsRecord_descriptor = - internal_static_google_cloud_domains_v1_DnsSettings_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_domains_v1_DnsSettings_DsRecord_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_DnsSettings_DsRecord_descriptor, - new java.lang.String[] { - "KeyTag", "Algorithm", "DigestType", "Digest", - }); - internal_static_google_cloud_domains_v1_DnsSettings_GlueRecord_descriptor = - internal_static_google_cloud_domains_v1_DnsSettings_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_domains_v1_DnsSettings_GlueRecord_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_DnsSettings_GlueRecord_descriptor, - new java.lang.String[] { - "HostName", "Ipv4Addresses", "Ipv6Addresses", - }); - internal_static_google_cloud_domains_v1_ContactSettings_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_domains_v1_ContactSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_ContactSettings_descriptor, - new java.lang.String[] { - "Privacy", "RegistrantContact", "AdminContact", "TechnicalContact", - }); - internal_static_google_cloud_domains_v1_ContactSettings_Contact_descriptor = - internal_static_google_cloud_domains_v1_ContactSettings_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_domains_v1_ContactSettings_Contact_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_ContactSettings_Contact_descriptor, - new java.lang.String[] { - "PostalAddress", "Email", "PhoneNumber", "FaxNumber", - }); - internal_static_google_cloud_domains_v1_SearchDomainsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_domains_v1_SearchDomainsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_SearchDomainsRequest_descriptor, - new java.lang.String[] { - "Query", "Location", - }); - internal_static_google_cloud_domains_v1_SearchDomainsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_domains_v1_SearchDomainsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_SearchDomainsResponse_descriptor, - new java.lang.String[] { - "RegisterParameters", - }); - internal_static_google_cloud_domains_v1_RetrieveRegisterParametersRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_domains_v1_RetrieveRegisterParametersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_RetrieveRegisterParametersRequest_descriptor, - new java.lang.String[] { - "DomainName", "Location", - }); - internal_static_google_cloud_domains_v1_RetrieveRegisterParametersResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_domains_v1_RetrieveRegisterParametersResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_RetrieveRegisterParametersResponse_descriptor, - new java.lang.String[] { - "RegisterParameters", - }); - internal_static_google_cloud_domains_v1_RegisterDomainRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_domains_v1_RegisterDomainRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_RegisterDomainRequest_descriptor, - new java.lang.String[] { - "Parent", - "Registration", - "DomainNotices", - "ContactNotices", - "YearlyPrice", - "ValidateOnly", - }); - internal_static_google_cloud_domains_v1_RetrieveTransferParametersRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_domains_v1_RetrieveTransferParametersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_RetrieveTransferParametersRequest_descriptor, - new java.lang.String[] { - "DomainName", "Location", - }); - internal_static_google_cloud_domains_v1_RetrieveTransferParametersResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_domains_v1_RetrieveTransferParametersResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_RetrieveTransferParametersResponse_descriptor, - new java.lang.String[] { - "TransferParameters", - }); - internal_static_google_cloud_domains_v1_TransferDomainRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_domains_v1_TransferDomainRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_TransferDomainRequest_descriptor, - new java.lang.String[] { - "Parent", - "Registration", - "ContactNotices", - "YearlyPrice", - "AuthorizationCode", - "ValidateOnly", - }); - internal_static_google_cloud_domains_v1_ListRegistrationsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_domains_v1_ListRegistrationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_ListRegistrationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_domains_v1_ListRegistrationsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_domains_v1_ListRegistrationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_ListRegistrationsResponse_descriptor, - new java.lang.String[] { - "Registrations", "NextPageToken", - }); - internal_static_google_cloud_domains_v1_GetRegistrationRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_domains_v1_GetRegistrationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_GetRegistrationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_domains_v1_UpdateRegistrationRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_domains_v1_UpdateRegistrationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_UpdateRegistrationRequest_descriptor, - new java.lang.String[] { - "Registration", "UpdateMask", - }); - internal_static_google_cloud_domains_v1_ConfigureManagementSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_domains_v1_ConfigureManagementSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_ConfigureManagementSettingsRequest_descriptor, - new java.lang.String[] { - "Registration", "ManagementSettings", "UpdateMask", - }); - internal_static_google_cloud_domains_v1_ConfigureDnsSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_domains_v1_ConfigureDnsSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_ConfigureDnsSettingsRequest_descriptor, - new java.lang.String[] { - "Registration", "DnsSettings", "UpdateMask", "ValidateOnly", - }); - internal_static_google_cloud_domains_v1_ConfigureContactSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_domains_v1_ConfigureContactSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_ConfigureContactSettingsRequest_descriptor, - new java.lang.String[] { - "Registration", "ContactSettings", "UpdateMask", "ContactNotices", "ValidateOnly", - }); - internal_static_google_cloud_domains_v1_ExportRegistrationRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_domains_v1_ExportRegistrationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_ExportRegistrationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_domains_v1_DeleteRegistrationRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_domains_v1_DeleteRegistrationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_DeleteRegistrationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_domains_v1_RetrieveAuthorizationCodeRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_domains_v1_RetrieveAuthorizationCodeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_RetrieveAuthorizationCodeRequest_descriptor, - new java.lang.String[] { - "Registration", - }); - internal_static_google_cloud_domains_v1_ResetAuthorizationCodeRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_domains_v1_ResetAuthorizationCodeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_ResetAuthorizationCodeRequest_descriptor, - new java.lang.String[] { - "Registration", - }); - internal_static_google_cloud_domains_v1_RegisterParameters_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_domains_v1_RegisterParameters_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_RegisterParameters_descriptor, - new java.lang.String[] { - "DomainName", "Availability", "SupportedPrivacy", "DomainNotices", "YearlyPrice", - }); - internal_static_google_cloud_domains_v1_TransferParameters_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_domains_v1_TransferParameters_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_TransferParameters_descriptor, - new java.lang.String[] { - "DomainName", - "CurrentRegistrar", - "NameServers", - "TransferLockState", - "SupportedPrivacy", - "YearlyPrice", - }); - internal_static_google_cloud_domains_v1_AuthorizationCode_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_domains_v1_AuthorizationCode_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_AuthorizationCode_descriptor, - new java.lang.String[] { - "Code", - }); - internal_static_google_cloud_domains_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_domains_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "ApiVersion", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.MoneyProto.getDescriptor(); - com.google.type.PostalAddressProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ExportRegistrationRequest.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ExportRegistrationRequest.java deleted file mode 100644 index 41956d2a..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ExportRegistrationRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Request for the `ExportRegistration` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.ExportRegistrationRequest} - */ -public final class ExportRegistrationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.ExportRegistrationRequest) - ExportRegistrationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExportRegistrationRequest.newBuilder() to construct. - private ExportRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ExportRegistrationRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ExportRegistrationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ExportRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ExportRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ExportRegistrationRequest.class, - com.google.cloud.domains.v1.ExportRegistrationRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the `Registration` to export,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` to export,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.ExportRegistrationRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.ExportRegistrationRequest other = - (com.google.cloud.domains.v1.ExportRegistrationRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.ExportRegistrationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ExportRegistrationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ExportRegistrationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ExportRegistrationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ExportRegistrationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ExportRegistrationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ExportRegistrationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ExportRegistrationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ExportRegistrationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ExportRegistrationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ExportRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ExportRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1.ExportRegistrationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ExportRegistration` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.ExportRegistrationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.ExportRegistrationRequest) - com.google.cloud.domains.v1.ExportRegistrationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ExportRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ExportRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ExportRegistrationRequest.class, - com.google.cloud.domains.v1.ExportRegistrationRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.ExportRegistrationRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ExportRegistrationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ExportRegistrationRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1.ExportRegistrationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.ExportRegistrationRequest build() { - com.google.cloud.domains.v1.ExportRegistrationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ExportRegistrationRequest buildPartial() { - com.google.cloud.domains.v1.ExportRegistrationRequest result = - new com.google.cloud.domains.v1.ExportRegistrationRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.ExportRegistrationRequest) { - return mergeFrom((com.google.cloud.domains.v1.ExportRegistrationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.ExportRegistrationRequest other) { - if (other == com.google.cloud.domains.v1.ExportRegistrationRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` to export,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to export,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to export,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to export,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to export,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.ExportRegistrationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.ExportRegistrationRequest) - private static final com.google.cloud.domains.v1.ExportRegistrationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.ExportRegistrationRequest(); - } - - public static com.google.cloud.domains.v1.ExportRegistrationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportRegistrationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ExportRegistrationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ExportRegistrationRequestOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ExportRegistrationRequestOrBuilder.java deleted file mode 100644 index 329fc841..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ExportRegistrationRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface ExportRegistrationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.ExportRegistrationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` to export,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the `Registration` to export,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/GetRegistrationRequest.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/GetRegistrationRequest.java deleted file mode 100644 index 42f97074..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/GetRegistrationRequest.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/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Request for the `GetRegistration` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.GetRegistrationRequest} - */ -public final class GetRegistrationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.GetRegistrationRequest) - GetRegistrationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetRegistrationRequest.newBuilder() to construct. - private GetRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetRegistrationRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetRegistrationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_GetRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_GetRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.GetRegistrationRequest.class, - com.google.cloud.domains.v1.GetRegistrationRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the `Registration` to get, in the format
-   * `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` to get, in the format
-   * `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.GetRegistrationRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.GetRegistrationRequest other = - (com.google.cloud.domains.v1.GetRegistrationRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.GetRegistrationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.GetRegistrationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.GetRegistrationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.GetRegistrationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.GetRegistrationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.GetRegistrationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.GetRegistrationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.GetRegistrationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.GetRegistrationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.GetRegistrationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.GetRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.GetRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1.GetRegistrationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `GetRegistration` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.GetRegistrationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.GetRegistrationRequest) - com.google.cloud.domains.v1.GetRegistrationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_GetRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_GetRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.GetRegistrationRequest.class, - com.google.cloud.domains.v1.GetRegistrationRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.GetRegistrationRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_GetRegistrationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.GetRegistrationRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1.GetRegistrationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.GetRegistrationRequest build() { - com.google.cloud.domains.v1.GetRegistrationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.GetRegistrationRequest buildPartial() { - com.google.cloud.domains.v1.GetRegistrationRequest result = - new com.google.cloud.domains.v1.GetRegistrationRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.GetRegistrationRequest) { - return mergeFrom((com.google.cloud.domains.v1.GetRegistrationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.GetRegistrationRequest other) { - if (other == com.google.cloud.domains.v1.GetRegistrationRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` to get, in the format
-     * `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to get, in the format
-     * `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to get, in the format
-     * `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to get, in the format
-     * `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to get, in the format
-     * `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.GetRegistrationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.GetRegistrationRequest) - private static final com.google.cloud.domains.v1.GetRegistrationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.GetRegistrationRequest(); - } - - public static com.google.cloud.domains.v1.GetRegistrationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRegistrationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.GetRegistrationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/GetRegistrationRequestOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/GetRegistrationRequestOrBuilder.java deleted file mode 100644 index f71746ab..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/GetRegistrationRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface GetRegistrationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.GetRegistrationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` to get, in the format
-   * `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the `Registration` to get, in the format
-   * `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ListRegistrationsRequest.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ListRegistrationsRequest.java deleted file mode 100644 index 302d3d1a..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ListRegistrationsRequest.java +++ /dev/null @@ -1,1174 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Request for the `ListRegistrations` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.ListRegistrationsRequest} - */ -public final class ListRegistrationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.ListRegistrationsRequest) - ListRegistrationsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListRegistrationsRequest.newBuilder() to construct. - private ListRegistrationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListRegistrationsRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListRegistrationsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ListRegistrationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ListRegistrationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ListRegistrationsRequest.class, - com.google.cloud.domains.v1.ListRegistrationsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The project and location from which to list `Registration`s, specified in
-   * the format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The project and location from which to list `Registration`s, specified in
-   * the format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * Maximum number of results to return.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * When set to the `next_page_token` from a prior response, provides the next
-   * page of results.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * When set to the `next_page_token` from a prior response, provides the next
-   * page of results.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * Filter expression to restrict the `Registration`s returned.
-   * The expression must specify the field name, a comparison operator, and the
-   * value that you want to use for filtering. The value must be a string, a
-   * number, a boolean, or an enum value. The comparison operator should be one
-   * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-   * For example, to filter to a specific domain name, use an expression like
-   * `domainName="example.com"`. You can also check for the existence of a
-   * field; for example, to find domains using custom DNS settings, use an
-   * expression like `dnsSettings.customDns:*`.
-   * You can also create compound filters by combining expressions with the
-   * `AND` and `OR` operators. For example, to find domains that are suspended
-   * or have specific issues flagged, use an expression like
-   * `(state=SUSPENDED) OR (issue:*)`.
-   * 
- * - * string filter = 4; - * - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * Filter expression to restrict the `Registration`s returned.
-   * The expression must specify the field name, a comparison operator, and the
-   * value that you want to use for filtering. The value must be a string, a
-   * number, a boolean, or an enum value. The comparison operator should be one
-   * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-   * For example, to filter to a specific domain name, use an expression like
-   * `domainName="example.com"`. You can also check for the existence of a
-   * field; for example, to find domains using custom DNS settings, use an
-   * expression like `dnsSettings.customDns:*`.
-   * You can also create compound filters by combining expressions with the
-   * `AND` and `OR` operators. For example, to find domains that are suspended
-   * or have specific issues flagged, use an expression like
-   * `(state=SUSPENDED) OR (issue:*)`.
-   * 
- * - * string filter = 4; - * - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.ListRegistrationsRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.ListRegistrationsRequest other = - (com.google.cloud.domains.v1.ListRegistrationsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.ListRegistrationsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ListRegistrationsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ListRegistrationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ListRegistrationsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ListRegistrationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ListRegistrationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ListRegistrationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ListRegistrationsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ListRegistrationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ListRegistrationsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ListRegistrationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ListRegistrationsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1.ListRegistrationsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ListRegistrations` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.ListRegistrationsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.ListRegistrationsRequest) - com.google.cloud.domains.v1.ListRegistrationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ListRegistrationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ListRegistrationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ListRegistrationsRequest.class, - com.google.cloud.domains.v1.ListRegistrationsRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.ListRegistrationsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - filter_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ListRegistrationsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ListRegistrationsRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1.ListRegistrationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.ListRegistrationsRequest build() { - com.google.cloud.domains.v1.ListRegistrationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ListRegistrationsRequest buildPartial() { - com.google.cloud.domains.v1.ListRegistrationsRequest result = - new com.google.cloud.domains.v1.ListRegistrationsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.ListRegistrationsRequest) { - return mergeFrom((com.google.cloud.domains.v1.ListRegistrationsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.ListRegistrationsRequest other) { - if (other == com.google.cloud.domains.v1.ListRegistrationsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The project and location from which to list `Registration`s, specified in
-     * the format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The project and location from which to list `Registration`s, specified in
-     * the format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The project and location from which to list `Registration`s, specified in
-     * the format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The project and location from which to list `Registration`s, specified in
-     * the format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The project and location from which to list `Registration`s, specified in
-     * the format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * Maximum number of results to return.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Maximum number of results to return.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Maximum number of results to return.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * When set to the `next_page_token` from a prior response, provides the next
-     * page of results.
-     * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * When set to the `next_page_token` from a prior response, provides the next
-     * page of results.
-     * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * When set to the `next_page_token` from a prior response, provides the next
-     * page of results.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * When set to the `next_page_token` from a prior response, provides the next
-     * page of results.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * When set to the `next_page_token` from a prior response, provides the next
-     * page of results.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * Filter expression to restrict the `Registration`s returned.
-     * The expression must specify the field name, a comparison operator, and the
-     * value that you want to use for filtering. The value must be a string, a
-     * number, a boolean, or an enum value. The comparison operator should be one
-     * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-     * For example, to filter to a specific domain name, use an expression like
-     * `domainName="example.com"`. You can also check for the existence of a
-     * field; for example, to find domains using custom DNS settings, use an
-     * expression like `dnsSettings.customDns:*`.
-     * You can also create compound filters by combining expressions with the
-     * `AND` and `OR` operators. For example, to find domains that are suspended
-     * or have specific issues flagged, use an expression like
-     * `(state=SUSPENDED) OR (issue:*)`.
-     * 
- * - * string filter = 4; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Filter expression to restrict the `Registration`s returned.
-     * The expression must specify the field name, a comparison operator, and the
-     * value that you want to use for filtering. The value must be a string, a
-     * number, a boolean, or an enum value. The comparison operator should be one
-     * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-     * For example, to filter to a specific domain name, use an expression like
-     * `domainName="example.com"`. You can also check for the existence of a
-     * field; for example, to find domains using custom DNS settings, use an
-     * expression like `dnsSettings.customDns:*`.
-     * You can also create compound filters by combining expressions with the
-     * `AND` and `OR` operators. For example, to find domains that are suspended
-     * or have specific issues flagged, use an expression like
-     * `(state=SUSPENDED) OR (issue:*)`.
-     * 
- * - * string filter = 4; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Filter expression to restrict the `Registration`s returned.
-     * The expression must specify the field name, a comparison operator, and the
-     * value that you want to use for filtering. The value must be a string, a
-     * number, a boolean, or an enum value. The comparison operator should be one
-     * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-     * For example, to filter to a specific domain name, use an expression like
-     * `domainName="example.com"`. You can also check for the existence of a
-     * field; for example, to find domains using custom DNS settings, use an
-     * expression like `dnsSettings.customDns:*`.
-     * You can also create compound filters by combining expressions with the
-     * `AND` and `OR` operators. For example, to find domains that are suspended
-     * or have specific issues flagged, use an expression like
-     * `(state=SUSPENDED) OR (issue:*)`.
-     * 
- * - * string filter = 4; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Filter expression to restrict the `Registration`s returned.
-     * The expression must specify the field name, a comparison operator, and the
-     * value that you want to use for filtering. The value must be a string, a
-     * number, a boolean, or an enum value. The comparison operator should be one
-     * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-     * For example, to filter to a specific domain name, use an expression like
-     * `domainName="example.com"`. You can also check for the existence of a
-     * field; for example, to find domains using custom DNS settings, use an
-     * expression like `dnsSettings.customDns:*`.
-     * You can also create compound filters by combining expressions with the
-     * `AND` and `OR` operators. For example, to find domains that are suspended
-     * or have specific issues flagged, use an expression like
-     * `(state=SUSPENDED) OR (issue:*)`.
-     * 
- * - * string filter = 4; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * Filter expression to restrict the `Registration`s returned.
-     * The expression must specify the field name, a comparison operator, and the
-     * value that you want to use for filtering. The value must be a string, a
-     * number, a boolean, or an enum value. The comparison operator should be one
-     * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-     * For example, to filter to a specific domain name, use an expression like
-     * `domainName="example.com"`. You can also check for the existence of a
-     * field; for example, to find domains using custom DNS settings, use an
-     * expression like `dnsSettings.customDns:*`.
-     * You can also create compound filters by combining expressions with the
-     * `AND` and `OR` operators. For example, to find domains that are suspended
-     * or have specific issues flagged, use an expression like
-     * `(state=SUSPENDED) OR (issue:*)`.
-     * 
- * - * string filter = 4; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.ListRegistrationsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.ListRegistrationsRequest) - private static final com.google.cloud.domains.v1.ListRegistrationsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.ListRegistrationsRequest(); - } - - public static com.google.cloud.domains.v1.ListRegistrationsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRegistrationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ListRegistrationsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ListRegistrationsRequestOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ListRegistrationsRequestOrBuilder.java deleted file mode 100644 index a0430dee..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ListRegistrationsRequestOrBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface ListRegistrationsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.ListRegistrationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The project and location from which to list `Registration`s, specified in
-   * the format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The project and location from which to list `Registration`s, specified in
-   * the format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Maximum number of results to return.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * When set to the `next_page_token` from a prior response, provides the next
-   * page of results.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * When set to the `next_page_token` from a prior response, provides the next
-   * page of results.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * Filter expression to restrict the `Registration`s returned.
-   * The expression must specify the field name, a comparison operator, and the
-   * value that you want to use for filtering. The value must be a string, a
-   * number, a boolean, or an enum value. The comparison operator should be one
-   * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-   * For example, to filter to a specific domain name, use an expression like
-   * `domainName="example.com"`. You can also check for the existence of a
-   * field; for example, to find domains using custom DNS settings, use an
-   * expression like `dnsSettings.customDns:*`.
-   * You can also create compound filters by combining expressions with the
-   * `AND` and `OR` operators. For example, to find domains that are suspended
-   * or have specific issues flagged, use an expression like
-   * `(state=SUSPENDED) OR (issue:*)`.
-   * 
- * - * string filter = 4; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * Filter expression to restrict the `Registration`s returned.
-   * The expression must specify the field name, a comparison operator, and the
-   * value that you want to use for filtering. The value must be a string, a
-   * number, a boolean, or an enum value. The comparison operator should be one
-   * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-   * For example, to filter to a specific domain name, use an expression like
-   * `domainName="example.com"`. You can also check for the existence of a
-   * field; for example, to find domains using custom DNS settings, use an
-   * expression like `dnsSettings.customDns:*`.
-   * You can also create compound filters by combining expressions with the
-   * `AND` and `OR` operators. For example, to find domains that are suspended
-   * or have specific issues flagged, use an expression like
-   * `(state=SUSPENDED) OR (issue:*)`.
-   * 
- * - * string filter = 4; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ListRegistrationsResponse.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ListRegistrationsResponse.java deleted file mode 100644 index 56efd8f3..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ListRegistrationsResponse.java +++ /dev/null @@ -1,1117 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Response for the `ListRegistrations` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.ListRegistrationsResponse} - */ -public final class ListRegistrationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.ListRegistrationsResponse) - ListRegistrationsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListRegistrationsResponse.newBuilder() to construct. - private ListRegistrationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListRegistrationsResponse() { - registrations_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListRegistrationsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ListRegistrationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ListRegistrationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ListRegistrationsResponse.class, - com.google.cloud.domains.v1.ListRegistrationsResponse.Builder.class); - } - - public static final int REGISTRATIONS_FIELD_NUMBER = 1; - private java.util.List registrations_; - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - @java.lang.Override - public java.util.List getRegistrationsList() { - return registrations_; - } - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - @java.lang.Override - public java.util.List - getRegistrationsOrBuilderList() { - return registrations_; - } - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - @java.lang.Override - public int getRegistrationsCount() { - return registrations_.size(); - } - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1.Registration getRegistrations(int index) { - return registrations_.get(index); - } - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1.RegistrationOrBuilder getRegistrationsOrBuilder(int index) { - return registrations_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * When present, there are more results to retrieve. Set `page_token` to this
-   * value on a subsequent call to get the next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * When present, there are more results to retrieve. Set `page_token` to this
-   * value on a subsequent call to get the next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < registrations_.size(); i++) { - output.writeMessage(1, registrations_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < registrations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, registrations_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.ListRegistrationsResponse)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.ListRegistrationsResponse other = - (com.google.cloud.domains.v1.ListRegistrationsResponse) obj; - - if (!getRegistrationsList().equals(other.getRegistrationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRegistrationsCount() > 0) { - hash = (37 * hash) + REGISTRATIONS_FIELD_NUMBER; - hash = (53 * hash) + getRegistrationsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.ListRegistrationsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ListRegistrationsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ListRegistrationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ListRegistrationsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ListRegistrationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ListRegistrationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ListRegistrationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ListRegistrationsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ListRegistrationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ListRegistrationsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ListRegistrationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ListRegistrationsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1.ListRegistrationsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response for the `ListRegistrations` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.ListRegistrationsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.ListRegistrationsResponse) - com.google.cloud.domains.v1.ListRegistrationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ListRegistrationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ListRegistrationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ListRegistrationsResponse.class, - com.google.cloud.domains.v1.ListRegistrationsResponse.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.ListRegistrationsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (registrationsBuilder_ == null) { - registrations_ = java.util.Collections.emptyList(); - } else { - registrations_ = null; - registrationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ListRegistrationsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ListRegistrationsResponse getDefaultInstanceForType() { - return com.google.cloud.domains.v1.ListRegistrationsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.ListRegistrationsResponse build() { - com.google.cloud.domains.v1.ListRegistrationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ListRegistrationsResponse buildPartial() { - com.google.cloud.domains.v1.ListRegistrationsResponse result = - new com.google.cloud.domains.v1.ListRegistrationsResponse(this); - int from_bitField0_ = bitField0_; - if (registrationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - registrations_ = java.util.Collections.unmodifiableList(registrations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.registrations_ = registrations_; - } else { - result.registrations_ = registrationsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.ListRegistrationsResponse) { - return mergeFrom((com.google.cloud.domains.v1.ListRegistrationsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.ListRegistrationsResponse other) { - if (other == com.google.cloud.domains.v1.ListRegistrationsResponse.getDefaultInstance()) - return this; - if (registrationsBuilder_ == null) { - if (!other.registrations_.isEmpty()) { - if (registrations_.isEmpty()) { - registrations_ = other.registrations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRegistrationsIsMutable(); - registrations_.addAll(other.registrations_); - } - onChanged(); - } - } else { - if (!other.registrations_.isEmpty()) { - if (registrationsBuilder_.isEmpty()) { - registrationsBuilder_.dispose(); - registrationsBuilder_ = null; - registrations_ = other.registrations_; - bitField0_ = (bitField0_ & ~0x00000001); - registrationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRegistrationsFieldBuilder() - : null; - } else { - registrationsBuilder_.addAllMessages(other.registrations_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.domains.v1.Registration m = - input.readMessage( - com.google.cloud.domains.v1.Registration.parser(), extensionRegistry); - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - registrations_.add(m); - } else { - registrationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List registrations_ = - java.util.Collections.emptyList(); - - private void ensureRegistrationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - registrations_ = - new java.util.ArrayList(registrations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1.Registration, - com.google.cloud.domains.v1.Registration.Builder, - com.google.cloud.domains.v1.RegistrationOrBuilder> - registrationsBuilder_; - - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public java.util.List getRegistrationsList() { - if (registrationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(registrations_); - } else { - return registrationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public int getRegistrationsCount() { - if (registrationsBuilder_ == null) { - return registrations_.size(); - } else { - return registrationsBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public com.google.cloud.domains.v1.Registration getRegistrations(int index) { - if (registrationsBuilder_ == null) { - return registrations_.get(index); - } else { - return registrationsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public Builder setRegistrations(int index, com.google.cloud.domains.v1.Registration value) { - if (registrationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegistrationsIsMutable(); - registrations_.set(index, value); - onChanged(); - } else { - registrationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public Builder setRegistrations( - int index, com.google.cloud.domains.v1.Registration.Builder builderForValue) { - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - registrations_.set(index, builderForValue.build()); - onChanged(); - } else { - registrationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public Builder addRegistrations(com.google.cloud.domains.v1.Registration value) { - if (registrationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegistrationsIsMutable(); - registrations_.add(value); - onChanged(); - } else { - registrationsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public Builder addRegistrations(int index, com.google.cloud.domains.v1.Registration value) { - if (registrationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegistrationsIsMutable(); - registrations_.add(index, value); - onChanged(); - } else { - registrationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public Builder addRegistrations( - com.google.cloud.domains.v1.Registration.Builder builderForValue) { - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - registrations_.add(builderForValue.build()); - onChanged(); - } else { - registrationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public Builder addRegistrations( - int index, com.google.cloud.domains.v1.Registration.Builder builderForValue) { - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - registrations_.add(index, builderForValue.build()); - onChanged(); - } else { - registrationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public Builder addAllRegistrations( - java.lang.Iterable values) { - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, registrations_); - onChanged(); - } else { - registrationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public Builder clearRegistrations() { - if (registrationsBuilder_ == null) { - registrations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - registrationsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public Builder removeRegistrations(int index) { - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - registrations_.remove(index); - onChanged(); - } else { - registrationsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public com.google.cloud.domains.v1.Registration.Builder getRegistrationsBuilder(int index) { - return getRegistrationsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public com.google.cloud.domains.v1.RegistrationOrBuilder getRegistrationsOrBuilder(int index) { - if (registrationsBuilder_ == null) { - return registrations_.get(index); - } else { - return registrationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public java.util.List - getRegistrationsOrBuilderList() { - if (registrationsBuilder_ != null) { - return registrationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(registrations_); - } - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public com.google.cloud.domains.v1.Registration.Builder addRegistrationsBuilder() { - return getRegistrationsFieldBuilder() - .addBuilder(com.google.cloud.domains.v1.Registration.getDefaultInstance()); - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public com.google.cloud.domains.v1.Registration.Builder addRegistrationsBuilder(int index) { - return getRegistrationsFieldBuilder() - .addBuilder(index, com.google.cloud.domains.v1.Registration.getDefaultInstance()); - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - public java.util.List - getRegistrationsBuilderList() { - return getRegistrationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1.Registration, - com.google.cloud.domains.v1.Registration.Builder, - com.google.cloud.domains.v1.RegistrationOrBuilder> - getRegistrationsFieldBuilder() { - if (registrationsBuilder_ == null) { - registrationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1.Registration, - com.google.cloud.domains.v1.Registration.Builder, - com.google.cloud.domains.v1.RegistrationOrBuilder>( - registrations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - registrations_ = null; - } - return registrationsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * When present, there are more results to retrieve. Set `page_token` to this
-     * value on a subsequent call to get the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * When present, there are more results to retrieve. Set `page_token` to this
-     * value on a subsequent call to get the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * When present, there are more results to retrieve. Set `page_token` to this
-     * value on a subsequent call to get the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * When present, there are more results to retrieve. Set `page_token` to this
-     * value on a subsequent call to get the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * When present, there are more results to retrieve. Set `page_token` to this
-     * value on a subsequent call to get the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.ListRegistrationsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.ListRegistrationsResponse) - private static final com.google.cloud.domains.v1.ListRegistrationsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.ListRegistrationsResponse(); - } - - public static com.google.cloud.domains.v1.ListRegistrationsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRegistrationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ListRegistrationsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ListRegistrationsResponseOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ListRegistrationsResponseOrBuilder.java deleted file mode 100644 index 275106fe..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ListRegistrationsResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface ListRegistrationsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.ListRegistrationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - java.util.List getRegistrationsList(); - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - com.google.cloud.domains.v1.Registration getRegistrations(int index); - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - int getRegistrationsCount(); - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - java.util.List - getRegistrationsOrBuilderList(); - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - com.google.cloud.domains.v1.RegistrationOrBuilder getRegistrationsOrBuilder(int index); - - /** - * - * - *
-   * When present, there are more results to retrieve. Set `page_token` to this
-   * value on a subsequent call to get the next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * When present, there are more results to retrieve. Set `page_token` to this
-   * value on a subsequent call to get the next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/LocationName.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/LocationName.java deleted file mode 100644 index 2e36943b..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/LocationName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class LocationName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION = - PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - - @Deprecated - protected LocationName() { - project = null; - location = null; - } - - private LocationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static LocationName of(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build(); - } - - public static String format(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build().toString(); - } - - public static LocationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION.validatedMatch( - formattedString, "LocationName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (LocationName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION.instantiate("project", project, "location", location); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - LocationName that = ((LocationName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - return h; - } - - /** Builder for projects/{project}/locations/{location}. */ - public static class Builder { - private String project; - private String location; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - private Builder(LocationName locationName) { - this.project = locationName.project; - this.location = locationName.location; - } - - public LocationName build() { - return new LocationName(this); - } - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ManagementSettings.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ManagementSettings.java deleted file mode 100644 index a6e9f4d1..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ManagementSettings.java +++ /dev/null @@ -1,930 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Defines renewal, billing, and transfer settings for a `Registration`.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.ManagementSettings} - */ -public final class ManagementSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.ManagementSettings) - ManagementSettingsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ManagementSettings.newBuilder() to construct. - private ManagementSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ManagementSettings() { - renewalMethod_ = 0; - transferLockState_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ManagementSettings(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ManagementSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ManagementSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ManagementSettings.class, - com.google.cloud.domains.v1.ManagementSettings.Builder.class); - } - - /** - * - * - *
-   * Defines how the `Registration` is renewed.
-   * 
- * - * Protobuf enum {@code google.cloud.domains.v1.ManagementSettings.RenewalMethod} - */ - public enum RenewalMethod implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The renewal method is undefined.
-     * 
- * - * RENEWAL_METHOD_UNSPECIFIED = 0; - */ - RENEWAL_METHOD_UNSPECIFIED(0), - /** - * - * - *
-     * The domain is automatically renewed each year .
-     * To disable automatic renewals, delete the resource by calling
-     * `DeleteRegistration` or export it by calling `ExportRegistration`.
-     * 
- * - * AUTOMATIC_RENEWAL = 1; - */ - AUTOMATIC_RENEWAL(1), - /** - * - * - *
-     * The domain must be explicitly renewed each year before its
-     * `expire_time`. This option is only available when the `Registration`
-     * is in state `EXPORTED`.
-     * To manage the domain's current billing and
-     * renewal settings, go to [Google Domains](https://domains.google/).
-     * 
- * - * MANUAL_RENEWAL = 2; - */ - MANUAL_RENEWAL(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The renewal method is undefined.
-     * 
- * - * RENEWAL_METHOD_UNSPECIFIED = 0; - */ - public static final int RENEWAL_METHOD_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The domain is automatically renewed each year .
-     * To disable automatic renewals, delete the resource by calling
-     * `DeleteRegistration` or export it by calling `ExportRegistration`.
-     * 
- * - * AUTOMATIC_RENEWAL = 1; - */ - public static final int AUTOMATIC_RENEWAL_VALUE = 1; - /** - * - * - *
-     * The domain must be explicitly renewed each year before its
-     * `expire_time`. This option is only available when the `Registration`
-     * is in state `EXPORTED`.
-     * To manage the domain's current billing and
-     * renewal settings, go to [Google Domains](https://domains.google/).
-     * 
- * - * MANUAL_RENEWAL = 2; - */ - public static final int MANUAL_RENEWAL_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 RenewalMethod 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 RenewalMethod forNumber(int value) { - switch (value) { - case 0: - return RENEWAL_METHOD_UNSPECIFIED; - case 1: - return AUTOMATIC_RENEWAL; - case 2: - return MANUAL_RENEWAL; - 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 RenewalMethod findValueByNumber(int number) { - return RenewalMethod.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1.ManagementSettings.getDescriptor().getEnumTypes().get(0); - } - - private static final RenewalMethod[] VALUES = values(); - - public static RenewalMethod 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 RenewalMethod(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1.ManagementSettings.RenewalMethod) - } - - public static final int RENEWAL_METHOD_FIELD_NUMBER = 3; - private int renewalMethod_; - /** - * - * - *
-   * Output only. The renewal method for this `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for renewalMethod. - */ - @java.lang.Override - public int getRenewalMethodValue() { - return renewalMethod_; - } - /** - * - * - *
-   * Output only. The renewal method for this `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The renewalMethod. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ManagementSettings.RenewalMethod getRenewalMethod() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.ManagementSettings.RenewalMethod result = - com.google.cloud.domains.v1.ManagementSettings.RenewalMethod.valueOf(renewalMethod_); - return result == null - ? com.google.cloud.domains.v1.ManagementSettings.RenewalMethod.UNRECOGNIZED - : result; - } - - public static final int TRANSFER_LOCK_STATE_FIELD_NUMBER = 4; - private int transferLockState_; - /** - * - * - *
-   * Controls whether the domain can be transferred to another registrar.
-   * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - @java.lang.Override - public int getTransferLockStateValue() { - return transferLockState_; - } - /** - * - * - *
-   * Controls whether the domain can be transferred to another registrar.
-   * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - @java.lang.Override - public com.google.cloud.domains.v1.TransferLockState getTransferLockState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.TransferLockState result = - com.google.cloud.domains.v1.TransferLockState.valueOf(transferLockState_); - return result == null ? com.google.cloud.domains.v1.TransferLockState.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 (renewalMethod_ - != com.google.cloud.domains.v1.ManagementSettings.RenewalMethod.RENEWAL_METHOD_UNSPECIFIED - .getNumber()) { - output.writeEnum(3, renewalMethod_); - } - if (transferLockState_ - != com.google.cloud.domains.v1.TransferLockState.TRANSFER_LOCK_STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(4, transferLockState_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (renewalMethod_ - != com.google.cloud.domains.v1.ManagementSettings.RenewalMethod.RENEWAL_METHOD_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, renewalMethod_); - } - if (transferLockState_ - != com.google.cloud.domains.v1.TransferLockState.TRANSFER_LOCK_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, transferLockState_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.ManagementSettings)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.ManagementSettings other = - (com.google.cloud.domains.v1.ManagementSettings) obj; - - if (renewalMethod_ != other.renewalMethod_) return false; - if (transferLockState_ != other.transferLockState_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RENEWAL_METHOD_FIELD_NUMBER; - hash = (53 * hash) + renewalMethod_; - hash = (37 * hash) + TRANSFER_LOCK_STATE_FIELD_NUMBER; - hash = (53 * hash) + transferLockState_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.ManagementSettings parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ManagementSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ManagementSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ManagementSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ManagementSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ManagementSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ManagementSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ManagementSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ManagementSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ManagementSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ManagementSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ManagementSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1.ManagementSettings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Defines renewal, billing, and transfer settings for a `Registration`.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.ManagementSettings} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.ManagementSettings) - com.google.cloud.domains.v1.ManagementSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ManagementSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ManagementSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ManagementSettings.class, - com.google.cloud.domains.v1.ManagementSettings.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.ManagementSettings.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - renewalMethod_ = 0; - - transferLockState_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ManagementSettings_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ManagementSettings getDefaultInstanceForType() { - return com.google.cloud.domains.v1.ManagementSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.ManagementSettings build() { - com.google.cloud.domains.v1.ManagementSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ManagementSettings buildPartial() { - com.google.cloud.domains.v1.ManagementSettings result = - new com.google.cloud.domains.v1.ManagementSettings(this); - result.renewalMethod_ = renewalMethod_; - result.transferLockState_ = transferLockState_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.ManagementSettings) { - return mergeFrom((com.google.cloud.domains.v1.ManagementSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.ManagementSettings other) { - if (other == com.google.cloud.domains.v1.ManagementSettings.getDefaultInstance()) return this; - if (other.renewalMethod_ != 0) { - setRenewalMethodValue(other.getRenewalMethodValue()); - } - if (other.transferLockState_ != 0) { - setTransferLockStateValue(other.getTransferLockStateValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 24: - { - renewalMethod_ = input.readEnum(); - - break; - } // case 24 - case 32: - { - transferLockState_ = input.readEnum(); - - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int renewalMethod_ = 0; - /** - * - * - *
-     * Output only. The renewal method for this `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for renewalMethod. - */ - @java.lang.Override - public int getRenewalMethodValue() { - return renewalMethod_; - } - /** - * - * - *
-     * Output only. The renewal method for this `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for renewalMethod to set. - * @return This builder for chaining. - */ - public Builder setRenewalMethodValue(int value) { - - renewalMethod_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The renewal method for this `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The renewalMethod. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ManagementSettings.RenewalMethod getRenewalMethod() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.ManagementSettings.RenewalMethod result = - com.google.cloud.domains.v1.ManagementSettings.RenewalMethod.valueOf(renewalMethod_); - return result == null - ? com.google.cloud.domains.v1.ManagementSettings.RenewalMethod.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. The renewal method for this `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The renewalMethod to set. - * @return This builder for chaining. - */ - public Builder setRenewalMethod( - com.google.cloud.domains.v1.ManagementSettings.RenewalMethod value) { - if (value == null) { - throw new NullPointerException(); - } - - renewalMethod_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The renewal method for this `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearRenewalMethod() { - - renewalMethod_ = 0; - onChanged(); - return this; - } - - private int transferLockState_ = 0; - /** - * - * - *
-     * Controls whether the domain can be transferred to another registrar.
-     * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - @java.lang.Override - public int getTransferLockStateValue() { - return transferLockState_; - } - /** - * - * - *
-     * Controls whether the domain can be transferred to another registrar.
-     * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @param value The enum numeric value on the wire for transferLockState to set. - * @return This builder for chaining. - */ - public Builder setTransferLockStateValue(int value) { - - transferLockState_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Controls whether the domain can be transferred to another registrar.
-     * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - @java.lang.Override - public com.google.cloud.domains.v1.TransferLockState getTransferLockState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.TransferLockState result = - com.google.cloud.domains.v1.TransferLockState.valueOf(transferLockState_); - return result == null ? com.google.cloud.domains.v1.TransferLockState.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Controls whether the domain can be transferred to another registrar.
-     * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @param value The transferLockState to set. - * @return This builder for chaining. - */ - public Builder setTransferLockState(com.google.cloud.domains.v1.TransferLockState value) { - if (value == null) { - throw new NullPointerException(); - } - - transferLockState_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Controls whether the domain can be transferred to another registrar.
-     * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @return This builder for chaining. - */ - public Builder clearTransferLockState() { - - transferLockState_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.ManagementSettings) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.ManagementSettings) - private static final com.google.cloud.domains.v1.ManagementSettings DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.ManagementSettings(); - } - - public static com.google.cloud.domains.v1.ManagementSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ManagementSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ManagementSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ManagementSettingsOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ManagementSettingsOrBuilder.java deleted file mode 100644 index dedec311..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ManagementSettingsOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface ManagementSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.ManagementSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The renewal method for this `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for renewalMethod. - */ - int getRenewalMethodValue(); - /** - * - * - *
-   * Output only. The renewal method for this `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The renewalMethod. - */ - com.google.cloud.domains.v1.ManagementSettings.RenewalMethod getRenewalMethod(); - - /** - * - * - *
-   * Controls whether the domain can be transferred to another registrar.
-   * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - int getTransferLockStateValue(); - /** - * - * - *
-   * Controls whether the domain can be transferred to another registrar.
-   * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - com.google.cloud.domains.v1.TransferLockState getTransferLockState(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/OperationMetadata.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/OperationMetadata.java deleted file mode 100644 index c6d967bb..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/OperationMetadata.java +++ /dev/null @@ -1,1670 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Represents the metadata of the long-running operation. Output only.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.OperationMetadata} - */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.OperationMetadata) - OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use OperationMetadata.newBuilder() to construct. - private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private OperationMetadata() { - target_ = ""; - verb_ = ""; - statusDetail_ = ""; - apiVersion_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OperationMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_OperationMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_OperationMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.OperationMetadata.class, - com.google.cloud.domains.v1.OperationMetadata.Builder.class); - } - - public static final int CREATE_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int END_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp endTime_; - /** - * - * - *
-   * The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - @java.lang.Override - public boolean hasEndTime() { - return endTime_ != null; - } - /** - * - * - *
-   * The time the operation finished running.
-   * 
- * - * .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 the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); - } - - public static final int TARGET_FIELD_NUMBER = 3; - private volatile java.lang.Object target_; - /** - * - * - *
-   * Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3; - * - * @return The target. - */ - @java.lang.Override - public java.lang.String getTarget() { - java.lang.Object ref = target_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - target_ = s; - return s; - } - } - /** - * - * - *
-   * Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3; - * - * @return The bytes for target. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { - java.lang.Object ref = target_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - target_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERB_FIELD_NUMBER = 4; - private volatile java.lang.Object verb_; - /** - * - * - *
-   * Name of the verb executed by the operation.
-   * 
- * - * string verb = 4; - * - * @return The verb. - */ - @java.lang.Override - public java.lang.String getVerb() { - java.lang.Object ref = verb_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verb_ = s; - return s; - } - } - /** - * - * - *
-   * Name of the verb executed by the operation.
-   * 
- * - * string verb = 4; - * - * @return The bytes for verb. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { - java.lang.Object ref = verb_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - verb_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_DETAIL_FIELD_NUMBER = 5; - private volatile java.lang.Object statusDetail_; - /** - * - * - *
-   * Human-readable status of the operation, if any.
-   * 
- * - * string status_detail = 5; - * - * @return The statusDetail. - */ - @java.lang.Override - public java.lang.String getStatusDetail() { - java.lang.Object ref = statusDetail_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusDetail_ = s; - return s; - } - } - /** - * - * - *
-   * Human-readable status of the operation, if any.
-   * 
- * - * string status_detail = 5; - * - * @return The bytes for statusDetail. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStatusDetailBytes() { - java.lang.Object ref = statusDetail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - statusDetail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int API_VERSION_FIELD_NUMBER = 6; - private volatile java.lang.Object apiVersion_; - /** - * - * - *
-   * API version used to start the operation.
-   * 
- * - * string api_version = 6; - * - * @return The apiVersion. - */ - @java.lang.Override - public java.lang.String getApiVersion() { - java.lang.Object ref = apiVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - apiVersion_ = s; - return s; - } - } - /** - * - * - *
-   * API version used to start the operation.
-   * 
- * - * string api_version = 6; - * - * @return The bytes for apiVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { - java.lang.Object ref = apiVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - apiVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (createTime_ != null) { - output.writeMessage(1, getCreateTime()); - } - if (endTime_ != null) { - output.writeMessage(2, getEndTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusDetail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, apiVersion_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); - } - if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, apiVersion_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.OperationMetadata)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.OperationMetadata other = - (com.google.cloud.domains.v1.OperationMetadata) obj; - - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasEndTime() != other.hasEndTime()) return false; - if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusDetail().equals(other.getStatusDetail())) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasEndTime()) { - hash = (37 * hash) + END_TIME_FIELD_NUMBER; - hash = (53 * hash) + getEndTime().hashCode(); - } - hash = (37 * hash) + TARGET_FIELD_NUMBER; - hash = (53 * hash) + getTarget().hashCode(); - hash = (37 * hash) + VERB_FIELD_NUMBER; - hash = (53 * hash) + getVerb().hashCode(); - hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; - hash = (53 * hash) + getStatusDetail().hashCode(); - hash = (37 * hash) + API_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getApiVersion().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.OperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.OperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.OperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1.OperationMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Represents the metadata of the long-running operation. Output only.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.OperationMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.OperationMetadata) - com.google.cloud.domains.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_OperationMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_OperationMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.OperationMetadata.class, - com.google.cloud.domains.v1.OperationMetadata.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.OperationMetadata.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - target_ = ""; - - verb_ = ""; - - statusDetail_ = ""; - - apiVersion_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_OperationMetadata_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.OperationMetadata getDefaultInstanceForType() { - return com.google.cloud.domains.v1.OperationMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.OperationMetadata build() { - com.google.cloud.domains.v1.OperationMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.OperationMetadata buildPartial() { - com.google.cloud.domains.v1.OperationMetadata result = - new com.google.cloud.domains.v1.OperationMetadata(this); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); - } - result.target_ = target_; - result.verb_ = verb_; - result.statusDetail_ = statusDetail_; - result.apiVersion_ = apiVersion_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.domains.v1.OperationMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.OperationMetadata other) { - if (other == com.google.cloud.domains.v1.OperationMetadata.getDefaultInstance()) return this; - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasEndTime()) { - mergeEndTime(other.getEndTime()); - } - if (!other.getTarget().isEmpty()) { - target_ = other.target_; - onChanged(); - } - if (!other.getVerb().isEmpty()) { - verb_ = other.verb_; - onChanged(); - } - if (!other.getStatusDetail().isEmpty()) { - statusDetail_ = other.statusDetail_; - onChanged(); - } - if (!other.getApiVersion().isEmpty()) { - apiVersion_ = other.apiVersion_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - statusDetail_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: - { - apiVersion_ = input.readStringRequireUtf8(); - - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp endTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; - /** - * - * - *
-     * The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; - } - /** - * - * - *
-     * The time the operation finished running.
-     * 
- * - * .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 the operation finished running.
-     * 
- * - * .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 the operation finished running.
-     * 
- * - * .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 the operation finished running.
-     * 
- * - * .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 the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - - onChanged(); - return getEndTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The time the operation finished running.
-     * 
- * - * .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 the operation finished running.
-     * 
- * - * .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_; - } - - private java.lang.Object target_ = ""; - /** - * - * - *
-     * Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3; - * - * @return The target. - */ - public java.lang.String getTarget() { - java.lang.Object ref = target_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - target_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3; - * - * @return The bytes for target. - */ - public com.google.protobuf.ByteString getTargetBytes() { - java.lang.Object ref = target_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - target_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3; - * - * @param value The target to set. - * @return This builder for chaining. - */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - target_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3; - * - * @return This builder for chaining. - */ - public Builder clearTarget() { - - target_ = getDefaultInstance().getTarget(); - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3; - * - * @param value The bytes for target to set. - * @return This builder for chaining. - */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - target_ = value; - onChanged(); - return this; - } - - private java.lang.Object verb_ = ""; - /** - * - * - *
-     * Name of the verb executed by the operation.
-     * 
- * - * string verb = 4; - * - * @return The verb. - */ - public java.lang.String getVerb() { - java.lang.Object ref = verb_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verb_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Name of the verb executed by the operation.
-     * 
- * - * string verb = 4; - * - * @return The bytes for verb. - */ - public com.google.protobuf.ByteString getVerbBytes() { - java.lang.Object ref = verb_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - verb_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Name of the verb executed by the operation.
-     * 
- * - * string verb = 4; - * - * @param value The verb to set. - * @return This builder for chaining. - */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - verb_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the verb executed by the operation.
-     * 
- * - * string verb = 4; - * - * @return This builder for chaining. - */ - public Builder clearVerb() { - - verb_ = getDefaultInstance().getVerb(); - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the verb executed by the operation.
-     * 
- * - * string verb = 4; - * - * @param value The bytes for verb to set. - * @return This builder for chaining. - */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - verb_ = value; - onChanged(); - return this; - } - - private java.lang.Object statusDetail_ = ""; - /** - * - * - *
-     * Human-readable status of the operation, if any.
-     * 
- * - * string status_detail = 5; - * - * @return The statusDetail. - */ - public java.lang.String getStatusDetail() { - java.lang.Object ref = statusDetail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusDetail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Human-readable status of the operation, if any.
-     * 
- * - * string status_detail = 5; - * - * @return The bytes for statusDetail. - */ - public com.google.protobuf.ByteString getStatusDetailBytes() { - java.lang.Object ref = statusDetail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - statusDetail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Human-readable status of the operation, if any.
-     * 
- * - * string status_detail = 5; - * - * @param value The statusDetail to set. - * @return This builder for chaining. - */ - public Builder setStatusDetail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusDetail_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Human-readable status of the operation, if any.
-     * 
- * - * string status_detail = 5; - * - * @return This builder for chaining. - */ - public Builder clearStatusDetail() { - - statusDetail_ = getDefaultInstance().getStatusDetail(); - onChanged(); - return this; - } - /** - * - * - *
-     * Human-readable status of the operation, if any.
-     * 
- * - * string status_detail = 5; - * - * @param value The bytes for statusDetail to set. - * @return This builder for chaining. - */ - public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusDetail_ = value; - onChanged(); - return this; - } - - private java.lang.Object apiVersion_ = ""; - /** - * - * - *
-     * API version used to start the operation.
-     * 
- * - * string api_version = 6; - * - * @return The apiVersion. - */ - public java.lang.String getApiVersion() { - java.lang.Object ref = apiVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - apiVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * API version used to start the operation.
-     * 
- * - * string api_version = 6; - * - * @return The bytes for apiVersion. - */ - public com.google.protobuf.ByteString getApiVersionBytes() { - java.lang.Object ref = apiVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - apiVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * API version used to start the operation.
-     * 
- * - * string api_version = 6; - * - * @param value The apiVersion to set. - * @return This builder for chaining. - */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - apiVersion_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * API version used to start the operation.
-     * 
- * - * string api_version = 6; - * - * @return This builder for chaining. - */ - public Builder clearApiVersion() { - - apiVersion_ = getDefaultInstance().getApiVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * API version used to start the operation.
-     * 
- * - * string api_version = 6; - * - * @param value The bytes for apiVersion to set. - * @return This builder for chaining. - */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - apiVersion_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.OperationMetadata) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.OperationMetadata) - private static final com.google.cloud.domains.v1.OperationMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.OperationMetadata(); - } - - public static com.google.cloud.domains.v1.OperationMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.OperationMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/OperationMetadataOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/OperationMetadataOrBuilder.java deleted file mode 100644 index 4ffc7a89..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/OperationMetadataOrBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface OperationMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.OperationMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - boolean hasEndTime(); - /** - * - * - *
-   * The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return The endTime. - */ - com.google.protobuf.Timestamp getEndTime(); - /** - * - * - *
-   * The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); - - /** - * - * - *
-   * Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3; - * - * @return The target. - */ - java.lang.String getTarget(); - /** - * - * - *
-   * Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3; - * - * @return The bytes for target. - */ - com.google.protobuf.ByteString getTargetBytes(); - - /** - * - * - *
-   * Name of the verb executed by the operation.
-   * 
- * - * string verb = 4; - * - * @return The verb. - */ - java.lang.String getVerb(); - /** - * - * - *
-   * Name of the verb executed by the operation.
-   * 
- * - * string verb = 4; - * - * @return The bytes for verb. - */ - com.google.protobuf.ByteString getVerbBytes(); - - /** - * - * - *
-   * Human-readable status of the operation, if any.
-   * 
- * - * string status_detail = 5; - * - * @return The statusDetail. - */ - java.lang.String getStatusDetail(); - /** - * - * - *
-   * Human-readable status of the operation, if any.
-   * 
- * - * string status_detail = 5; - * - * @return The bytes for statusDetail. - */ - com.google.protobuf.ByteString getStatusDetailBytes(); - - /** - * - * - *
-   * API version used to start the operation.
-   * 
- * - * string api_version = 6; - * - * @return The apiVersion. - */ - java.lang.String getApiVersion(); - /** - * - * - *
-   * API version used to start the operation.
-   * 
- * - * string api_version = 6; - * - * @return The bytes for apiVersion. - */ - com.google.protobuf.ByteString getApiVersionBytes(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegisterDomainRequest.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegisterDomainRequest.java deleted file mode 100644 index f6d0c1dc..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegisterDomainRequest.java +++ /dev/null @@ -1,2123 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Request for the `RegisterDomain` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.RegisterDomainRequest} - */ -public final class RegisterDomainRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.RegisterDomainRequest) - RegisterDomainRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RegisterDomainRequest.newBuilder() to construct. - private RegisterDomainRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RegisterDomainRequest() { - parent_ = ""; - domainNotices_ = java.util.Collections.emptyList(); - contactNotices_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RegisterDomainRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RegisterDomainRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RegisterDomainRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.RegisterDomainRequest.class, - com.google.cloud.domains.v1.RegisterDomainRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGISTRATION_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1.Registration registration_; - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - @java.lang.Override - public boolean hasRegistration() { - return registration_ != null; - } - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - @java.lang.Override - public com.google.cloud.domains.v1.Registration getRegistration() { - return registration_ == null - ? com.google.cloud.domains.v1.Registration.getDefaultInstance() - : registration_; - } - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1.RegistrationOrBuilder getRegistrationOrBuilder() { - return getRegistration(); - } - - public static final int DOMAIN_NOTICES_FIELD_NUMBER = 3; - private java.util.List domainNotices_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.DomainNotice> - domainNotices_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.DomainNotice>() { - public com.google.cloud.domains.v1.DomainNotice convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.DomainNotice result = - com.google.cloud.domains.v1.DomainNotice.valueOf(from); - return result == null - ? com.google.cloud.domains.v1.DomainNotice.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @return A list containing the domainNotices. - */ - @java.lang.Override - public java.util.List getDomainNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.DomainNotice>( - domainNotices_, domainNotices_converter_); - } - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @return The count of domainNotices. - */ - @java.lang.Override - public int getDomainNoticesCount() { - return domainNotices_.size(); - } - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1.DomainNotice getDomainNotices(int index) { - return domainNotices_converter_.convert(domainNotices_.get(index)); - } - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - @java.lang.Override - public java.util.List getDomainNoticesValueList() { - return domainNotices_; - } - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - @java.lang.Override - public int getDomainNoticesValue(int index) { - return domainNotices_.get(index); - } - - private int domainNoticesMemoizedSerializedSize; - - public static final int CONTACT_NOTICES_FIELD_NUMBER = 4; - private java.util.List contactNotices_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.ContactNotice> - contactNotices_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.ContactNotice>() { - public com.google.cloud.domains.v1.ContactNotice convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.ContactNotice result = - com.google.cloud.domains.v1.ContactNotice.valueOf(from); - return result == null - ? com.google.cloud.domains.v1.ContactNotice.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - @java.lang.Override - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesValueList() { - return contactNotices_; - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - @java.lang.Override - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - - private int contactNoticesMemoizedSerializedSize; - - public static final int YEARLY_PRICE_FIELD_NUMBER = 5; - private com.google.type.Money yearlyPrice_; - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - @java.lang.Override - public boolean hasYearlyPrice() { - return yearlyPrice_ != null; - } - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - @java.lang.Override - public com.google.type.Money getYearlyPrice() { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - return getYearlyPrice(); - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 6; - private boolean validateOnly_; - /** - * - * - *
-   * When true, only validation is performed, without actually registering
-   * the domain. Follows:
-   * https://cloud.google.com/apis/design/design_patterns#request_validation
-   * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (registration_ != null) { - output.writeMessage(2, getRegistration()); - } - if (getDomainNoticesList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(domainNoticesMemoizedSerializedSize); - } - for (int i = 0; i < domainNotices_.size(); i++) { - output.writeEnumNoTag(domainNotices_.get(i)); - } - if (getContactNoticesList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(contactNoticesMemoizedSerializedSize); - } - for (int i = 0; i < contactNotices_.size(); i++) { - output.writeEnumNoTag(contactNotices_.get(i)); - } - if (yearlyPrice_ != null) { - output.writeMessage(5, getYearlyPrice()); - } - if (validateOnly_ != false) { - output.writeBool(6, validateOnly_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (registration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRegistration()); - } - { - int dataSize = 0; - for (int i = 0; i < domainNotices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(domainNotices_.get(i)); - } - size += dataSize; - if (!getDomainNoticesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - domainNoticesMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < contactNotices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(contactNotices_.get(i)); - } - size += dataSize; - if (!getContactNoticesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - contactNoticesMemoizedSerializedSize = dataSize; - } - if (yearlyPrice_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getYearlyPrice()); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, validateOnly_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.RegisterDomainRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.RegisterDomainRequest other = - (com.google.cloud.domains.v1.RegisterDomainRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasRegistration() != other.hasRegistration()) return false; - if (hasRegistration()) { - if (!getRegistration().equals(other.getRegistration())) return false; - } - if (!domainNotices_.equals(other.domainNotices_)) return false; - if (!contactNotices_.equals(other.contactNotices_)) return false; - if (hasYearlyPrice() != other.hasYearlyPrice()) return false; - if (hasYearlyPrice()) { - if (!getYearlyPrice().equals(other.getYearlyPrice())) return false; - } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasRegistration()) { - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - } - if (getDomainNoticesCount() > 0) { - hash = (37 * hash) + DOMAIN_NOTICES_FIELD_NUMBER; - hash = (53 * hash) + domainNotices_.hashCode(); - } - if (getContactNoticesCount() > 0) { - hash = (37 * hash) + CONTACT_NOTICES_FIELD_NUMBER; - hash = (53 * hash) + contactNotices_.hashCode(); - } - if (hasYearlyPrice()) { - hash = (37 * hash) + YEARLY_PRICE_FIELD_NUMBER; - hash = (53 * hash) + getYearlyPrice().hashCode(); - } - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.RegisterDomainRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RegisterDomainRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RegisterDomainRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RegisterDomainRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RegisterDomainRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RegisterDomainRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RegisterDomainRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RegisterDomainRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RegisterDomainRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RegisterDomainRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RegisterDomainRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RegisterDomainRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1.RegisterDomainRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `RegisterDomain` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.RegisterDomainRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.RegisterDomainRequest) - com.google.cloud.domains.v1.RegisterDomainRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RegisterDomainRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RegisterDomainRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.RegisterDomainRequest.class, - com.google.cloud.domains.v1.RegisterDomainRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.RegisterDomainRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (registrationBuilder_ == null) { - registration_ = null; - } else { - registration_ = null; - registrationBuilder_ = null; - } - domainNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RegisterDomainRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RegisterDomainRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1.RegisterDomainRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.RegisterDomainRequest build() { - com.google.cloud.domains.v1.RegisterDomainRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RegisterDomainRequest buildPartial() { - com.google.cloud.domains.v1.RegisterDomainRequest result = - new com.google.cloud.domains.v1.RegisterDomainRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; - if (registrationBuilder_ == null) { - result.registration_ = registration_; - } else { - result.registration_ = registrationBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - domainNotices_ = java.util.Collections.unmodifiableList(domainNotices_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.domainNotices_ = domainNotices_; - if (((bitField0_ & 0x00000002) != 0)) { - contactNotices_ = java.util.Collections.unmodifiableList(contactNotices_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.contactNotices_ = contactNotices_; - if (yearlyPriceBuilder_ == null) { - result.yearlyPrice_ = yearlyPrice_; - } else { - result.yearlyPrice_ = yearlyPriceBuilder_.build(); - } - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.RegisterDomainRequest) { - return mergeFrom((com.google.cloud.domains.v1.RegisterDomainRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.RegisterDomainRequest other) { - if (other == com.google.cloud.domains.v1.RegisterDomainRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasRegistration()) { - mergeRegistration(other.getRegistration()); - } - if (!other.domainNotices_.isEmpty()) { - if (domainNotices_.isEmpty()) { - domainNotices_ = other.domainNotices_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDomainNoticesIsMutable(); - domainNotices_.addAll(other.domainNotices_); - } - onChanged(); - } - if (!other.contactNotices_.isEmpty()) { - if (contactNotices_.isEmpty()) { - contactNotices_ = other.contactNotices_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureContactNoticesIsMutable(); - contactNotices_.addAll(other.contactNotices_); - } - onChanged(); - } - if (other.hasYearlyPrice()) { - mergeYearlyPrice(other.getYearlyPrice()); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getRegistrationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 24: - { - int tmpRaw = input.readEnum(); - ensureDomainNoticesIsMutable(); - domainNotices_.add(tmpRaw); - break; - } // case 24 - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureDomainNoticesIsMutable(); - domainNotices_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 32: - { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - break; - } // case 32 - case 34: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 34 - case 42: - { - input.readMessage(getYearlyPriceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 48: - { - validateOnly_ = input.readBool(); - - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1.Registration registration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.Registration, - com.google.cloud.domains.v1.Registration.Builder, - com.google.cloud.domains.v1.RegistrationOrBuilder> - registrationBuilder_; - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - public boolean hasRegistration() { - return registrationBuilder_ != null || registration_ != null; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - public com.google.cloud.domains.v1.Registration getRegistration() { - if (registrationBuilder_ == null) { - return registration_ == null - ? com.google.cloud.domains.v1.Registration.getDefaultInstance() - : registration_; - } else { - return registrationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistration(com.google.cloud.domains.v1.Registration value) { - if (registrationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - registration_ = value; - onChanged(); - } else { - registrationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistration( - com.google.cloud.domains.v1.Registration.Builder builderForValue) { - if (registrationBuilder_ == null) { - registration_ = builderForValue.build(); - onChanged(); - } else { - registrationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRegistration(com.google.cloud.domains.v1.Registration value) { - if (registrationBuilder_ == null) { - if (registration_ != null) { - registration_ = - com.google.cloud.domains.v1.Registration.newBuilder(registration_) - .mergeFrom(value) - .buildPartial(); - } else { - registration_ = value; - } - onChanged(); - } else { - registrationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRegistration() { - if (registrationBuilder_ == null) { - registration_ = null; - onChanged(); - } else { - registration_ = null; - registrationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1.Registration.Builder getRegistrationBuilder() { - - onChanged(); - return getRegistrationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1.RegistrationOrBuilder getRegistrationOrBuilder() { - if (registrationBuilder_ != null) { - return registrationBuilder_.getMessageOrBuilder(); - } else { - return registration_ == null - ? com.google.cloud.domains.v1.Registration.getDefaultInstance() - : registration_; - } - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.Registration, - com.google.cloud.domains.v1.Registration.Builder, - com.google.cloud.domains.v1.RegistrationOrBuilder> - getRegistrationFieldBuilder() { - if (registrationBuilder_ == null) { - registrationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.Registration, - com.google.cloud.domains.v1.Registration.Builder, - com.google.cloud.domains.v1.RegistrationOrBuilder>( - getRegistration(), getParentForChildren(), isClean()); - registration_ = null; - } - return registrationBuilder_; - } - - private java.util.List domainNotices_ = java.util.Collections.emptyList(); - - private void ensureDomainNoticesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - domainNotices_ = new java.util.ArrayList(domainNotices_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @return A list containing the domainNotices. - */ - public java.util.List getDomainNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.DomainNotice>( - domainNotices_, domainNotices_converter_); - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @return The count of domainNotices. - */ - public int getDomainNoticesCount() { - return domainNotices_.size(); - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - public com.google.cloud.domains.v1.DomainNotice getDomainNotices(int index) { - return domainNotices_converter_.convert(domainNotices_.get(index)); - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @param index The index to set the value at. - * @param value The domainNotices to set. - * @return This builder for chaining. - */ - public Builder setDomainNotices(int index, com.google.cloud.domains.v1.DomainNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainNoticesIsMutable(); - domainNotices_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @param value The domainNotices to add. - * @return This builder for chaining. - */ - public Builder addDomainNotices(com.google.cloud.domains.v1.DomainNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainNoticesIsMutable(); - domainNotices_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @param values The domainNotices to add. - * @return This builder for chaining. - */ - public Builder addAllDomainNotices( - java.lang.Iterable values) { - ensureDomainNoticesIsMutable(); - for (com.google.cloud.domains.v1.DomainNotice value : values) { - domainNotices_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @return This builder for chaining. - */ - public Builder clearDomainNotices() { - domainNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - public java.util.List getDomainNoticesValueList() { - return java.util.Collections.unmodifiableList(domainNotices_); - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - public int getDomainNoticesValue(int index) { - return domainNotices_.get(index); - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for domainNotices to set. - * @return This builder for chaining. - */ - public Builder setDomainNoticesValue(int index, int value) { - ensureDomainNoticesIsMutable(); - domainNotices_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @param value The enum numeric value on the wire for domainNotices to add. - * @return This builder for chaining. - */ - public Builder addDomainNoticesValue(int value) { - ensureDomainNoticesIsMutable(); - domainNotices_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @param values The enum numeric values on the wire for domainNotices to add. - * @return This builder for chaining. - */ - public Builder addAllDomainNoticesValue(java.lang.Iterable values) { - ensureDomainNoticesIsMutable(); - for (int value : values) { - domainNotices_.add(value); - } - onChanged(); - return this; - } - - private java.util.List contactNotices_ = java.util.Collections.emptyList(); - - private void ensureContactNoticesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - contactNotices_ = new java.util.ArrayList(contactNotices_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - public com.google.cloud.domains.v1.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param index The index to set the value at. - * @param value The contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNotices(int index, com.google.cloud.domains.v1.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param value The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNotices(com.google.cloud.domains.v1.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param values The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNotices( - java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (com.google.cloud.domains.v1.ContactNotice value : values) { - contactNotices_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return This builder for chaining. - */ - public Builder clearContactNotices() { - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - public java.util.List getContactNoticesValueList() { - return java.util.Collections.unmodifiableList(contactNotices_); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNoticesValue(int index, int value) { - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param value The enum numeric value on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNoticesValue(int value) { - ensureContactNoticesIsMutable(); - contactNotices_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param values The enum numeric values on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNoticesValue(java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (int value : values) { - contactNotices_.add(value); - } - onChanged(); - return this; - } - - private com.google.type.Money yearlyPrice_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - yearlyPriceBuilder_; - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - public boolean hasYearlyPrice() { - return yearlyPriceBuilder_ != null || yearlyPrice_ != null; - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - public com.google.type.Money getYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } else { - return yearlyPriceBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - yearlyPrice_ = value; - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setYearlyPrice(com.google.type.Money.Builder builderForValue) { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = builderForValue.build(); - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (yearlyPrice_ != null) { - yearlyPrice_ = - com.google.type.Money.newBuilder(yearlyPrice_).mergeFrom(value).buildPartial(); - } else { - yearlyPrice_ = value; - } - onChanged(); - } else { - yearlyPriceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - onChanged(); - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.type.Money.Builder getYearlyPriceBuilder() { - - onChanged(); - return getYearlyPriceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - if (yearlyPriceBuilder_ != null) { - return yearlyPriceBuilder_.getMessageOrBuilder(); - } else { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - getYearlyPriceFieldBuilder() { - if (yearlyPriceBuilder_ == null) { - yearlyPriceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, - com.google.type.Money.Builder, - com.google.type.MoneyOrBuilder>( - getYearlyPrice(), getParentForChildren(), isClean()); - yearlyPrice_ = null; - } - return yearlyPriceBuilder_; - } - - private boolean validateOnly_; - /** - * - * - *
-     * When true, only validation is performed, without actually registering
-     * the domain. Follows:
-     * https://cloud.google.com/apis/design/design_patterns#request_validation
-     * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - * - * - *
-     * When true, only validation is performed, without actually registering
-     * the domain. Follows:
-     * https://cloud.google.com/apis/design/design_patterns#request_validation
-     * 
- * - * bool validate_only = 6; - * - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * When true, only validation is performed, without actually registering
-     * the domain. Follows:
-     * https://cloud.google.com/apis/design/design_patterns#request_validation
-     * 
- * - * bool validate_only = 6; - * - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.RegisterDomainRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.RegisterDomainRequest) - private static final com.google.cloud.domains.v1.RegisterDomainRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.RegisterDomainRequest(); - } - - public static com.google.cloud.domains.v1.RegisterDomainRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegisterDomainRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RegisterDomainRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegisterDomainRequestOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegisterDomainRequestOrBuilder.java deleted file mode 100644 index a21ef579..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegisterDomainRequestOrBuilder.java +++ /dev/null @@ -1,294 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface RegisterDomainRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.RegisterDomainRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - boolean hasRegistration(); - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - com.google.cloud.domains.v1.Registration getRegistration(); - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1.RegistrationOrBuilder getRegistrationOrBuilder(); - - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @return A list containing the domainNotices. - */ - java.util.List getDomainNoticesList(); - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @return The count of domainNotices. - */ - int getDomainNoticesCount(); - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - com.google.cloud.domains.v1.DomainNotice getDomainNotices(int index); - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - java.util.List getDomainNoticesValueList(); - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - int getDomainNoticesValue(int index); - - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - java.util.List getContactNoticesList(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - int getContactNoticesCount(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - com.google.cloud.domains.v1.ContactNotice getContactNotices(int index); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - java.util.List getContactNoticesValueList(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - int getContactNoticesValue(int index); - - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - boolean hasYearlyPrice(); - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - com.google.type.Money getYearlyPrice(); - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder(); - - /** - * - * - *
-   * When true, only validation is performed, without actually registering
-   * the domain. Follows:
-   * https://cloud.google.com/apis/design/design_patterns#request_validation
-   * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegisterParameters.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegisterParameters.java deleted file mode 100644 index b04ba9c9..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegisterParameters.java +++ /dev/null @@ -1,2015 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Parameters required to register a new domain.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.RegisterParameters} - */ -public final class RegisterParameters extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.RegisterParameters) - RegisterParametersOrBuilder { - private static final long serialVersionUID = 0L; - // Use RegisterParameters.newBuilder() to construct. - private RegisterParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RegisterParameters() { - domainName_ = ""; - availability_ = 0; - supportedPrivacy_ = java.util.Collections.emptyList(); - domainNotices_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RegisterParameters(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RegisterParameters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RegisterParameters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.RegisterParameters.class, - com.google.cloud.domains.v1.RegisterParameters.Builder.class); - } - - /** - * - * - *
-   * Possible availability states of a domain name.
-   * 
- * - * Protobuf enum {@code google.cloud.domains.v1.RegisterParameters.Availability} - */ - public enum Availability implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The availability is unspecified.
-     * 
- * - * AVAILABILITY_UNSPECIFIED = 0; - */ - AVAILABILITY_UNSPECIFIED(0), - /** - * - * - *
-     * The domain is available for registration.
-     * 
- * - * AVAILABLE = 1; - */ - AVAILABLE(1), - /** - * - * - *
-     * The domain is not available for registration. Generally this means it is
-     * already registered to another party.
-     * 
- * - * UNAVAILABLE = 2; - */ - UNAVAILABLE(2), - /** - * - * - *
-     * The domain is not currently supported by Cloud Domains, but may
-     * be available elsewhere.
-     * 
- * - * UNSUPPORTED = 3; - */ - UNSUPPORTED(3), - /** - * - * - *
-     * Cloud Domains is unable to determine domain availability, generally
-     * due to system maintenance at the domain name registry.
-     * 
- * - * UNKNOWN = 4; - */ - UNKNOWN(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The availability is unspecified.
-     * 
- * - * AVAILABILITY_UNSPECIFIED = 0; - */ - public static final int AVAILABILITY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The domain is available for registration.
-     * 
- * - * AVAILABLE = 1; - */ - public static final int AVAILABLE_VALUE = 1; - /** - * - * - *
-     * The domain is not available for registration. Generally this means it is
-     * already registered to another party.
-     * 
- * - * UNAVAILABLE = 2; - */ - public static final int UNAVAILABLE_VALUE = 2; - /** - * - * - *
-     * The domain is not currently supported by Cloud Domains, but may
-     * be available elsewhere.
-     * 
- * - * UNSUPPORTED = 3; - */ - public static final int UNSUPPORTED_VALUE = 3; - /** - * - * - *
-     * Cloud Domains is unable to determine domain availability, generally
-     * due to system maintenance at the domain name registry.
-     * 
- * - * UNKNOWN = 4; - */ - public static final int UNKNOWN_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 Availability 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 Availability forNumber(int value) { - switch (value) { - case 0: - return AVAILABILITY_UNSPECIFIED; - case 1: - return AVAILABLE; - case 2: - return UNAVAILABLE; - case 3: - return UNSUPPORTED; - case 4: - return UNKNOWN; - 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 Availability findValueByNumber(int number) { - return Availability.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1.RegisterParameters.getDescriptor().getEnumTypes().get(0); - } - - private static final Availability[] VALUES = values(); - - public static Availability 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 Availability(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1.RegisterParameters.Availability) - } - - public static final int DOMAIN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object domainName_; - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - @java.lang.Override - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } - } - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AVAILABILITY_FIELD_NUMBER = 2; - private int availability_; - /** - * - * - *
-   * Indicates whether the domain is available for registration. This value is
-   * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-   * approximate when obtained by calling `SearchDomains`.
-   * 
- * - * .google.cloud.domains.v1.RegisterParameters.Availability availability = 2; - * - * @return The enum numeric value on the wire for availability. - */ - @java.lang.Override - public int getAvailabilityValue() { - return availability_; - } - /** - * - * - *
-   * Indicates whether the domain is available for registration. This value is
-   * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-   * approximate when obtained by calling `SearchDomains`.
-   * 
- * - * .google.cloud.domains.v1.RegisterParameters.Availability availability = 2; - * - * @return The availability. - */ - @java.lang.Override - public com.google.cloud.domains.v1.RegisterParameters.Availability getAvailability() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.RegisterParameters.Availability result = - com.google.cloud.domains.v1.RegisterParameters.Availability.valueOf(availability_); - return result == null - ? com.google.cloud.domains.v1.RegisterParameters.Availability.UNRECOGNIZED - : result; - } - - public static final int SUPPORTED_PRIVACY_FIELD_NUMBER = 3; - private java.util.List supportedPrivacy_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.ContactPrivacy> - supportedPrivacy_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.ContactPrivacy>() { - public com.google.cloud.domains.v1.ContactPrivacy convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.ContactPrivacy result = - com.google.cloud.domains.v1.ContactPrivacy.valueOf(from); - return result == null - ? com.google.cloud.domains.v1.ContactPrivacy.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the supportedPrivacy. - */ - @java.lang.Override - public java.util.List getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @return The count of supportedPrivacy. - */ - @java.lang.Override - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - @java.lang.Override - public java.util.List getSupportedPrivacyValueList() { - return supportedPrivacy_; - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - @java.lang.Override - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - - private int supportedPrivacyMemoizedSerializedSize; - - public static final int DOMAIN_NOTICES_FIELD_NUMBER = 4; - private java.util.List domainNotices_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.DomainNotice> - domainNotices_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.DomainNotice>() { - public com.google.cloud.domains.v1.DomainNotice convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.DomainNotice result = - com.google.cloud.domains.v1.DomainNotice.valueOf(from); - return result == null - ? com.google.cloud.domains.v1.DomainNotice.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @return A list containing the domainNotices. - */ - @java.lang.Override - public java.util.List getDomainNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.DomainNotice>( - domainNotices_, domainNotices_converter_); - } - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @return The count of domainNotices. - */ - @java.lang.Override - public int getDomainNoticesCount() { - return domainNotices_.size(); - } - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1.DomainNotice getDomainNotices(int index) { - return domainNotices_converter_.convert(domainNotices_.get(index)); - } - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - @java.lang.Override - public java.util.List getDomainNoticesValueList() { - return domainNotices_; - } - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - @java.lang.Override - public int getDomainNoticesValue(int index) { - return domainNotices_.get(index); - } - - private int domainNoticesMemoizedSerializedSize; - - public static final int YEARLY_PRICE_FIELD_NUMBER = 5; - private com.google.type.Money yearlyPrice_; - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - * - * @return Whether the yearlyPrice field is set. - */ - @java.lang.Override - public boolean hasYearlyPrice() { - return yearlyPrice_ != null; - } - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - * - * @return The yearlyPrice. - */ - @java.lang.Override - public com.google.type.Money getYearlyPrice() { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - */ - @java.lang.Override - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - return getYearlyPrice(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domainName_); - } - if (availability_ - != com.google.cloud.domains.v1.RegisterParameters.Availability.AVAILABILITY_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, availability_); - } - if (getSupportedPrivacyList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(supportedPrivacyMemoizedSerializedSize); - } - for (int i = 0; i < supportedPrivacy_.size(); i++) { - output.writeEnumNoTag(supportedPrivacy_.get(i)); - } - if (getDomainNoticesList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(domainNoticesMemoizedSerializedSize); - } - for (int i = 0; i < domainNotices_.size(); i++) { - output.writeEnumNoTag(domainNotices_.get(i)); - } - if (yearlyPrice_ != null) { - output.writeMessage(5, getYearlyPrice()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domainName_); - } - if (availability_ - != com.google.cloud.domains.v1.RegisterParameters.Availability.AVAILABILITY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, availability_); - } - { - int dataSize = 0; - for (int i = 0; i < supportedPrivacy_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(supportedPrivacy_.get(i)); - } - size += dataSize; - if (!getSupportedPrivacyList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - supportedPrivacyMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < domainNotices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(domainNotices_.get(i)); - } - size += dataSize; - if (!getDomainNoticesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - domainNoticesMemoizedSerializedSize = dataSize; - } - if (yearlyPrice_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getYearlyPrice()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.RegisterParameters)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.RegisterParameters other = - (com.google.cloud.domains.v1.RegisterParameters) obj; - - if (!getDomainName().equals(other.getDomainName())) return false; - if (availability_ != other.availability_) return false; - if (!supportedPrivacy_.equals(other.supportedPrivacy_)) return false; - if (!domainNotices_.equals(other.domainNotices_)) return false; - if (hasYearlyPrice() != other.hasYearlyPrice()) return false; - if (hasYearlyPrice()) { - if (!getYearlyPrice().equals(other.getYearlyPrice())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOMAIN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDomainName().hashCode(); - hash = (37 * hash) + AVAILABILITY_FIELD_NUMBER; - hash = (53 * hash) + availability_; - if (getSupportedPrivacyCount() > 0) { - hash = (37 * hash) + SUPPORTED_PRIVACY_FIELD_NUMBER; - hash = (53 * hash) + supportedPrivacy_.hashCode(); - } - if (getDomainNoticesCount() > 0) { - hash = (37 * hash) + DOMAIN_NOTICES_FIELD_NUMBER; - hash = (53 * hash) + domainNotices_.hashCode(); - } - if (hasYearlyPrice()) { - hash = (37 * hash) + YEARLY_PRICE_FIELD_NUMBER; - hash = (53 * hash) + getYearlyPrice().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.RegisterParameters parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RegisterParameters parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RegisterParameters parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RegisterParameters parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RegisterParameters parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RegisterParameters parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RegisterParameters parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RegisterParameters parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RegisterParameters parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RegisterParameters parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RegisterParameters parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RegisterParameters parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1.RegisterParameters prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 required to register a new domain.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.RegisterParameters} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.RegisterParameters) - com.google.cloud.domains.v1.RegisterParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RegisterParameters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RegisterParameters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.RegisterParameters.class, - com.google.cloud.domains.v1.RegisterParameters.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.RegisterParameters.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - domainName_ = ""; - - availability_ = 0; - - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - domainNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RegisterParameters_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RegisterParameters getDefaultInstanceForType() { - return com.google.cloud.domains.v1.RegisterParameters.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.RegisterParameters build() { - com.google.cloud.domains.v1.RegisterParameters result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RegisterParameters buildPartial() { - com.google.cloud.domains.v1.RegisterParameters result = - new com.google.cloud.domains.v1.RegisterParameters(this); - int from_bitField0_ = bitField0_; - result.domainName_ = domainName_; - result.availability_ = availability_; - if (((bitField0_ & 0x00000001) != 0)) { - supportedPrivacy_ = java.util.Collections.unmodifiableList(supportedPrivacy_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.supportedPrivacy_ = supportedPrivacy_; - if (((bitField0_ & 0x00000002) != 0)) { - domainNotices_ = java.util.Collections.unmodifiableList(domainNotices_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.domainNotices_ = domainNotices_; - if (yearlyPriceBuilder_ == null) { - result.yearlyPrice_ = yearlyPrice_; - } else { - result.yearlyPrice_ = yearlyPriceBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.RegisterParameters) { - return mergeFrom((com.google.cloud.domains.v1.RegisterParameters) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.RegisterParameters other) { - if (other == com.google.cloud.domains.v1.RegisterParameters.getDefaultInstance()) return this; - if (!other.getDomainName().isEmpty()) { - domainName_ = other.domainName_; - onChanged(); - } - if (other.availability_ != 0) { - setAvailabilityValue(other.getAvailabilityValue()); - } - if (!other.supportedPrivacy_.isEmpty()) { - if (supportedPrivacy_.isEmpty()) { - supportedPrivacy_ = other.supportedPrivacy_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.addAll(other.supportedPrivacy_); - } - onChanged(); - } - if (!other.domainNotices_.isEmpty()) { - if (domainNotices_.isEmpty()) { - domainNotices_ = other.domainNotices_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDomainNoticesIsMutable(); - domainNotices_.addAll(other.domainNotices_); - } - onChanged(); - } - if (other.hasYearlyPrice()) { - mergeYearlyPrice(other.getYearlyPrice()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - domainName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - availability_ = input.readEnum(); - - break; - } // case 16 - case 24: - { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - break; - } // case 24 - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 32: - { - int tmpRaw = input.readEnum(); - ensureDomainNoticesIsMutable(); - domainNotices_.add(tmpRaw); - break; - } // case 32 - case 34: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureDomainNoticesIsMutable(); - domainNotices_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 34 - case 42: - { - input.readMessage(getYearlyPriceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object domainName_ = ""; - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @param value The domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domainName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDomainName() { - - domainName_ = getDefaultInstance().getDomainName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @param value The bytes for domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domainName_ = value; - onChanged(); - return this; - } - - private int availability_ = 0; - /** - * - * - *
-     * Indicates whether the domain is available for registration. This value is
-     * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-     * approximate when obtained by calling `SearchDomains`.
-     * 
- * - * .google.cloud.domains.v1.RegisterParameters.Availability availability = 2; - * - * @return The enum numeric value on the wire for availability. - */ - @java.lang.Override - public int getAvailabilityValue() { - return availability_; - } - /** - * - * - *
-     * Indicates whether the domain is available for registration. This value is
-     * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-     * approximate when obtained by calling `SearchDomains`.
-     * 
- * - * .google.cloud.domains.v1.RegisterParameters.Availability availability = 2; - * - * @param value The enum numeric value on the wire for availability to set. - * @return This builder for chaining. - */ - public Builder setAvailabilityValue(int value) { - - availability_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Indicates whether the domain is available for registration. This value is
-     * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-     * approximate when obtained by calling `SearchDomains`.
-     * 
- * - * .google.cloud.domains.v1.RegisterParameters.Availability availability = 2; - * - * @return The availability. - */ - @java.lang.Override - public com.google.cloud.domains.v1.RegisterParameters.Availability getAvailability() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.RegisterParameters.Availability result = - com.google.cloud.domains.v1.RegisterParameters.Availability.valueOf(availability_); - return result == null - ? com.google.cloud.domains.v1.RegisterParameters.Availability.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Indicates whether the domain is available for registration. This value is
-     * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-     * approximate when obtained by calling `SearchDomains`.
-     * 
- * - * .google.cloud.domains.v1.RegisterParameters.Availability availability = 2; - * - * @param value The availability to set. - * @return This builder for chaining. - */ - public Builder setAvailability( - com.google.cloud.domains.v1.RegisterParameters.Availability value) { - if (value == null) { - throw new NullPointerException(); - } - - availability_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Indicates whether the domain is available for registration. This value is
-     * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-     * approximate when obtained by calling `SearchDomains`.
-     * 
- * - * .google.cloud.domains.v1.RegisterParameters.Availability availability = 2; - * - * @return This builder for chaining. - */ - public Builder clearAvailability() { - - availability_ = 0; - onChanged(); - return this; - } - - private java.util.List supportedPrivacy_ = java.util.Collections.emptyList(); - - private void ensureSupportedPrivacyIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - supportedPrivacy_ = new java.util.ArrayList(supportedPrivacy_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the supportedPrivacy. - */ - public java.util.List getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @return The count of supportedPrivacy. - */ - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - public com.google.cloud.domains.v1.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @param index The index to set the value at. - * @param value The supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacy( - int index, com.google.cloud.domains.v1.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @param value The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacy(com.google.cloud.domains.v1.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @param values The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacy( - java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (com.google.cloud.domains.v1.ContactPrivacy value : values) { - supportedPrivacy_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @return This builder for chaining. - */ - public Builder clearSupportedPrivacy() { - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - public java.util.List getSupportedPrivacyValueList() { - return java.util.Collections.unmodifiableList(supportedPrivacy_); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacyValue(int index, int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @param value The enum numeric value on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacyValue(int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @param values The enum numeric values on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacyValue(java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (int value : values) { - supportedPrivacy_.add(value); - } - onChanged(); - return this; - } - - private java.util.List domainNotices_ = java.util.Collections.emptyList(); - - private void ensureDomainNoticesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - domainNotices_ = new java.util.ArrayList(domainNotices_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @return A list containing the domainNotices. - */ - public java.util.List getDomainNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.DomainNotice>( - domainNotices_, domainNotices_converter_); - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @return The count of domainNotices. - */ - public int getDomainNoticesCount() { - return domainNotices_.size(); - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - public com.google.cloud.domains.v1.DomainNotice getDomainNotices(int index) { - return domainNotices_converter_.convert(domainNotices_.get(index)); - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @param index The index to set the value at. - * @param value The domainNotices to set. - * @return This builder for chaining. - */ - public Builder setDomainNotices(int index, com.google.cloud.domains.v1.DomainNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainNoticesIsMutable(); - domainNotices_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @param value The domainNotices to add. - * @return This builder for chaining. - */ - public Builder addDomainNotices(com.google.cloud.domains.v1.DomainNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainNoticesIsMutable(); - domainNotices_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @param values The domainNotices to add. - * @return This builder for chaining. - */ - public Builder addAllDomainNotices( - java.lang.Iterable values) { - ensureDomainNoticesIsMutable(); - for (com.google.cloud.domains.v1.DomainNotice value : values) { - domainNotices_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @return This builder for chaining. - */ - public Builder clearDomainNotices() { - domainNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - public java.util.List getDomainNoticesValueList() { - return java.util.Collections.unmodifiableList(domainNotices_); - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - public int getDomainNoticesValue(int index) { - return domainNotices_.get(index); - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for domainNotices to set. - * @return This builder for chaining. - */ - public Builder setDomainNoticesValue(int index, int value) { - ensureDomainNoticesIsMutable(); - domainNotices_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @param value The enum numeric value on the wire for domainNotices to add. - * @return This builder for chaining. - */ - public Builder addDomainNoticesValue(int value) { - ensureDomainNoticesIsMutable(); - domainNotices_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @param values The enum numeric values on the wire for domainNotices to add. - * @return This builder for chaining. - */ - public Builder addAllDomainNoticesValue(java.lang.Iterable values) { - ensureDomainNoticesIsMutable(); - for (int value : values) { - domainNotices_.add(value); - } - onChanged(); - return this; - } - - private com.google.type.Money yearlyPrice_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - yearlyPriceBuilder_; - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - * - * @return Whether the yearlyPrice field is set. - */ - public boolean hasYearlyPrice() { - return yearlyPriceBuilder_ != null || yearlyPrice_ != null; - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - * - * @return The yearlyPrice. - */ - public com.google.type.Money getYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } else { - return yearlyPriceBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public Builder setYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - yearlyPrice_ = value; - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public Builder setYearlyPrice(com.google.type.Money.Builder builderForValue) { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = builderForValue.build(); - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public Builder mergeYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (yearlyPrice_ != null) { - yearlyPrice_ = - com.google.type.Money.newBuilder(yearlyPrice_).mergeFrom(value).buildPartial(); - } else { - yearlyPrice_ = value; - } - onChanged(); - } else { - yearlyPriceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public Builder clearYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - onChanged(); - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public com.google.type.Money.Builder getYearlyPriceBuilder() { - - onChanged(); - return getYearlyPriceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - if (yearlyPriceBuilder_ != null) { - return yearlyPriceBuilder_.getMessageOrBuilder(); - } else { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - getYearlyPriceFieldBuilder() { - if (yearlyPriceBuilder_ == null) { - yearlyPriceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, - com.google.type.Money.Builder, - com.google.type.MoneyOrBuilder>( - getYearlyPrice(), getParentForChildren(), isClean()); - yearlyPrice_ = null; - } - return yearlyPriceBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.RegisterParameters) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.RegisterParameters) - private static final com.google.cloud.domains.v1.RegisterParameters DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.RegisterParameters(); - } - - public static com.google.cloud.domains.v1.RegisterParameters getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegisterParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RegisterParameters getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegisterParametersOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegisterParametersOrBuilder.java deleted file mode 100644 index 10eaa8f9..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegisterParametersOrBuilder.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface RegisterParametersOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.RegisterParameters) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - java.lang.String getDomainName(); - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - com.google.protobuf.ByteString getDomainNameBytes(); - - /** - * - * - *
-   * Indicates whether the domain is available for registration. This value is
-   * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-   * approximate when obtained by calling `SearchDomains`.
-   * 
- * - * .google.cloud.domains.v1.RegisterParameters.Availability availability = 2; - * - * @return The enum numeric value on the wire for availability. - */ - int getAvailabilityValue(); - /** - * - * - *
-   * Indicates whether the domain is available for registration. This value is
-   * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-   * approximate when obtained by calling `SearchDomains`.
-   * 
- * - * .google.cloud.domains.v1.RegisterParameters.Availability availability = 2; - * - * @return The availability. - */ - com.google.cloud.domains.v1.RegisterParameters.Availability getAvailability(); - - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the supportedPrivacy. - */ - java.util.List getSupportedPrivacyList(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @return The count of supportedPrivacy. - */ - int getSupportedPrivacyCount(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - com.google.cloud.domains.v1.ContactPrivacy getSupportedPrivacy(int index); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - java.util.List getSupportedPrivacyValueList(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - int getSupportedPrivacyValue(int index); - - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @return A list containing the domainNotices. - */ - java.util.List getDomainNoticesList(); - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @return The count of domainNotices. - */ - int getDomainNoticesCount(); - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - com.google.cloud.domains.v1.DomainNotice getDomainNotices(int index); - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - java.util.List getDomainNoticesValueList(); - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - int getDomainNoticesValue(int index); - - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - * - * @return Whether the yearlyPrice field is set. - */ - boolean hasYearlyPrice(); - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - * - * @return The yearlyPrice. - */ - com.google.type.Money getYearlyPrice(); - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - */ - com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/Registration.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/Registration.java deleted file mode 100644 index f6e54487..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/Registration.java +++ /dev/null @@ -1,4473 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * The `Registration` resource facilitates managing and configuring domain name
- * registrations.
- * There are several ways to create a new `Registration` resource:
- * To create a new `Registration` resource, find a suitable domain name by
- * calling the `SearchDomains` method with a query to see available domain name
- * options. After choosing a name, call `RetrieveRegisterParameters` to
- * ensure availability and obtain information like pricing, which is needed to
- * build a call to `RegisterDomain`.
- * Another way to create a new `Registration` is to transfer an existing
- * domain from another registrar. First, go to the current registrar to unlock
- * the domain for transfer and retrieve the domain's transfer authorization
- * code. Then call `RetrieveTransferParameters` to confirm that the domain is
- * unlocked and to get values needed to build a call to `TransferDomain`.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.Registration} - */ -public final class Registration extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.Registration) - RegistrationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Registration.newBuilder() to construct. - private Registration(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Registration() { - name_ = ""; - domainName_ = ""; - state_ = 0; - issues_ = java.util.Collections.emptyList(); - supportedPrivacy_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Registration(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_Registration_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 9: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_Registration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.Registration.class, - com.google.cloud.domains.v1.Registration.Builder.class); - } - - /** - * - * - *
-   * Possible states of a `Registration`.
-   * 
- * - * Protobuf enum {@code google.cloud.domains.v1.Registration.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The state is undefined.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - * - * - *
-     * The domain is being registered.
-     * 
- * - * REGISTRATION_PENDING = 1; - */ - REGISTRATION_PENDING(1), - /** - * - * - *
-     * The domain registration failed. You can delete resources in this state
-     * to allow registration to be retried.
-     * 
- * - * REGISTRATION_FAILED = 2; - */ - REGISTRATION_FAILED(2), - /** - * - * - *
-     * The domain is being transferred from another registrar to Cloud Domains.
-     * 
- * - * TRANSFER_PENDING = 3; - */ - TRANSFER_PENDING(3), - /** - * - * - *
-     * The attempt to transfer the domain from another registrar to
-     * Cloud Domains failed. You can delete resources in this state and retry
-     * the transfer.
-     * 
- * - * TRANSFER_FAILED = 4; - */ - TRANSFER_FAILED(4), - /** - * - * - *
-     * The domain is registered and operational. The domain renews automatically
-     * as long as it remains in this state.
-     * 
- * - * ACTIVE = 6; - */ - ACTIVE(6), - /** - * - * - *
-     * The domain is suspended and inoperative. For more details, see the
-     * `issues` field.
-     * 
- * - * SUSPENDED = 7; - */ - SUSPENDED(7), - /** - * - * - *
-     * The domain is no longer managed with Cloud Domains. It may have been
-     * transferred to another registrar or exported for management in
-     * [Google Domains](https://domains.google/). You can no longer update it
-     * with this API, and information shown about it may be stale. Domains in
-     * this state are not automatically renewed by Cloud Domains.
-     * 
- * - * EXPORTED = 8; - */ - EXPORTED(8), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The state is undefined.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The domain is being registered.
-     * 
- * - * REGISTRATION_PENDING = 1; - */ - public static final int REGISTRATION_PENDING_VALUE = 1; - /** - * - * - *
-     * The domain registration failed. You can delete resources in this state
-     * to allow registration to be retried.
-     * 
- * - * REGISTRATION_FAILED = 2; - */ - public static final int REGISTRATION_FAILED_VALUE = 2; - /** - * - * - *
-     * The domain is being transferred from another registrar to Cloud Domains.
-     * 
- * - * TRANSFER_PENDING = 3; - */ - public static final int TRANSFER_PENDING_VALUE = 3; - /** - * - * - *
-     * The attempt to transfer the domain from another registrar to
-     * Cloud Domains failed. You can delete resources in this state and retry
-     * the transfer.
-     * 
- * - * TRANSFER_FAILED = 4; - */ - public static final int TRANSFER_FAILED_VALUE = 4; - /** - * - * - *
-     * The domain is registered and operational. The domain renews automatically
-     * as long as it remains in this state.
-     * 
- * - * ACTIVE = 6; - */ - public static final int ACTIVE_VALUE = 6; - /** - * - * - *
-     * The domain is suspended and inoperative. For more details, see the
-     * `issues` field.
-     * 
- * - * SUSPENDED = 7; - */ - public static final int SUSPENDED_VALUE = 7; - /** - * - * - *
-     * The domain is no longer managed with Cloud Domains. It may have been
-     * transferred to another registrar or exported for management in
-     * [Google Domains](https://domains.google/). You can no longer update it
-     * with this API, and information shown about it may be stale. Domains in
-     * this state are not automatically renewed by Cloud Domains.
-     * 
- * - * EXPORTED = 8; - */ - public static final int EXPORTED_VALUE = 8; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static State valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static State forNumber(int value) { - switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return REGISTRATION_PENDING; - case 2: - return REGISTRATION_FAILED; - case 3: - return TRANSFER_PENDING; - case 4: - return TRANSFER_FAILED; - case 6: - return ACTIVE; - case 7: - return SUSPENDED; - case 8: - return EXPORTED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1.Registration.getDescriptor().getEnumTypes().get(0); - } - - private static final State[] VALUES = values(); - - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private State(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1.Registration.State) - } - - /** - * - * - *
-   * Possible issues with a `Registration` that require attention.
-   * 
- * - * Protobuf enum {@code google.cloud.domains.v1.Registration.Issue} - */ - public enum Issue implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The issue is undefined.
-     * 
- * - * ISSUE_UNSPECIFIED = 0; - */ - ISSUE_UNSPECIFIED(0), - /** - * - * - *
-     * Contact the Cloud Support team to resolve a problem with this domain.
-     * 
- * - * CONTACT_SUPPORT = 1; - */ - CONTACT_SUPPORT(1), - /** - * - * - *
-     * [ICANN](https://icann.org/) requires verification of the email address
-     * in the `Registration`'s `contact_settings.registrant_contact` field. To
-     * verify the email address, follow the
-     * instructions in the email the `registrant_contact` receives following
-     * registration. If you do not complete email verification within
-     * 15 days of registration, the domain is suspended. To resend the
-     * verification email, call ConfigureContactSettings and provide the current
-     * `registrant_contact.email`.
-     * 
- * - * UNVERIFIED_EMAIL = 2; - */ - UNVERIFIED_EMAIL(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The issue is undefined.
-     * 
- * - * ISSUE_UNSPECIFIED = 0; - */ - public static final int ISSUE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Contact the Cloud Support team to resolve a problem with this domain.
-     * 
- * - * CONTACT_SUPPORT = 1; - */ - public static final int CONTACT_SUPPORT_VALUE = 1; - /** - * - * - *
-     * [ICANN](https://icann.org/) requires verification of the email address
-     * in the `Registration`'s `contact_settings.registrant_contact` field. To
-     * verify the email address, follow the
-     * instructions in the email the `registrant_contact` receives following
-     * registration. If you do not complete email verification within
-     * 15 days of registration, the domain is suspended. To resend the
-     * verification email, call ConfigureContactSettings and provide the current
-     * `registrant_contact.email`.
-     * 
- * - * UNVERIFIED_EMAIL = 2; - */ - public static final int UNVERIFIED_EMAIL_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 Issue 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 Issue forNumber(int value) { - switch (value) { - case 0: - return ISSUE_UNSPECIFIED; - case 1: - return CONTACT_SUPPORT; - case 2: - return UNVERIFIED_EMAIL; - 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 Issue findValueByNumber(int number) { - return Issue.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1.Registration.getDescriptor().getEnumTypes().get(1); - } - - private static final Issue[] VALUES = values(); - - public static Issue 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 Issue(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1.Registration.Issue) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. Name of the `Registration` resource, in the format
-   * `projects/*/locations/*/registrations/<domain_name>`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Name of the `Registration` resource, in the format
-   * `projects/*/locations/*/registrations/<domain_name>`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object domainName_; - /** - * - * - *
-   * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The domainName. - */ - @java.lang.Override - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The bytes for domainName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int EXPIRE_TIME_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp expireTime_; - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the expireTime field is set. - */ - @java.lang.Override - public boolean hasExpireTime() { - return expireTime_ != null; - } - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The expireTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getExpireTime() { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; - } - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { - return getExpireTime(); - } - - public static final int STATE_FIELD_NUMBER = 7; - private int state_; - /** - * - * - *
-   * Output only. The state of the `Registration`
-   * 
- * - * - * .google.cloud.domains.v1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The state of the `Registration`
-   * 
- * - * - * .google.cloud.domains.v1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.domains.v1.Registration.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.Registration.State result = - com.google.cloud.domains.v1.Registration.State.valueOf(state_); - return result == null ? com.google.cloud.domains.v1.Registration.State.UNRECOGNIZED : result; - } - - public static final int ISSUES_FIELD_NUMBER = 8; - private java.util.List issues_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.Registration.Issue> - issues_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.Registration.Issue>() { - public com.google.cloud.domains.v1.Registration.Issue convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.Registration.Issue result = - com.google.cloud.domains.v1.Registration.Issue.valueOf(from); - return result == null - ? com.google.cloud.domains.v1.Registration.Issue.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the issues. - */ - @java.lang.Override - public java.util.List getIssuesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.Registration.Issue>( - issues_, issues_converter_); - } - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of issues. - */ - @java.lang.Override - public int getIssuesCount() { - return issues_.size(); - } - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The issues at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1.Registration.Issue getIssues(int index) { - return issues_converter_.convert(issues_.get(index)); - } - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for issues. - */ - @java.lang.Override - public java.util.List getIssuesValueList() { - return issues_; - } - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of issues at the given index. - */ - @java.lang.Override - public int getIssuesValue(int index) { - return issues_.get(index); - } - - private int issuesMemoizedSerializedSize; - - public static final int LABELS_FIELD_NUMBER = 9; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_Registration_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(); - } - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int MANAGEMENT_SETTINGS_FIELD_NUMBER = 10; - private com.google.cloud.domains.v1.ManagementSettings managementSettings_; - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 10; - * - * @return Whether the managementSettings field is set. - */ - @java.lang.Override - public boolean hasManagementSettings() { - return managementSettings_ != null; - } - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 10; - * - * @return The managementSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ManagementSettings getManagementSettings() { - return managementSettings_ == null - ? com.google.cloud.domains.v1.ManagementSettings.getDefaultInstance() - : managementSettings_; - } - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 10; - */ - @java.lang.Override - public com.google.cloud.domains.v1.ManagementSettingsOrBuilder getManagementSettingsOrBuilder() { - return getManagementSettings(); - } - - public static final int DNS_SETTINGS_FIELD_NUMBER = 11; - private com.google.cloud.domains.v1.DnsSettings dnsSettings_; - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 11; - * - * @return Whether the dnsSettings field is set. - */ - @java.lang.Override - public boolean hasDnsSettings() { - return dnsSettings_ != null; - } - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 11; - * - * @return The dnsSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettings getDnsSettings() { - return dnsSettings_ == null - ? com.google.cloud.domains.v1.DnsSettings.getDefaultInstance() - : dnsSettings_; - } - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 11; - */ - @java.lang.Override - public com.google.cloud.domains.v1.DnsSettingsOrBuilder getDnsSettingsOrBuilder() { - return getDnsSettings(); - } - - public static final int CONTACT_SETTINGS_FIELD_NUMBER = 12; - private com.google.cloud.domains.v1.ContactSettings contactSettings_; - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the contactSettings field is set. - */ - @java.lang.Override - public boolean hasContactSettings() { - return contactSettings_ != null; - } - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The contactSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettings getContactSettings() { - return contactSettings_ == null - ? com.google.cloud.domains.v1.ContactSettings.getDefaultInstance() - : contactSettings_; - } - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettingsOrBuilder getContactSettingsOrBuilder() { - return getContactSettings(); - } - - public static final int PENDING_CONTACT_SETTINGS_FIELD_NUMBER = 13; - private com.google.cloud.domains.v1.ContactSettings pendingContactSettings_; - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the pendingContactSettings field is set. - */ - @java.lang.Override - public boolean hasPendingContactSettings() { - return pendingContactSettings_ != null; - } - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The pendingContactSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettings getPendingContactSettings() { - return pendingContactSettings_ == null - ? com.google.cloud.domains.v1.ContactSettings.getDefaultInstance() - : pendingContactSettings_; - } - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactSettingsOrBuilder getPendingContactSettingsOrBuilder() { - return getPendingContactSettings(); - } - - public static final int SUPPORTED_PRIVACY_FIELD_NUMBER = 14; - private java.util.List supportedPrivacy_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.ContactPrivacy> - supportedPrivacy_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.ContactPrivacy>() { - public com.google.cloud.domains.v1.ContactPrivacy convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.ContactPrivacy result = - com.google.cloud.domains.v1.ContactPrivacy.valueOf(from); - return result == null - ? com.google.cloud.domains.v1.ContactPrivacy.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the supportedPrivacy. - */ - @java.lang.Override - public java.util.List getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of supportedPrivacy. - */ - @java.lang.Override - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - @java.lang.Override - public java.util.List getSupportedPrivacyValueList() { - return supportedPrivacy_; - } - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - @java.lang.Override - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - - private int supportedPrivacyMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domainName_); - } - if (createTime_ != null) { - output.writeMessage(3, getCreateTime()); - } - if (expireTime_ != null) { - output.writeMessage(6, getExpireTime()); - } - if (state_ != com.google.cloud.domains.v1.Registration.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(7, state_); - } - if (getIssuesList().size() > 0) { - output.writeUInt32NoTag(66); - output.writeUInt32NoTag(issuesMemoizedSerializedSize); - } - for (int i = 0; i < issues_.size(); i++) { - output.writeEnumNoTag(issues_.get(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); - if (managementSettings_ != null) { - output.writeMessage(10, getManagementSettings()); - } - if (dnsSettings_ != null) { - output.writeMessage(11, getDnsSettings()); - } - if (contactSettings_ != null) { - output.writeMessage(12, getContactSettings()); - } - if (pendingContactSettings_ != null) { - output.writeMessage(13, getPendingContactSettings()); - } - if (getSupportedPrivacyList().size() > 0) { - output.writeUInt32NoTag(114); - output.writeUInt32NoTag(supportedPrivacyMemoizedSerializedSize); - } - for (int i = 0; i < supportedPrivacy_.size(); i++) { - output.writeEnumNoTag(supportedPrivacy_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domainName_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); - } - if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExpireTime()); - } - if (state_ != com.google.cloud.domains.v1.Registration.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); - } - { - int dataSize = 0; - for (int i = 0; i < issues_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(issues_.get(i)); - } - size += dataSize; - if (!getIssuesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - issuesMemoizedSerializedSize = dataSize; - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); - } - if (managementSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getManagementSettings()); - } - if (dnsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getDnsSettings()); - } - if (contactSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getContactSettings()); - } - if (pendingContactSettings_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(13, getPendingContactSettings()); - } - { - int dataSize = 0; - for (int i = 0; i < supportedPrivacy_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(supportedPrivacy_.get(i)); - } - size += dataSize; - if (!getSupportedPrivacyList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - supportedPrivacyMemoizedSerializedSize = dataSize; - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.Registration)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.Registration other = (com.google.cloud.domains.v1.Registration) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDomainName().equals(other.getDomainName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasExpireTime() != other.hasExpireTime()) return false; - if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; - } - if (state_ != other.state_) return false; - if (!issues_.equals(other.issues_)) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasManagementSettings() != other.hasManagementSettings()) return false; - if (hasManagementSettings()) { - if (!getManagementSettings().equals(other.getManagementSettings())) return false; - } - if (hasDnsSettings() != other.hasDnsSettings()) return false; - if (hasDnsSettings()) { - if (!getDnsSettings().equals(other.getDnsSettings())) return false; - } - if (hasContactSettings() != other.hasContactSettings()) return false; - if (hasContactSettings()) { - if (!getContactSettings().equals(other.getContactSettings())) return false; - } - if (hasPendingContactSettings() != other.hasPendingContactSettings()) return false; - if (hasPendingContactSettings()) { - if (!getPendingContactSettings().equals(other.getPendingContactSettings())) return false; - } - if (!supportedPrivacy_.equals(other.supportedPrivacy_)) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + DOMAIN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDomainName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasExpireTime()) { - hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getExpireTime().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (getIssuesCount() > 0) { - hash = (37 * hash) + ISSUES_FIELD_NUMBER; - hash = (53 * hash) + issues_.hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasManagementSettings()) { - hash = (37 * hash) + MANAGEMENT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getManagementSettings().hashCode(); - } - if (hasDnsSettings()) { - hash = (37 * hash) + DNS_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getDnsSettings().hashCode(); - } - if (hasContactSettings()) { - hash = (37 * hash) + CONTACT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getContactSettings().hashCode(); - } - if (hasPendingContactSettings()) { - hash = (37 * hash) + PENDING_CONTACT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getPendingContactSettings().hashCode(); - } - if (getSupportedPrivacyCount() > 0) { - hash = (37 * hash) + SUPPORTED_PRIVACY_FIELD_NUMBER; - hash = (53 * hash) + supportedPrivacy_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.Registration parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.Registration parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.Registration parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.Registration parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.Registration parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.Registration parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.Registration parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.Registration parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.Registration parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.Registration parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.Registration parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.Registration parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1.Registration prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 `Registration` resource facilitates managing and configuring domain name
-   * registrations.
-   * There are several ways to create a new `Registration` resource:
-   * To create a new `Registration` resource, find a suitable domain name by
-   * calling the `SearchDomains` method with a query to see available domain name
-   * options. After choosing a name, call `RetrieveRegisterParameters` to
-   * ensure availability and obtain information like pricing, which is needed to
-   * build a call to `RegisterDomain`.
-   * Another way to create a new `Registration` is to transfer an existing
-   * domain from another registrar. First, go to the current registrar to unlock
-   * the domain for transfer and retrieve the domain's transfer authorization
-   * code. Then call `RetrieveTransferParameters` to confirm that the domain is
-   * unlocked and to get values needed to build a call to `TransferDomain`.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.Registration} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.Registration) - com.google.cloud.domains.v1.RegistrationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_Registration_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 9: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 9: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_Registration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.Registration.class, - com.google.cloud.domains.v1.Registration.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.Registration.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - domainName_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (expireTimeBuilder_ == null) { - expireTime_ = null; - } else { - expireTime_ = null; - expireTimeBuilder_ = null; - } - state_ = 0; - - issues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableLabels().clear(); - if (managementSettingsBuilder_ == null) { - managementSettings_ = null; - } else { - managementSettings_ = null; - managementSettingsBuilder_ = null; - } - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = null; - } else { - dnsSettings_ = null; - dnsSettingsBuilder_ = null; - } - if (contactSettingsBuilder_ == null) { - contactSettings_ = null; - } else { - contactSettings_ = null; - contactSettingsBuilder_ = null; - } - if (pendingContactSettingsBuilder_ == null) { - pendingContactSettings_ = null; - } else { - pendingContactSettings_ = null; - pendingContactSettingsBuilder_ = null; - } - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_Registration_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.Registration getDefaultInstanceForType() { - return com.google.cloud.domains.v1.Registration.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.Registration build() { - com.google.cloud.domains.v1.Registration result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.Registration buildPartial() { - com.google.cloud.domains.v1.Registration result = - new com.google.cloud.domains.v1.Registration(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.domainName_ = domainName_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (expireTimeBuilder_ == null) { - result.expireTime_ = expireTime_; - } else { - result.expireTime_ = expireTimeBuilder_.build(); - } - result.state_ = state_; - if (((bitField0_ & 0x00000001) != 0)) { - issues_ = java.util.Collections.unmodifiableList(issues_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.issues_ = issues_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (managementSettingsBuilder_ == null) { - result.managementSettings_ = managementSettings_; - } else { - result.managementSettings_ = managementSettingsBuilder_.build(); - } - if (dnsSettingsBuilder_ == null) { - result.dnsSettings_ = dnsSettings_; - } else { - result.dnsSettings_ = dnsSettingsBuilder_.build(); - } - if (contactSettingsBuilder_ == null) { - result.contactSettings_ = contactSettings_; - } else { - result.contactSettings_ = contactSettingsBuilder_.build(); - } - if (pendingContactSettingsBuilder_ == null) { - result.pendingContactSettings_ = pendingContactSettings_; - } else { - result.pendingContactSettings_ = pendingContactSettingsBuilder_.build(); - } - if (((bitField0_ & 0x00000004) != 0)) { - supportedPrivacy_ = java.util.Collections.unmodifiableList(supportedPrivacy_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.supportedPrivacy_ = supportedPrivacy_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.Registration) { - return mergeFrom((com.google.cloud.domains.v1.Registration) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.Registration other) { - if (other == com.google.cloud.domains.v1.Registration.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getDomainName().isEmpty()) { - domainName_ = other.domainName_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasExpireTime()) { - mergeExpireTime(other.getExpireTime()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.issues_.isEmpty()) { - if (issues_.isEmpty()) { - issues_ = other.issues_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIssuesIsMutable(); - issues_.addAll(other.issues_); - } - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasManagementSettings()) { - mergeManagementSettings(other.getManagementSettings()); - } - if (other.hasDnsSettings()) { - mergeDnsSettings(other.getDnsSettings()); - } - if (other.hasContactSettings()) { - mergeContactSettings(other.getContactSettings()); - } - if (other.hasPendingContactSettings()) { - mergePendingContactSettings(other.getPendingContactSettings()); - } - if (!other.supportedPrivacy_.isEmpty()) { - if (supportedPrivacy_.isEmpty()) { - supportedPrivacy_ = other.supportedPrivacy_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.addAll(other.supportedPrivacy_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - domainName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 50: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 56: - { - state_ = input.readEnum(); - - break; - } // case 56 - case 64: - { - int tmpRaw = input.readEnum(); - ensureIssuesIsMutable(); - issues_.add(tmpRaw); - break; - } // case 64 - case 66: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureIssuesIsMutable(); - issues_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 66 - case 74: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 74 - case 82: - { - input.readMessage( - getManagementSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 82 - case 90: - { - input.readMessage(getDnsSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 90 - case 98: - { - input.readMessage(getContactSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 98 - case 106: - { - input.readMessage( - getPendingContactSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 106 - case 112: - { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - break; - } // case 112 - case 114: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 114 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. Name of the `Registration` resource, in the format
-     * `projects/*/locations/*/registrations/<domain_name>`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Name of the `Registration` resource, in the format
-     * `projects/*/locations/*/registrations/<domain_name>`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Name of the `Registration` resource, in the format
-     * `projects/*/locations/*/registrations/<domain_name>`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Name of the `Registration` resource, in the format
-     * `projects/*/locations/*/registrations/<domain_name>`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Name of the `Registration` resource, in the format
-     * `projects/*/locations/*/registrations/<domain_name>`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object domainName_ = ""; - /** - * - * - *
-     * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The domainName. - */ - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The bytes for domainName. - */ - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @param value The domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domainName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return This builder for chaining. - */ - public Builder clearDomainName() { - - domainName_ = getDefaultInstance().getDomainName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @param value The bytes for domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domainName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp expireTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the expireTime field is set. - */ - public boolean hasExpireTime() { - return expireTimeBuilder_ != null || expireTime_ != null; - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The expireTime. - */ - public com.google.protobuf.Timestamp getExpireTime() { - if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; - } else { - return expireTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setExpireTime(com.google.protobuf.Timestamp value) { - if (expireTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expireTime_ = value; - onChanged(); - } else { - expireTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (expireTimeBuilder_ == null) { - expireTime_ = builderForValue.build(); - onChanged(); - } else { - expireTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { - if (expireTimeBuilder_ == null) { - if (expireTime_ != null) { - expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); - } else { - expireTime_ = value; - } - onChanged(); - } else { - expireTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearExpireTime() { - if (expireTimeBuilder_ == null) { - expireTime_ = null; - onChanged(); - } else { - expireTime_ = null; - expireTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - - onChanged(); - return getExpireTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { - if (expireTimeBuilder_ != null) { - return expireTimeBuilder_.getMessageOrBuilder(); - } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; - } - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getExpireTimeFieldBuilder() { - if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); - expireTime_ = null; - } - return expireTimeBuilder_; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. The state of the `Registration`
-     * 
- * - * - * .google.cloud.domains.v1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. The state of the `Registration`
-     * 
- * - * - * .google.cloud.domains.v1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The state of the `Registration`
-     * 
- * - * - * .google.cloud.domains.v1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.domains.v1.Registration.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.Registration.State result = - com.google.cloud.domains.v1.Registration.State.valueOf(state_); - return result == null ? com.google.cloud.domains.v1.Registration.State.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Output only. The state of the `Registration`
-     * 
- * - * - * .google.cloud.domains.v1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.domains.v1.Registration.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The state of the `Registration`
-     * 
- * - * - * .google.cloud.domains.v1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.util.List issues_ = java.util.Collections.emptyList(); - - private void ensureIssuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - issues_ = new java.util.ArrayList(issues_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the issues. - */ - public java.util.List getIssuesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.Registration.Issue>( - issues_, issues_converter_); - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of issues. - */ - public int getIssuesCount() { - return issues_.size(); - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The issues at the given index. - */ - public com.google.cloud.domains.v1.Registration.Issue getIssues(int index) { - return issues_converter_.convert(issues_.get(index)); - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index to set the value at. - * @param value The issues to set. - * @return This builder for chaining. - */ - public Builder setIssues(int index, com.google.cloud.domains.v1.Registration.Issue value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIssuesIsMutable(); - issues_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The issues to add. - * @return This builder for chaining. - */ - public Builder addIssues(com.google.cloud.domains.v1.Registration.Issue value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIssuesIsMutable(); - issues_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param values The issues to add. - * @return This builder for chaining. - */ - public Builder addAllIssues( - java.lang.Iterable values) { - ensureIssuesIsMutable(); - for (com.google.cloud.domains.v1.Registration.Issue value : values) { - issues_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearIssues() { - issues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for issues. - */ - public java.util.List getIssuesValueList() { - return java.util.Collections.unmodifiableList(issues_); - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of issues at the given index. - */ - public int getIssuesValue(int index) { - return issues_.get(index); - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for issues to set. - * @return This builder for chaining. - */ - public Builder setIssuesValue(int index, int value) { - ensureIssuesIsMutable(); - issues_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for issues to add. - * @return This builder for chaining. - */ - public Builder addIssuesValue(int value) { - ensureIssuesIsMutable(); - issues_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param values The enum numeric values on the wire for issues to add. - * @return This builder for chaining. - */ - public Builder addAllIssuesValue(java.lang.Iterable values) { - ensureIssuesIsMutable(); - for (int value : values) { - issues_.add(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(); - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.domains.v1.ManagementSettings managementSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ManagementSettings, - com.google.cloud.domains.v1.ManagementSettings.Builder, - com.google.cloud.domains.v1.ManagementSettingsOrBuilder> - managementSettingsBuilder_; - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 10; - * - * @return Whether the managementSettings field is set. - */ - public boolean hasManagementSettings() { - return managementSettingsBuilder_ != null || managementSettings_ != null; - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 10; - * - * @return The managementSettings. - */ - public com.google.cloud.domains.v1.ManagementSettings getManagementSettings() { - if (managementSettingsBuilder_ == null) { - return managementSettings_ == null - ? com.google.cloud.domains.v1.ManagementSettings.getDefaultInstance() - : managementSettings_; - } else { - return managementSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 10; - */ - public Builder setManagementSettings(com.google.cloud.domains.v1.ManagementSettings value) { - if (managementSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - managementSettings_ = value; - onChanged(); - } else { - managementSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 10; - */ - public Builder setManagementSettings( - com.google.cloud.domains.v1.ManagementSettings.Builder builderForValue) { - if (managementSettingsBuilder_ == null) { - managementSettings_ = builderForValue.build(); - onChanged(); - } else { - managementSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 10; - */ - public Builder mergeManagementSettings(com.google.cloud.domains.v1.ManagementSettings value) { - if (managementSettingsBuilder_ == null) { - if (managementSettings_ != null) { - managementSettings_ = - com.google.cloud.domains.v1.ManagementSettings.newBuilder(managementSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - managementSettings_ = value; - } - onChanged(); - } else { - managementSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 10; - */ - public Builder clearManagementSettings() { - if (managementSettingsBuilder_ == null) { - managementSettings_ = null; - onChanged(); - } else { - managementSettings_ = null; - managementSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 10; - */ - public com.google.cloud.domains.v1.ManagementSettings.Builder getManagementSettingsBuilder() { - - onChanged(); - return getManagementSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 10; - */ - public com.google.cloud.domains.v1.ManagementSettingsOrBuilder - getManagementSettingsOrBuilder() { - if (managementSettingsBuilder_ != null) { - return managementSettingsBuilder_.getMessageOrBuilder(); - } else { - return managementSettings_ == null - ? com.google.cloud.domains.v1.ManagementSettings.getDefaultInstance() - : managementSettings_; - } - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ManagementSettings, - com.google.cloud.domains.v1.ManagementSettings.Builder, - com.google.cloud.domains.v1.ManagementSettingsOrBuilder> - getManagementSettingsFieldBuilder() { - if (managementSettingsBuilder_ == null) { - managementSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ManagementSettings, - com.google.cloud.domains.v1.ManagementSettings.Builder, - com.google.cloud.domains.v1.ManagementSettingsOrBuilder>( - getManagementSettings(), getParentForChildren(), isClean()); - managementSettings_ = null; - } - return managementSettingsBuilder_; - } - - private com.google.cloud.domains.v1.DnsSettings dnsSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings, - com.google.cloud.domains.v1.DnsSettings.Builder, - com.google.cloud.domains.v1.DnsSettingsOrBuilder> - dnsSettingsBuilder_; - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 11; - * - * @return Whether the dnsSettings field is set. - */ - public boolean hasDnsSettings() { - return dnsSettingsBuilder_ != null || dnsSettings_ != null; - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 11; - * - * @return The dnsSettings. - */ - public com.google.cloud.domains.v1.DnsSettings getDnsSettings() { - if (dnsSettingsBuilder_ == null) { - return dnsSettings_ == null - ? com.google.cloud.domains.v1.DnsSettings.getDefaultInstance() - : dnsSettings_; - } else { - return dnsSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 11; - */ - public Builder setDnsSettings(com.google.cloud.domains.v1.DnsSettings value) { - if (dnsSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsSettings_ = value; - onChanged(); - } else { - dnsSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 11; - */ - public Builder setDnsSettings(com.google.cloud.domains.v1.DnsSettings.Builder builderForValue) { - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = builderForValue.build(); - onChanged(); - } else { - dnsSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 11; - */ - public Builder mergeDnsSettings(com.google.cloud.domains.v1.DnsSettings value) { - if (dnsSettingsBuilder_ == null) { - if (dnsSettings_ != null) { - dnsSettings_ = - com.google.cloud.domains.v1.DnsSettings.newBuilder(dnsSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - dnsSettings_ = value; - } - onChanged(); - } else { - dnsSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 11; - */ - public Builder clearDnsSettings() { - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = null; - onChanged(); - } else { - dnsSettings_ = null; - dnsSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 11; - */ - public com.google.cloud.domains.v1.DnsSettings.Builder getDnsSettingsBuilder() { - - onChanged(); - return getDnsSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 11; - */ - public com.google.cloud.domains.v1.DnsSettingsOrBuilder getDnsSettingsOrBuilder() { - if (dnsSettingsBuilder_ != null) { - return dnsSettingsBuilder_.getMessageOrBuilder(); - } else { - return dnsSettings_ == null - ? com.google.cloud.domains.v1.DnsSettings.getDefaultInstance() - : dnsSettings_; - } - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings, - com.google.cloud.domains.v1.DnsSettings.Builder, - com.google.cloud.domains.v1.DnsSettingsOrBuilder> - getDnsSettingsFieldBuilder() { - if (dnsSettingsBuilder_ == null) { - dnsSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.DnsSettings, - com.google.cloud.domains.v1.DnsSettings.Builder, - com.google.cloud.domains.v1.DnsSettingsOrBuilder>( - getDnsSettings(), getParentForChildren(), isClean()); - dnsSettings_ = null; - } - return dnsSettingsBuilder_; - } - - private com.google.cloud.domains.v1.ContactSettings contactSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings, - com.google.cloud.domains.v1.ContactSettings.Builder, - com.google.cloud.domains.v1.ContactSettingsOrBuilder> - contactSettingsBuilder_; - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the contactSettings field is set. - */ - public boolean hasContactSettings() { - return contactSettingsBuilder_ != null || contactSettings_ != null; - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The contactSettings. - */ - public com.google.cloud.domains.v1.ContactSettings getContactSettings() { - if (contactSettingsBuilder_ == null) { - return contactSettings_ == null - ? com.google.cloud.domains.v1.ContactSettings.getDefaultInstance() - : contactSettings_; - } else { - return contactSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setContactSettings(com.google.cloud.domains.v1.ContactSettings value) { - if (contactSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - contactSettings_ = value; - onChanged(); - } else { - contactSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setContactSettings( - com.google.cloud.domains.v1.ContactSettings.Builder builderForValue) { - if (contactSettingsBuilder_ == null) { - contactSettings_ = builderForValue.build(); - onChanged(); - } else { - contactSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeContactSettings(com.google.cloud.domains.v1.ContactSettings value) { - if (contactSettingsBuilder_ == null) { - if (contactSettings_ != null) { - contactSettings_ = - com.google.cloud.domains.v1.ContactSettings.newBuilder(contactSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - contactSettings_ = value; - } - onChanged(); - } else { - contactSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearContactSettings() { - if (contactSettingsBuilder_ == null) { - contactSettings_ = null; - onChanged(); - } else { - contactSettings_ = null; - contactSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1.ContactSettings.Builder getContactSettingsBuilder() { - - onChanged(); - return getContactSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1.ContactSettingsOrBuilder getContactSettingsOrBuilder() { - if (contactSettingsBuilder_ != null) { - return contactSettingsBuilder_.getMessageOrBuilder(); - } else { - return contactSettings_ == null - ? com.google.cloud.domains.v1.ContactSettings.getDefaultInstance() - : contactSettings_; - } - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings, - com.google.cloud.domains.v1.ContactSettings.Builder, - com.google.cloud.domains.v1.ContactSettingsOrBuilder> - getContactSettingsFieldBuilder() { - if (contactSettingsBuilder_ == null) { - contactSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings, - com.google.cloud.domains.v1.ContactSettings.Builder, - com.google.cloud.domains.v1.ContactSettingsOrBuilder>( - getContactSettings(), getParentForChildren(), isClean()); - contactSettings_ = null; - } - return contactSettingsBuilder_; - } - - private com.google.cloud.domains.v1.ContactSettings pendingContactSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings, - com.google.cloud.domains.v1.ContactSettings.Builder, - com.google.cloud.domains.v1.ContactSettingsOrBuilder> - pendingContactSettingsBuilder_; - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the pendingContactSettings field is set. - */ - public boolean hasPendingContactSettings() { - return pendingContactSettingsBuilder_ != null || pendingContactSettings_ != null; - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The pendingContactSettings. - */ - public com.google.cloud.domains.v1.ContactSettings getPendingContactSettings() { - if (pendingContactSettingsBuilder_ == null) { - return pendingContactSettings_ == null - ? com.google.cloud.domains.v1.ContactSettings.getDefaultInstance() - : pendingContactSettings_; - } else { - return pendingContactSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setPendingContactSettings(com.google.cloud.domains.v1.ContactSettings value) { - if (pendingContactSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pendingContactSettings_ = value; - onChanged(); - } else { - pendingContactSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setPendingContactSettings( - com.google.cloud.domains.v1.ContactSettings.Builder builderForValue) { - if (pendingContactSettingsBuilder_ == null) { - pendingContactSettings_ = builderForValue.build(); - onChanged(); - } else { - pendingContactSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergePendingContactSettings(com.google.cloud.domains.v1.ContactSettings value) { - if (pendingContactSettingsBuilder_ == null) { - if (pendingContactSettings_ != null) { - pendingContactSettings_ = - com.google.cloud.domains.v1.ContactSettings.newBuilder(pendingContactSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - pendingContactSettings_ = value; - } - onChanged(); - } else { - pendingContactSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearPendingContactSettings() { - if (pendingContactSettingsBuilder_ == null) { - pendingContactSettings_ = null; - onChanged(); - } else { - pendingContactSettings_ = null; - pendingContactSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1.ContactSettings.Builder getPendingContactSettingsBuilder() { - - onChanged(); - return getPendingContactSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1.ContactSettingsOrBuilder - getPendingContactSettingsOrBuilder() { - if (pendingContactSettingsBuilder_ != null) { - return pendingContactSettingsBuilder_.getMessageOrBuilder(); - } else { - return pendingContactSettings_ == null - ? com.google.cloud.domains.v1.ContactSettings.getDefaultInstance() - : pendingContactSettings_; - } - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings, - com.google.cloud.domains.v1.ContactSettings.Builder, - com.google.cloud.domains.v1.ContactSettingsOrBuilder> - getPendingContactSettingsFieldBuilder() { - if (pendingContactSettingsBuilder_ == null) { - pendingContactSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.ContactSettings, - com.google.cloud.domains.v1.ContactSettings.Builder, - com.google.cloud.domains.v1.ContactSettingsOrBuilder>( - getPendingContactSettings(), getParentForChildren(), isClean()); - pendingContactSettings_ = null; - } - return pendingContactSettingsBuilder_; - } - - private java.util.List supportedPrivacy_ = java.util.Collections.emptyList(); - - private void ensureSupportedPrivacyIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - supportedPrivacy_ = new java.util.ArrayList(supportedPrivacy_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the supportedPrivacy. - */ - public java.util.List getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of supportedPrivacy. - */ - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - public com.google.cloud.domains.v1.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index to set the value at. - * @param value The supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacy( - int index, com.google.cloud.domains.v1.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacy(com.google.cloud.domains.v1.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param values The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacy( - java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (com.google.cloud.domains.v1.ContactPrivacy value : values) { - supportedPrivacy_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearSupportedPrivacy() { - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - public java.util.List getSupportedPrivacyValueList() { - return java.util.Collections.unmodifiableList(supportedPrivacy_); - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacyValue(int index, int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacyValue(int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param values The enum numeric values on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacyValue(java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (int value : values) { - supportedPrivacy_.add(value); - } - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.Registration) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.Registration) - private static final com.google.cloud.domains.v1.Registration DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.Registration(); - } - - public static com.google.cloud.domains.v1.Registration getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Registration parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.Registration getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegistrationName.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegistrationName.java deleted file mode 100644 index f65bbaf3..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegistrationName.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class RegistrationName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_REGISTRATION = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/registrations/{registration}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String registration; - - @Deprecated - protected RegistrationName() { - project = null; - location = null; - registration = null; - } - - private RegistrationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - registration = Preconditions.checkNotNull(builder.getRegistration()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRegistration() { - return registration; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static RegistrationName of(String project, String location, String registration) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setRegistration(registration) - .build(); - } - - public static String format(String project, String location, String registration) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setRegistration(registration) - .build() - .toString(); - } - - public static RegistrationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_REGISTRATION.validatedMatch( - formattedString, "RegistrationName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("registration")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (RegistrationName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_REGISTRATION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - if (registration != null) { - fieldMapBuilder.put("registration", registration); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_REGISTRATION.instantiate( - "project", project, "location", location, "registration", registration); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - RegistrationName that = ((RegistrationName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.registration, that.registration); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(registration); - return h; - } - - /** Builder for projects/{project}/locations/{location}/registrations/{registration}. */ - public static class Builder { - private String project; - private String location; - private String registration; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRegistration() { - return registration; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setRegistration(String registration) { - this.registration = registration; - return this; - } - - private Builder(RegistrationName registrationName) { - this.project = registrationName.project; - this.location = registrationName.location; - this.registration = registrationName.registration; - } - - public RegistrationName build() { - return new RegistrationName(this); - } - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegistrationOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegistrationOrBuilder.java deleted file mode 100644 index 14bf023b..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegistrationOrBuilder.java +++ /dev/null @@ -1,587 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface RegistrationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.Registration) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Name of the `Registration` resource, in the format
-   * `projects/*/locations/*/registrations/<domain_name>`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. Name of the `Registration` resource, in the format
-   * `projects/*/locations/*/registrations/<domain_name>`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The domainName. - */ - java.lang.String getDomainName(); - /** - * - * - *
-   * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The bytes for domainName. - */ - com.google.protobuf.ByteString getDomainNameBytes(); - - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the expireTime field is set. - */ - boolean hasExpireTime(); - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The expireTime. - */ - com.google.protobuf.Timestamp getExpireTime(); - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The state of the `Registration`
-   * 
- * - * - * .google.cloud.domains.v1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. The state of the `Registration`
-   * 
- * - * - * .google.cloud.domains.v1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.domains.v1.Registration.State getState(); - - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the issues. - */ - java.util.List getIssuesList(); - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of issues. - */ - int getIssuesCount(); - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The issues at the given index. - */ - com.google.cloud.domains.v1.Registration.Issue getIssues(int index); - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for issues. - */ - java.util.List getIssuesValueList(); - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of issues at the given index. - */ - int getIssuesValue(int index); - - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - int getLabelsCount(); - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 10; - * - * @return Whether the managementSettings field is set. - */ - boolean hasManagementSettings(); - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 10; - * - * @return The managementSettings. - */ - com.google.cloud.domains.v1.ManagementSettings getManagementSettings(); - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1.ManagementSettings management_settings = 10; - */ - com.google.cloud.domains.v1.ManagementSettingsOrBuilder getManagementSettingsOrBuilder(); - - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 11; - * - * @return Whether the dnsSettings field is set. - */ - boolean hasDnsSettings(); - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 11; - * - * @return The dnsSettings. - */ - com.google.cloud.domains.v1.DnsSettings getDnsSettings(); - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1.DnsSettings dns_settings = 11; - */ - com.google.cloud.domains.v1.DnsSettingsOrBuilder getDnsSettingsOrBuilder(); - - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the contactSettings field is set. - */ - boolean hasContactSettings(); - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The contactSettings. - */ - com.google.cloud.domains.v1.ContactSettings getContactSettings(); - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1.ContactSettingsOrBuilder getContactSettingsOrBuilder(); - - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the pendingContactSettings field is set. - */ - boolean hasPendingContactSettings(); - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The pendingContactSettings. - */ - com.google.cloud.domains.v1.ContactSettings getPendingContactSettings(); - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.domains.v1.ContactSettingsOrBuilder getPendingContactSettingsOrBuilder(); - - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the supportedPrivacy. - */ - java.util.List getSupportedPrivacyList(); - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of supportedPrivacy. - */ - int getSupportedPrivacyCount(); - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - com.google.cloud.domains.v1.ContactPrivacy getSupportedPrivacy(int index); - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - java.util.List getSupportedPrivacyValueList(); - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - int getSupportedPrivacyValue(int index); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ResetAuthorizationCodeRequest.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ResetAuthorizationCodeRequest.java deleted file mode 100644 index 6ec819a2..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ResetAuthorizationCodeRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Request for the `ResetAuthorizationCode` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.ResetAuthorizationCodeRequest} - */ -public final class ResetAuthorizationCodeRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.ResetAuthorizationCodeRequest) - ResetAuthorizationCodeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResetAuthorizationCodeRequest.newBuilder() to construct. - private ResetAuthorizationCodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ResetAuthorizationCodeRequest() { - registration_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ResetAuthorizationCodeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ResetAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ResetAuthorizationCodeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ResetAuthorizationCodeRequest.class, - com.google.cloud.domains.v1.ResetAuthorizationCodeRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private volatile java.lang.Object registration_; - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being reset,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - @java.lang.Override - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being reset,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registration_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registration_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.ResetAuthorizationCodeRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.ResetAuthorizationCodeRequest other = - (com.google.cloud.domains.v1.ResetAuthorizationCodeRequest) obj; - - if (!getRegistration().equals(other.getRegistration())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.ResetAuthorizationCodeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ResetAuthorizationCodeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ResetAuthorizationCodeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ResetAuthorizationCodeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ResetAuthorizationCodeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.ResetAuthorizationCodeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ResetAuthorizationCodeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ResetAuthorizationCodeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ResetAuthorizationCodeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ResetAuthorizationCodeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.ResetAuthorizationCodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.ResetAuthorizationCodeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1.ResetAuthorizationCodeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ResetAuthorizationCode` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.ResetAuthorizationCodeRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.ResetAuthorizationCodeRequest) - com.google.cloud.domains.v1.ResetAuthorizationCodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ResetAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ResetAuthorizationCodeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.ResetAuthorizationCodeRequest.class, - com.google.cloud.domains.v1.ResetAuthorizationCodeRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.ResetAuthorizationCodeRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - registration_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_ResetAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ResetAuthorizationCodeRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1.ResetAuthorizationCodeRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.ResetAuthorizationCodeRequest build() { - com.google.cloud.domains.v1.ResetAuthorizationCodeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ResetAuthorizationCodeRequest buildPartial() { - com.google.cloud.domains.v1.ResetAuthorizationCodeRequest result = - new com.google.cloud.domains.v1.ResetAuthorizationCodeRequest(this); - result.registration_ = registration_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.ResetAuthorizationCodeRequest) { - return mergeFrom((com.google.cloud.domains.v1.ResetAuthorizationCodeRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.ResetAuthorizationCodeRequest other) { - if (other == com.google.cloud.domains.v1.ResetAuthorizationCodeRequest.getDefaultInstance()) - return this; - if (!other.getRegistration().isEmpty()) { - registration_ = other.registration_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - registration_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object registration_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being reset,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being reset,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being reset,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The registration to set. - * @return This builder for chaining. - */ - public Builder setRegistration(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being reset,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearRegistration() { - - registration_ = getDefaultInstance().getRegistration(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being reset,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for registration to set. - * @return This builder for chaining. - */ - public Builder setRegistrationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registration_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.ResetAuthorizationCodeRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.ResetAuthorizationCodeRequest) - private static final com.google.cloud.domains.v1.ResetAuthorizationCodeRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.ResetAuthorizationCodeRequest(); - } - - public static com.google.cloud.domains.v1.ResetAuthorizationCodeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetAuthorizationCodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.ResetAuthorizationCodeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ResetAuthorizationCodeRequestOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ResetAuthorizationCodeRequestOrBuilder.java deleted file mode 100644 index ff07567e..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/ResetAuthorizationCodeRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface ResetAuthorizationCodeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.ResetAuthorizationCodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being reset,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - java.lang.String getRegistration(); - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being reset,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - com.google.protobuf.ByteString getRegistrationBytes(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveAuthorizationCodeRequest.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveAuthorizationCodeRequest.java deleted file mode 100644 index 46eb295a..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveAuthorizationCodeRequest.java +++ /dev/null @@ -1,641 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Request for the `RetrieveAuthorizationCode` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.RetrieveAuthorizationCodeRequest} - */ -public final class RetrieveAuthorizationCodeRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.RetrieveAuthorizationCodeRequest) - RetrieveAuthorizationCodeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetrieveAuthorizationCodeRequest.newBuilder() to construct. - private RetrieveAuthorizationCodeRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetrieveAuthorizationCodeRequest() { - registration_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetrieveAuthorizationCodeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveAuthorizationCodeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest.class, - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private volatile java.lang.Object registration_; - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being retrieved,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - @java.lang.Override - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being retrieved,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registration_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registration_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest other = - (com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest) obj; - - if (!getRegistration().equals(other.getRegistration())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `RetrieveAuthorizationCode` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.RetrieveAuthorizationCodeRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.RetrieveAuthorizationCodeRequest) - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveAuthorizationCodeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest.class, - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - registration_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest build() { - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest buildPartial() { - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest result = - new com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest(this); - result.registration_ = registration_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest) { - return mergeFrom((com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest other) { - if (other - == com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest.getDefaultInstance()) - return this; - if (!other.getRegistration().isEmpty()) { - registration_ = other.registration_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - registration_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object registration_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being retrieved,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being retrieved,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being retrieved,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The registration to set. - * @return This builder for chaining. - */ - public Builder setRegistration(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being retrieved,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearRegistration() { - - registration_ = getDefaultInstance().getRegistration(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being retrieved,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for registration to set. - * @return This builder for chaining. - */ - public Builder setRegistrationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registration_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.RetrieveAuthorizationCodeRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.RetrieveAuthorizationCodeRequest) - private static final com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest(); - } - - public static com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveAuthorizationCodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveAuthorizationCodeRequestOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveAuthorizationCodeRequestOrBuilder.java deleted file mode 100644 index 81f7d878..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveAuthorizationCodeRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface RetrieveAuthorizationCodeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.RetrieveAuthorizationCodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being retrieved,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - java.lang.String getRegistration(); - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being retrieved,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - com.google.protobuf.ByteString getRegistrationBytes(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveRegisterParametersRequest.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveRegisterParametersRequest.java deleted file mode 100644 index 6e3c8b38..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveRegisterParametersRequest.java +++ /dev/null @@ -1,812 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Request for the `RetrieveRegisterParameters` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.RetrieveRegisterParametersRequest} - */ -public final class RetrieveRegisterParametersRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.RetrieveRegisterParametersRequest) - RetrieveRegisterParametersRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetrieveRegisterParametersRequest.newBuilder() to construct. - private RetrieveRegisterParametersRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetrieveRegisterParametersRequest() { - domainName_ = ""; - location_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetrieveRegisterParametersRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveRegisterParametersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveRegisterParametersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest.class, - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest.Builder.class); - } - - public static final int DOMAIN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object domainName_; - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - @java.lang.Override - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_FIELD_NUMBER = 2; - private volatile java.lang.Object location_; - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - @java.lang.Override - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, location_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.RetrieveRegisterParametersRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest other = - (com.google.cloud.domains.v1.RetrieveRegisterParametersRequest) obj; - - if (!getDomainName().equals(other.getDomainName())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOMAIN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDomainName().hashCode(); - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `RetrieveRegisterParameters` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.RetrieveRegisterParametersRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.RetrieveRegisterParametersRequest) - com.google.cloud.domains.v1.RetrieveRegisterParametersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveRegisterParametersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveRegisterParametersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest.class, - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.RetrieveRegisterParametersRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - domainName_ = ""; - - location_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveRegisterParametersRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveRegisterParametersRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1.RetrieveRegisterParametersRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveRegisterParametersRequest build() { - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveRegisterParametersRequest buildPartial() { - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest result = - new com.google.cloud.domains.v1.RetrieveRegisterParametersRequest(this); - result.domainName_ = domainName_; - result.location_ = location_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.RetrieveRegisterParametersRequest) { - return mergeFrom((com.google.cloud.domains.v1.RetrieveRegisterParametersRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.RetrieveRegisterParametersRequest other) { - if (other - == com.google.cloud.domains.v1.RetrieveRegisterParametersRequest.getDefaultInstance()) - return this; - if (!other.getDomainName().isEmpty()) { - domainName_ = other.domainName_; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - domainName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - location_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object domainName_ = ""; - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domainName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDomainName() { - - domainName_ = getDefaultInstance().getDomainName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domainName_ = value; - onChanged(); - return this; - } - - private java.lang.Object location_ = ""; - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The location to set. - * @return This builder for chaining. - */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - location_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearLocation() { - - location_ = getDefaultInstance().getLocation(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for location to set. - * @return This builder for chaining. - */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - location_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.RetrieveRegisterParametersRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.RetrieveRegisterParametersRequest) - private static final com.google.cloud.domains.v1.RetrieveRegisterParametersRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.RetrieveRegisterParametersRequest(); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveRegisterParametersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveRegisterParametersRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveRegisterParametersRequestOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveRegisterParametersRequestOrBuilder.java deleted file mode 100644 index bea54674..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveRegisterParametersRequestOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface RetrieveRegisterParametersRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.RetrieveRegisterParametersRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - java.lang.String getDomainName(); - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - com.google.protobuf.ByteString getDomainNameBytes(); - - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - java.lang.String getLocation(); - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveRegisterParametersResponse.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveRegisterParametersResponse.java deleted file mode 100644 index ecdbe39d..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveRegisterParametersResponse.java +++ /dev/null @@ -1,713 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Response for the `RetrieveRegisterParameters` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.RetrieveRegisterParametersResponse} - */ -public final class RetrieveRegisterParametersResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.RetrieveRegisterParametersResponse) - RetrieveRegisterParametersResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetrieveRegisterParametersResponse.newBuilder() to construct. - private RetrieveRegisterParametersResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetrieveRegisterParametersResponse() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetrieveRegisterParametersResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveRegisterParametersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveRegisterParametersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.RetrieveRegisterParametersResponse.class, - com.google.cloud.domains.v1.RetrieveRegisterParametersResponse.Builder.class); - } - - public static final int REGISTER_PARAMETERS_FIELD_NUMBER = 1; - private com.google.cloud.domains.v1.RegisterParameters registerParameters_; - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - * - * @return Whether the registerParameters field is set. - */ - @java.lang.Override - public boolean hasRegisterParameters() { - return registerParameters_ != null; - } - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - * - * @return The registerParameters. - */ - @java.lang.Override - public com.google.cloud.domains.v1.RegisterParameters getRegisterParameters() { - return registerParameters_ == null - ? com.google.cloud.domains.v1.RegisterParameters.getDefaultInstance() - : registerParameters_; - } - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1.RegisterParametersOrBuilder getRegisterParametersOrBuilder() { - return getRegisterParameters(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (registerParameters_ != null) { - output.writeMessage(1, getRegisterParameters()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (registerParameters_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRegisterParameters()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.RetrieveRegisterParametersResponse)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.RetrieveRegisterParametersResponse other = - (com.google.cloud.domains.v1.RetrieveRegisterParametersResponse) obj; - - if (hasRegisterParameters() != other.hasRegisterParameters()) return false; - if (hasRegisterParameters()) { - if (!getRegisterParameters().equals(other.getRegisterParameters())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRegisterParameters()) { - hash = (37 * hash) + REGISTER_PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getRegisterParameters().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1.RetrieveRegisterParametersResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response for the `RetrieveRegisterParameters` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.RetrieveRegisterParametersResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.RetrieveRegisterParametersResponse) - com.google.cloud.domains.v1.RetrieveRegisterParametersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveRegisterParametersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveRegisterParametersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.RetrieveRegisterParametersResponse.class, - com.google.cloud.domains.v1.RetrieveRegisterParametersResponse.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.RetrieveRegisterParametersResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (registerParametersBuilder_ == null) { - registerParameters_ = null; - } else { - registerParameters_ = null; - registerParametersBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveRegisterParametersResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveRegisterParametersResponse - getDefaultInstanceForType() { - return com.google.cloud.domains.v1.RetrieveRegisterParametersResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveRegisterParametersResponse build() { - com.google.cloud.domains.v1.RetrieveRegisterParametersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveRegisterParametersResponse buildPartial() { - com.google.cloud.domains.v1.RetrieveRegisterParametersResponse result = - new com.google.cloud.domains.v1.RetrieveRegisterParametersResponse(this); - if (registerParametersBuilder_ == null) { - result.registerParameters_ = registerParameters_; - } else { - result.registerParameters_ = registerParametersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.RetrieveRegisterParametersResponse) { - return mergeFrom((com.google.cloud.domains.v1.RetrieveRegisterParametersResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.RetrieveRegisterParametersResponse other) { - if (other - == com.google.cloud.domains.v1.RetrieveRegisterParametersResponse.getDefaultInstance()) - return this; - if (other.hasRegisterParameters()) { - mergeRegisterParameters(other.getRegisterParameters()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getRegisterParametersFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.domains.v1.RegisterParameters registerParameters_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.RegisterParameters, - com.google.cloud.domains.v1.RegisterParameters.Builder, - com.google.cloud.domains.v1.RegisterParametersOrBuilder> - registerParametersBuilder_; - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - * - * @return Whether the registerParameters field is set. - */ - public boolean hasRegisterParameters() { - return registerParametersBuilder_ != null || registerParameters_ != null; - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - * - * @return The registerParameters. - */ - public com.google.cloud.domains.v1.RegisterParameters getRegisterParameters() { - if (registerParametersBuilder_ == null) { - return registerParameters_ == null - ? com.google.cloud.domains.v1.RegisterParameters.getDefaultInstance() - : registerParameters_; - } else { - return registerParametersBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public Builder setRegisterParameters(com.google.cloud.domains.v1.RegisterParameters value) { - if (registerParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - registerParameters_ = value; - onChanged(); - } else { - registerParametersBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public Builder setRegisterParameters( - com.google.cloud.domains.v1.RegisterParameters.Builder builderForValue) { - if (registerParametersBuilder_ == null) { - registerParameters_ = builderForValue.build(); - onChanged(); - } else { - registerParametersBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public Builder mergeRegisterParameters(com.google.cloud.domains.v1.RegisterParameters value) { - if (registerParametersBuilder_ == null) { - if (registerParameters_ != null) { - registerParameters_ = - com.google.cloud.domains.v1.RegisterParameters.newBuilder(registerParameters_) - .mergeFrom(value) - .buildPartial(); - } else { - registerParameters_ = value; - } - onChanged(); - } else { - registerParametersBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public Builder clearRegisterParameters() { - if (registerParametersBuilder_ == null) { - registerParameters_ = null; - onChanged(); - } else { - registerParameters_ = null; - registerParametersBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public com.google.cloud.domains.v1.RegisterParameters.Builder getRegisterParametersBuilder() { - - onChanged(); - return getRegisterParametersFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public com.google.cloud.domains.v1.RegisterParametersOrBuilder - getRegisterParametersOrBuilder() { - if (registerParametersBuilder_ != null) { - return registerParametersBuilder_.getMessageOrBuilder(); - } else { - return registerParameters_ == null - ? com.google.cloud.domains.v1.RegisterParameters.getDefaultInstance() - : registerParameters_; - } - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.RegisterParameters, - com.google.cloud.domains.v1.RegisterParameters.Builder, - com.google.cloud.domains.v1.RegisterParametersOrBuilder> - getRegisterParametersFieldBuilder() { - if (registerParametersBuilder_ == null) { - registerParametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.RegisterParameters, - com.google.cloud.domains.v1.RegisterParameters.Builder, - com.google.cloud.domains.v1.RegisterParametersOrBuilder>( - getRegisterParameters(), getParentForChildren(), isClean()); - registerParameters_ = null; - } - return registerParametersBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.RetrieveRegisterParametersResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.RetrieveRegisterParametersResponse) - private static final com.google.cloud.domains.v1.RetrieveRegisterParametersResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.RetrieveRegisterParametersResponse(); - } - - public static com.google.cloud.domains.v1.RetrieveRegisterParametersResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveRegisterParametersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveRegisterParametersResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveRegisterParametersResponseOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveRegisterParametersResponseOrBuilder.java deleted file mode 100644 index 848ea761..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveRegisterParametersResponseOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface RetrieveRegisterParametersResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.RetrieveRegisterParametersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - * - * @return Whether the registerParameters field is set. - */ - boolean hasRegisterParameters(); - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - * - * @return The registerParameters. - */ - com.google.cloud.domains.v1.RegisterParameters getRegisterParameters(); - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - com.google.cloud.domains.v1.RegisterParametersOrBuilder getRegisterParametersOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveTransferParametersRequest.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveTransferParametersRequest.java deleted file mode 100644 index 681c96e2..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveTransferParametersRequest.java +++ /dev/null @@ -1,812 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Request for the `RetrieveTransferParameters` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.RetrieveTransferParametersRequest} - */ -public final class RetrieveTransferParametersRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.RetrieveTransferParametersRequest) - RetrieveTransferParametersRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetrieveTransferParametersRequest.newBuilder() to construct. - private RetrieveTransferParametersRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetrieveTransferParametersRequest() { - domainName_ = ""; - location_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetrieveTransferParametersRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveTransferParametersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveTransferParametersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.RetrieveTransferParametersRequest.class, - com.google.cloud.domains.v1.RetrieveTransferParametersRequest.Builder.class); - } - - public static final int DOMAIN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object domainName_; - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - @java.lang.Override - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_FIELD_NUMBER = 2; - private volatile java.lang.Object location_; - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - @java.lang.Override - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, location_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.RetrieveTransferParametersRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.RetrieveTransferParametersRequest other = - (com.google.cloud.domains.v1.RetrieveTransferParametersRequest) obj; - - if (!getDomainName().equals(other.getDomainName())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOMAIN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDomainName().hashCode(); - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1.RetrieveTransferParametersRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `RetrieveTransferParameters` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.RetrieveTransferParametersRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.RetrieveTransferParametersRequest) - com.google.cloud.domains.v1.RetrieveTransferParametersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveTransferParametersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveTransferParametersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.RetrieveTransferParametersRequest.class, - com.google.cloud.domains.v1.RetrieveTransferParametersRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.RetrieveTransferParametersRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - domainName_ = ""; - - location_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveTransferParametersRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveTransferParametersRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1.RetrieveTransferParametersRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveTransferParametersRequest build() { - com.google.cloud.domains.v1.RetrieveTransferParametersRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveTransferParametersRequest buildPartial() { - com.google.cloud.domains.v1.RetrieveTransferParametersRequest result = - new com.google.cloud.domains.v1.RetrieveTransferParametersRequest(this); - result.domainName_ = domainName_; - result.location_ = location_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.RetrieveTransferParametersRequest) { - return mergeFrom((com.google.cloud.domains.v1.RetrieveTransferParametersRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.RetrieveTransferParametersRequest other) { - if (other - == com.google.cloud.domains.v1.RetrieveTransferParametersRequest.getDefaultInstance()) - return this; - if (!other.getDomainName().isEmpty()) { - domainName_ = other.domainName_; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - domainName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - location_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object domainName_ = ""; - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domainName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDomainName() { - - domainName_ = getDefaultInstance().getDomainName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domainName_ = value; - onChanged(); - return this; - } - - private java.lang.Object location_ = ""; - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The location to set. - * @return This builder for chaining. - */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - location_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearLocation() { - - location_ = getDefaultInstance().getLocation(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for location to set. - * @return This builder for chaining. - */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - location_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.RetrieveTransferParametersRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.RetrieveTransferParametersRequest) - private static final com.google.cloud.domains.v1.RetrieveTransferParametersRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.RetrieveTransferParametersRequest(); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveTransferParametersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveTransferParametersRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveTransferParametersRequestOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveTransferParametersRequestOrBuilder.java deleted file mode 100644 index dcf23ba9..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveTransferParametersRequestOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface RetrieveTransferParametersRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.RetrieveTransferParametersRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - java.lang.String getDomainName(); - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - com.google.protobuf.ByteString getDomainNameBytes(); - - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - java.lang.String getLocation(); - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveTransferParametersResponse.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveTransferParametersResponse.java deleted file mode 100644 index b11c1961..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveTransferParametersResponse.java +++ /dev/null @@ -1,713 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Response for the `RetrieveTransferParameters` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.RetrieveTransferParametersResponse} - */ -public final class RetrieveTransferParametersResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.RetrieveTransferParametersResponse) - RetrieveTransferParametersResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetrieveTransferParametersResponse.newBuilder() to construct. - private RetrieveTransferParametersResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetrieveTransferParametersResponse() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetrieveTransferParametersResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveTransferParametersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveTransferParametersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.RetrieveTransferParametersResponse.class, - com.google.cloud.domains.v1.RetrieveTransferParametersResponse.Builder.class); - } - - public static final int TRANSFER_PARAMETERS_FIELD_NUMBER = 1; - private com.google.cloud.domains.v1.TransferParameters transferParameters_; - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - * - * @return Whether the transferParameters field is set. - */ - @java.lang.Override - public boolean hasTransferParameters() { - return transferParameters_ != null; - } - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - * - * @return The transferParameters. - */ - @java.lang.Override - public com.google.cloud.domains.v1.TransferParameters getTransferParameters() { - return transferParameters_ == null - ? com.google.cloud.domains.v1.TransferParameters.getDefaultInstance() - : transferParameters_; - } - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1.TransferParametersOrBuilder getTransferParametersOrBuilder() { - return getTransferParameters(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (transferParameters_ != null) { - output.writeMessage(1, getTransferParameters()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (transferParameters_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTransferParameters()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.RetrieveTransferParametersResponse)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.RetrieveTransferParametersResponse other = - (com.google.cloud.domains.v1.RetrieveTransferParametersResponse) obj; - - if (hasTransferParameters() != other.hasTransferParameters()) return false; - if (hasTransferParameters()) { - if (!getTransferParameters().equals(other.getTransferParameters())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTransferParameters()) { - hash = (37 * hash) + TRANSFER_PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getTransferParameters().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1.RetrieveTransferParametersResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response for the `RetrieveTransferParameters` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.RetrieveTransferParametersResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.RetrieveTransferParametersResponse) - com.google.cloud.domains.v1.RetrieveTransferParametersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveTransferParametersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveTransferParametersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.RetrieveTransferParametersResponse.class, - com.google.cloud.domains.v1.RetrieveTransferParametersResponse.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.RetrieveTransferParametersResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (transferParametersBuilder_ == null) { - transferParameters_ = null; - } else { - transferParameters_ = null; - transferParametersBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_RetrieveTransferParametersResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveTransferParametersResponse - getDefaultInstanceForType() { - return com.google.cloud.domains.v1.RetrieveTransferParametersResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveTransferParametersResponse build() { - com.google.cloud.domains.v1.RetrieveTransferParametersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveTransferParametersResponse buildPartial() { - com.google.cloud.domains.v1.RetrieveTransferParametersResponse result = - new com.google.cloud.domains.v1.RetrieveTransferParametersResponse(this); - if (transferParametersBuilder_ == null) { - result.transferParameters_ = transferParameters_; - } else { - result.transferParameters_ = transferParametersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.RetrieveTransferParametersResponse) { - return mergeFrom((com.google.cloud.domains.v1.RetrieveTransferParametersResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.RetrieveTransferParametersResponse other) { - if (other - == com.google.cloud.domains.v1.RetrieveTransferParametersResponse.getDefaultInstance()) - return this; - if (other.hasTransferParameters()) { - mergeTransferParameters(other.getTransferParameters()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getTransferParametersFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.domains.v1.TransferParameters transferParameters_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.TransferParameters, - com.google.cloud.domains.v1.TransferParameters.Builder, - com.google.cloud.domains.v1.TransferParametersOrBuilder> - transferParametersBuilder_; - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - * - * @return Whether the transferParameters field is set. - */ - public boolean hasTransferParameters() { - return transferParametersBuilder_ != null || transferParameters_ != null; - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - * - * @return The transferParameters. - */ - public com.google.cloud.domains.v1.TransferParameters getTransferParameters() { - if (transferParametersBuilder_ == null) { - return transferParameters_ == null - ? com.google.cloud.domains.v1.TransferParameters.getDefaultInstance() - : transferParameters_; - } else { - return transferParametersBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - */ - public Builder setTransferParameters(com.google.cloud.domains.v1.TransferParameters value) { - if (transferParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transferParameters_ = value; - onChanged(); - } else { - transferParametersBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - */ - public Builder setTransferParameters( - com.google.cloud.domains.v1.TransferParameters.Builder builderForValue) { - if (transferParametersBuilder_ == null) { - transferParameters_ = builderForValue.build(); - onChanged(); - } else { - transferParametersBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - */ - public Builder mergeTransferParameters(com.google.cloud.domains.v1.TransferParameters value) { - if (transferParametersBuilder_ == null) { - if (transferParameters_ != null) { - transferParameters_ = - com.google.cloud.domains.v1.TransferParameters.newBuilder(transferParameters_) - .mergeFrom(value) - .buildPartial(); - } else { - transferParameters_ = value; - } - onChanged(); - } else { - transferParametersBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - */ - public Builder clearTransferParameters() { - if (transferParametersBuilder_ == null) { - transferParameters_ = null; - onChanged(); - } else { - transferParameters_ = null; - transferParametersBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - */ - public com.google.cloud.domains.v1.TransferParameters.Builder getTransferParametersBuilder() { - - onChanged(); - return getTransferParametersFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - */ - public com.google.cloud.domains.v1.TransferParametersOrBuilder - getTransferParametersOrBuilder() { - if (transferParametersBuilder_ != null) { - return transferParametersBuilder_.getMessageOrBuilder(); - } else { - return transferParameters_ == null - ? com.google.cloud.domains.v1.TransferParameters.getDefaultInstance() - : transferParameters_; - } - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.TransferParameters, - com.google.cloud.domains.v1.TransferParameters.Builder, - com.google.cloud.domains.v1.TransferParametersOrBuilder> - getTransferParametersFieldBuilder() { - if (transferParametersBuilder_ == null) { - transferParametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.TransferParameters, - com.google.cloud.domains.v1.TransferParameters.Builder, - com.google.cloud.domains.v1.TransferParametersOrBuilder>( - getTransferParameters(), getParentForChildren(), isClean()); - transferParameters_ = null; - } - return transferParametersBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.RetrieveTransferParametersResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.RetrieveTransferParametersResponse) - private static final com.google.cloud.domains.v1.RetrieveTransferParametersResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.RetrieveTransferParametersResponse(); - } - - public static com.google.cloud.domains.v1.RetrieveTransferParametersResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveTransferParametersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.RetrieveTransferParametersResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveTransferParametersResponseOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveTransferParametersResponseOrBuilder.java deleted file mode 100644 index 862edc91..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RetrieveTransferParametersResponseOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface RetrieveTransferParametersResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.RetrieveTransferParametersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - * - * @return Whether the transferParameters field is set. - */ - boolean hasTransferParameters(); - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - * - * @return The transferParameters. - */ - com.google.cloud.domains.v1.TransferParameters getTransferParameters(); - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - */ - com.google.cloud.domains.v1.TransferParametersOrBuilder getTransferParametersOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/SearchDomainsRequest.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/SearchDomainsRequest.java deleted file mode 100644 index 822e6954..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/SearchDomainsRequest.java +++ /dev/null @@ -1,807 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Request for the `SearchDomains` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.SearchDomainsRequest} - */ -public final class SearchDomainsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.SearchDomainsRequest) - SearchDomainsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SearchDomainsRequest.newBuilder() to construct. - private SearchDomainsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SearchDomainsRequest() { - query_ = ""; - location_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SearchDomainsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_SearchDomainsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_SearchDomainsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.SearchDomainsRequest.class, - com.google.cloud.domains.v1.SearchDomainsRequest.Builder.class); - } - - public static final int QUERY_FIELD_NUMBER = 1; - private volatile java.lang.Object query_; - /** - * - * - *
-   * Required. String used to search for available domain names.
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The query. - */ - @java.lang.Override - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } - } - /** - * - * - *
-   * Required. String used to search for available domain names.
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for query. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_FIELD_NUMBER = 2; - private volatile java.lang.Object location_; - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - @java.lang.Override - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, location_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.SearchDomainsRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.SearchDomainsRequest other = - (com.google.cloud.domains.v1.SearchDomainsRequest) obj; - - if (!getQuery().equals(other.getQuery())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.SearchDomainsRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.SearchDomainsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.SearchDomainsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.SearchDomainsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.SearchDomainsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.SearchDomainsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.SearchDomainsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.SearchDomainsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.SearchDomainsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.SearchDomainsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.SearchDomainsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.SearchDomainsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1.SearchDomainsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `SearchDomains` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.SearchDomainsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.SearchDomainsRequest) - com.google.cloud.domains.v1.SearchDomainsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_SearchDomainsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_SearchDomainsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.SearchDomainsRequest.class, - com.google.cloud.domains.v1.SearchDomainsRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.SearchDomainsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - query_ = ""; - - location_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_SearchDomainsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.SearchDomainsRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1.SearchDomainsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.SearchDomainsRequest build() { - com.google.cloud.domains.v1.SearchDomainsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.SearchDomainsRequest buildPartial() { - com.google.cloud.domains.v1.SearchDomainsRequest result = - new com.google.cloud.domains.v1.SearchDomainsRequest(this); - result.query_ = query_; - result.location_ = location_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.SearchDomainsRequest) { - return mergeFrom((com.google.cloud.domains.v1.SearchDomainsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.SearchDomainsRequest other) { - if (other == com.google.cloud.domains.v1.SearchDomainsRequest.getDefaultInstance()) - return this; - if (!other.getQuery().isEmpty()) { - query_ = other.query_; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - query_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - location_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object query_ = ""; - /** - * - * - *
-     * Required. String used to search for available domain names.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The query. - */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. String used to search for available domain names.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for query. - */ - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. String used to search for available domain names.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The query to set. - * @return This builder for chaining. - */ - public Builder setQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - query_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. String used to search for available domain names.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearQuery() { - - query_ = getDefaultInstance().getQuery(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. String used to search for available domain names.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for query to set. - * @return This builder for chaining. - */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - query_ = value; - onChanged(); - return this; - } - - private java.lang.Object location_ = ""; - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The location to set. - * @return This builder for chaining. - */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - location_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearLocation() { - - location_ = getDefaultInstance().getLocation(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for location to set. - * @return This builder for chaining. - */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - location_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.SearchDomainsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.SearchDomainsRequest) - private static final com.google.cloud.domains.v1.SearchDomainsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.SearchDomainsRequest(); - } - - public static com.google.cloud.domains.v1.SearchDomainsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchDomainsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.SearchDomainsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/SearchDomainsRequestOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/SearchDomainsRequestOrBuilder.java deleted file mode 100644 index 9576d906..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/SearchDomainsRequestOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface SearchDomainsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.SearchDomainsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. String used to search for available domain names.
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The query. - */ - java.lang.String getQuery(); - /** - * - * - *
-   * Required. String used to search for available domain names.
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for query. - */ - com.google.protobuf.ByteString getQueryBytes(); - - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - java.lang.String getLocation(); - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/SearchDomainsResponse.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/SearchDomainsResponse.java deleted file mode 100644 index 8f68c024..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/SearchDomainsResponse.java +++ /dev/null @@ -1,941 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Response for the `SearchDomains` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.SearchDomainsResponse} - */ -public final class SearchDomainsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.SearchDomainsResponse) - SearchDomainsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use SearchDomainsResponse.newBuilder() to construct. - private SearchDomainsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SearchDomainsResponse() { - registerParameters_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SearchDomainsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_SearchDomainsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_SearchDomainsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.SearchDomainsResponse.class, - com.google.cloud.domains.v1.SearchDomainsResponse.Builder.class); - } - - public static final int REGISTER_PARAMETERS_FIELD_NUMBER = 1; - private java.util.List registerParameters_; - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - @java.lang.Override - public java.util.List - getRegisterParametersList() { - return registerParameters_; - } - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - @java.lang.Override - public java.util.List - getRegisterParametersOrBuilderList() { - return registerParameters_; - } - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - @java.lang.Override - public int getRegisterParametersCount() { - return registerParameters_.size(); - } - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1.RegisterParameters getRegisterParameters(int index) { - return registerParameters_.get(index); - } - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1.RegisterParametersOrBuilder getRegisterParametersOrBuilder( - int index) { - return registerParameters_.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 < registerParameters_.size(); i++) { - output.writeMessage(1, registerParameters_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < registerParameters_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, registerParameters_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.SearchDomainsResponse)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.SearchDomainsResponse other = - (com.google.cloud.domains.v1.SearchDomainsResponse) obj; - - if (!getRegisterParametersList().equals(other.getRegisterParametersList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRegisterParametersCount() > 0) { - hash = (37 * hash) + REGISTER_PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getRegisterParametersList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.SearchDomainsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.SearchDomainsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.SearchDomainsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.SearchDomainsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.SearchDomainsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.SearchDomainsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.SearchDomainsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.SearchDomainsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.SearchDomainsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.SearchDomainsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.SearchDomainsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.SearchDomainsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1.SearchDomainsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response for the `SearchDomains` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.SearchDomainsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.SearchDomainsResponse) - com.google.cloud.domains.v1.SearchDomainsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_SearchDomainsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_SearchDomainsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.SearchDomainsResponse.class, - com.google.cloud.domains.v1.SearchDomainsResponse.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.SearchDomainsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (registerParametersBuilder_ == null) { - registerParameters_ = java.util.Collections.emptyList(); - } else { - registerParameters_ = null; - registerParametersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_SearchDomainsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.SearchDomainsResponse getDefaultInstanceForType() { - return com.google.cloud.domains.v1.SearchDomainsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.SearchDomainsResponse build() { - com.google.cloud.domains.v1.SearchDomainsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.SearchDomainsResponse buildPartial() { - com.google.cloud.domains.v1.SearchDomainsResponse result = - new com.google.cloud.domains.v1.SearchDomainsResponse(this); - int from_bitField0_ = bitField0_; - if (registerParametersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - registerParameters_ = java.util.Collections.unmodifiableList(registerParameters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.registerParameters_ = registerParameters_; - } else { - result.registerParameters_ = registerParametersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.SearchDomainsResponse) { - return mergeFrom((com.google.cloud.domains.v1.SearchDomainsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.SearchDomainsResponse other) { - if (other == com.google.cloud.domains.v1.SearchDomainsResponse.getDefaultInstance()) - return this; - if (registerParametersBuilder_ == null) { - if (!other.registerParameters_.isEmpty()) { - if (registerParameters_.isEmpty()) { - registerParameters_ = other.registerParameters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRegisterParametersIsMutable(); - registerParameters_.addAll(other.registerParameters_); - } - onChanged(); - } - } else { - if (!other.registerParameters_.isEmpty()) { - if (registerParametersBuilder_.isEmpty()) { - registerParametersBuilder_.dispose(); - registerParametersBuilder_ = null; - registerParameters_ = other.registerParameters_; - bitField0_ = (bitField0_ & ~0x00000001); - registerParametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRegisterParametersFieldBuilder() - : null; - } else { - registerParametersBuilder_.addAllMessages(other.registerParameters_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.domains.v1.RegisterParameters m = - input.readMessage( - com.google.cloud.domains.v1.RegisterParameters.parser(), extensionRegistry); - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - registerParameters_.add(m); - } else { - registerParametersBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List registerParameters_ = - java.util.Collections.emptyList(); - - private void ensureRegisterParametersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - registerParameters_ = - new java.util.ArrayList( - registerParameters_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1.RegisterParameters, - com.google.cloud.domains.v1.RegisterParameters.Builder, - com.google.cloud.domains.v1.RegisterParametersOrBuilder> - registerParametersBuilder_; - - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public java.util.List - getRegisterParametersList() { - if (registerParametersBuilder_ == null) { - return java.util.Collections.unmodifiableList(registerParameters_); - } else { - return registerParametersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public int getRegisterParametersCount() { - if (registerParametersBuilder_ == null) { - return registerParameters_.size(); - } else { - return registerParametersBuilder_.getCount(); - } - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public com.google.cloud.domains.v1.RegisterParameters getRegisterParameters(int index) { - if (registerParametersBuilder_ == null) { - return registerParameters_.get(index); - } else { - return registerParametersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public Builder setRegisterParameters( - int index, com.google.cloud.domains.v1.RegisterParameters value) { - if (registerParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisterParametersIsMutable(); - registerParameters_.set(index, value); - onChanged(); - } else { - registerParametersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public Builder setRegisterParameters( - int index, com.google.cloud.domains.v1.RegisterParameters.Builder builderForValue) { - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - registerParameters_.set(index, builderForValue.build()); - onChanged(); - } else { - registerParametersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public Builder addRegisterParameters(com.google.cloud.domains.v1.RegisterParameters value) { - if (registerParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisterParametersIsMutable(); - registerParameters_.add(value); - onChanged(); - } else { - registerParametersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public Builder addRegisterParameters( - int index, com.google.cloud.domains.v1.RegisterParameters value) { - if (registerParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisterParametersIsMutable(); - registerParameters_.add(index, value); - onChanged(); - } else { - registerParametersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public Builder addRegisterParameters( - com.google.cloud.domains.v1.RegisterParameters.Builder builderForValue) { - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - registerParameters_.add(builderForValue.build()); - onChanged(); - } else { - registerParametersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public Builder addRegisterParameters( - int index, com.google.cloud.domains.v1.RegisterParameters.Builder builderForValue) { - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - registerParameters_.add(index, builderForValue.build()); - onChanged(); - } else { - registerParametersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public Builder addAllRegisterParameters( - java.lang.Iterable values) { - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, registerParameters_); - onChanged(); - } else { - registerParametersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public Builder clearRegisterParameters() { - if (registerParametersBuilder_ == null) { - registerParameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - registerParametersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public Builder removeRegisterParameters(int index) { - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - registerParameters_.remove(index); - onChanged(); - } else { - registerParametersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public com.google.cloud.domains.v1.RegisterParameters.Builder getRegisterParametersBuilder( - int index) { - return getRegisterParametersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public com.google.cloud.domains.v1.RegisterParametersOrBuilder getRegisterParametersOrBuilder( - int index) { - if (registerParametersBuilder_ == null) { - return registerParameters_.get(index); - } else { - return registerParametersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public java.util.List - getRegisterParametersOrBuilderList() { - if (registerParametersBuilder_ != null) { - return registerParametersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(registerParameters_); - } - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public com.google.cloud.domains.v1.RegisterParameters.Builder addRegisterParametersBuilder() { - return getRegisterParametersFieldBuilder() - .addBuilder(com.google.cloud.domains.v1.RegisterParameters.getDefaultInstance()); - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public com.google.cloud.domains.v1.RegisterParameters.Builder addRegisterParametersBuilder( - int index) { - return getRegisterParametersFieldBuilder() - .addBuilder(index, com.google.cloud.domains.v1.RegisterParameters.getDefaultInstance()); - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - public java.util.List - getRegisterParametersBuilderList() { - return getRegisterParametersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1.RegisterParameters, - com.google.cloud.domains.v1.RegisterParameters.Builder, - com.google.cloud.domains.v1.RegisterParametersOrBuilder> - getRegisterParametersFieldBuilder() { - if (registerParametersBuilder_ == null) { - registerParametersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1.RegisterParameters, - com.google.cloud.domains.v1.RegisterParameters.Builder, - com.google.cloud.domains.v1.RegisterParametersOrBuilder>( - registerParameters_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - registerParameters_ = null; - } - return registerParametersBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.SearchDomainsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.SearchDomainsResponse) - private static final com.google.cloud.domains.v1.SearchDomainsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.SearchDomainsResponse(); - } - - public static com.google.cloud.domains.v1.SearchDomainsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchDomainsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.SearchDomainsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/SearchDomainsResponseOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/SearchDomainsResponseOrBuilder.java deleted file mode 100644 index 0e6f2ceb..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/SearchDomainsResponseOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface SearchDomainsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.SearchDomainsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - java.util.List getRegisterParametersList(); - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - com.google.cloud.domains.v1.RegisterParameters getRegisterParameters(int index); - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - int getRegisterParametersCount(); - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - java.util.List - getRegisterParametersOrBuilderList(); - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - com.google.cloud.domains.v1.RegisterParametersOrBuilder getRegisterParametersOrBuilder(int index); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/TransferDomainRequest.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/TransferDomainRequest.java deleted file mode 100644 index 067935de..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/TransferDomainRequest.java +++ /dev/null @@ -1,2058 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Request for the `TransferDomain` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.TransferDomainRequest} - */ -public final class TransferDomainRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.TransferDomainRequest) - TransferDomainRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TransferDomainRequest.newBuilder() to construct. - private TransferDomainRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TransferDomainRequest() { - parent_ = ""; - contactNotices_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TransferDomainRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_TransferDomainRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_TransferDomainRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.TransferDomainRequest.class, - com.google.cloud.domains.v1.TransferDomainRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGISTRATION_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1.Registration registration_; - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - @java.lang.Override - public boolean hasRegistration() { - return registration_ != null; - } - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - @java.lang.Override - public com.google.cloud.domains.v1.Registration getRegistration() { - return registration_ == null - ? com.google.cloud.domains.v1.Registration.getDefaultInstance() - : registration_; - } - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1.RegistrationOrBuilder getRegistrationOrBuilder() { - return getRegistration(); - } - - public static final int CONTACT_NOTICES_FIELD_NUMBER = 3; - private java.util.List contactNotices_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.ContactNotice> - contactNotices_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.ContactNotice>() { - public com.google.cloud.domains.v1.ContactNotice convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.ContactNotice result = - com.google.cloud.domains.v1.ContactNotice.valueOf(from); - return result == null - ? com.google.cloud.domains.v1.ContactNotice.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @return A list containing the contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @return The count of contactNotices. - */ - @java.lang.Override - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesValueList() { - return contactNotices_; - } - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - @java.lang.Override - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - - private int contactNoticesMemoizedSerializedSize; - - public static final int YEARLY_PRICE_FIELD_NUMBER = 4; - private com.google.type.Money yearlyPrice_; - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - @java.lang.Override - public boolean hasYearlyPrice() { - return yearlyPrice_ != null; - } - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - @java.lang.Override - public com.google.type.Money getYearlyPrice() { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - return getYearlyPrice(); - } - - public static final int AUTHORIZATION_CODE_FIELD_NUMBER = 5; - private com.google.cloud.domains.v1.AuthorizationCode authorizationCode_; - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - * - * @return Whether the authorizationCode field is set. - */ - @java.lang.Override - public boolean hasAuthorizationCode() { - return authorizationCode_ != null; - } - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - * - * @return The authorizationCode. - */ - @java.lang.Override - public com.google.cloud.domains.v1.AuthorizationCode getAuthorizationCode() { - return authorizationCode_ == null - ? com.google.cloud.domains.v1.AuthorizationCode.getDefaultInstance() - : authorizationCode_; - } - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - */ - @java.lang.Override - public com.google.cloud.domains.v1.AuthorizationCodeOrBuilder getAuthorizationCodeOrBuilder() { - return getAuthorizationCode(); - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 6; - private boolean validateOnly_; - /** - * - * - *
-   * Validate the request without actually transferring the domain.
-   * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (registration_ != null) { - output.writeMessage(2, getRegistration()); - } - if (getContactNoticesList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(contactNoticesMemoizedSerializedSize); - } - for (int i = 0; i < contactNotices_.size(); i++) { - output.writeEnumNoTag(contactNotices_.get(i)); - } - if (yearlyPrice_ != null) { - output.writeMessage(4, getYearlyPrice()); - } - if (authorizationCode_ != null) { - output.writeMessage(5, getAuthorizationCode()); - } - if (validateOnly_ != false) { - output.writeBool(6, validateOnly_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (registration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRegistration()); - } - { - int dataSize = 0; - for (int i = 0; i < contactNotices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(contactNotices_.get(i)); - } - size += dataSize; - if (!getContactNoticesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - contactNoticesMemoizedSerializedSize = dataSize; - } - if (yearlyPrice_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getYearlyPrice()); - } - if (authorizationCode_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthorizationCode()); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, validateOnly_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.TransferDomainRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.TransferDomainRequest other = - (com.google.cloud.domains.v1.TransferDomainRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasRegistration() != other.hasRegistration()) return false; - if (hasRegistration()) { - if (!getRegistration().equals(other.getRegistration())) return false; - } - if (!contactNotices_.equals(other.contactNotices_)) return false; - if (hasYearlyPrice() != other.hasYearlyPrice()) return false; - if (hasYearlyPrice()) { - if (!getYearlyPrice().equals(other.getYearlyPrice())) return false; - } - if (hasAuthorizationCode() != other.hasAuthorizationCode()) return false; - if (hasAuthorizationCode()) { - if (!getAuthorizationCode().equals(other.getAuthorizationCode())) return false; - } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasRegistration()) { - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - } - if (getContactNoticesCount() > 0) { - hash = (37 * hash) + CONTACT_NOTICES_FIELD_NUMBER; - hash = (53 * hash) + contactNotices_.hashCode(); - } - if (hasYearlyPrice()) { - hash = (37 * hash) + YEARLY_PRICE_FIELD_NUMBER; - hash = (53 * hash) + getYearlyPrice().hashCode(); - } - if (hasAuthorizationCode()) { - hash = (37 * hash) + AUTHORIZATION_CODE_FIELD_NUMBER; - hash = (53 * hash) + getAuthorizationCode().hashCode(); - } - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.TransferDomainRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.TransferDomainRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.TransferDomainRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.TransferDomainRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.TransferDomainRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.TransferDomainRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.TransferDomainRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.TransferDomainRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.TransferDomainRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.TransferDomainRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.TransferDomainRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.TransferDomainRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1.TransferDomainRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `TransferDomain` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.TransferDomainRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.TransferDomainRequest) - com.google.cloud.domains.v1.TransferDomainRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_TransferDomainRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_TransferDomainRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.TransferDomainRequest.class, - com.google.cloud.domains.v1.TransferDomainRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.TransferDomainRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (registrationBuilder_ == null) { - registration_ = null; - } else { - registration_ = null; - registrationBuilder_ = null; - } - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - if (authorizationCodeBuilder_ == null) { - authorizationCode_ = null; - } else { - authorizationCode_ = null; - authorizationCodeBuilder_ = null; - } - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_TransferDomainRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.TransferDomainRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1.TransferDomainRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.TransferDomainRequest build() { - com.google.cloud.domains.v1.TransferDomainRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.TransferDomainRequest buildPartial() { - com.google.cloud.domains.v1.TransferDomainRequest result = - new com.google.cloud.domains.v1.TransferDomainRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; - if (registrationBuilder_ == null) { - result.registration_ = registration_; - } else { - result.registration_ = registrationBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - contactNotices_ = java.util.Collections.unmodifiableList(contactNotices_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.contactNotices_ = contactNotices_; - if (yearlyPriceBuilder_ == null) { - result.yearlyPrice_ = yearlyPrice_; - } else { - result.yearlyPrice_ = yearlyPriceBuilder_.build(); - } - if (authorizationCodeBuilder_ == null) { - result.authorizationCode_ = authorizationCode_; - } else { - result.authorizationCode_ = authorizationCodeBuilder_.build(); - } - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.TransferDomainRequest) { - return mergeFrom((com.google.cloud.domains.v1.TransferDomainRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.TransferDomainRequest other) { - if (other == com.google.cloud.domains.v1.TransferDomainRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasRegistration()) { - mergeRegistration(other.getRegistration()); - } - if (!other.contactNotices_.isEmpty()) { - if (contactNotices_.isEmpty()) { - contactNotices_ = other.contactNotices_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureContactNoticesIsMutable(); - contactNotices_.addAll(other.contactNotices_); - } - onChanged(); - } - if (other.hasYearlyPrice()) { - mergeYearlyPrice(other.getYearlyPrice()); - } - if (other.hasAuthorizationCode()) { - mergeAuthorizationCode(other.getAuthorizationCode()); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getRegistrationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 24: - { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - break; - } // case 24 - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 34: - { - input.readMessage(getYearlyPriceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage( - getAuthorizationCodeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 48: - { - validateOnly_ = input.readBool(); - - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1.Registration registration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.Registration, - com.google.cloud.domains.v1.Registration.Builder, - com.google.cloud.domains.v1.RegistrationOrBuilder> - registrationBuilder_; - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - public boolean hasRegistration() { - return registrationBuilder_ != null || registration_ != null; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - public com.google.cloud.domains.v1.Registration getRegistration() { - if (registrationBuilder_ == null) { - return registration_ == null - ? com.google.cloud.domains.v1.Registration.getDefaultInstance() - : registration_; - } else { - return registrationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistration(com.google.cloud.domains.v1.Registration value) { - if (registrationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - registration_ = value; - onChanged(); - } else { - registrationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistration( - com.google.cloud.domains.v1.Registration.Builder builderForValue) { - if (registrationBuilder_ == null) { - registration_ = builderForValue.build(); - onChanged(); - } else { - registrationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRegistration(com.google.cloud.domains.v1.Registration value) { - if (registrationBuilder_ == null) { - if (registration_ != null) { - registration_ = - com.google.cloud.domains.v1.Registration.newBuilder(registration_) - .mergeFrom(value) - .buildPartial(); - } else { - registration_ = value; - } - onChanged(); - } else { - registrationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRegistration() { - if (registrationBuilder_ == null) { - registration_ = null; - onChanged(); - } else { - registration_ = null; - registrationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1.Registration.Builder getRegistrationBuilder() { - - onChanged(); - return getRegistrationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1.RegistrationOrBuilder getRegistrationOrBuilder() { - if (registrationBuilder_ != null) { - return registrationBuilder_.getMessageOrBuilder(); - } else { - return registration_ == null - ? com.google.cloud.domains.v1.Registration.getDefaultInstance() - : registration_; - } - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.Registration, - com.google.cloud.domains.v1.Registration.Builder, - com.google.cloud.domains.v1.RegistrationOrBuilder> - getRegistrationFieldBuilder() { - if (registrationBuilder_ == null) { - registrationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.Registration, - com.google.cloud.domains.v1.Registration.Builder, - com.google.cloud.domains.v1.RegistrationOrBuilder>( - getRegistration(), getParentForChildren(), isClean()); - registration_ = null; - } - return registrationBuilder_; - } - - private java.util.List contactNotices_ = java.util.Collections.emptyList(); - - private void ensureContactNoticesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - contactNotices_ = new java.util.ArrayList(contactNotices_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @return A list containing the contactNotices. - */ - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @return The count of contactNotices. - */ - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - public com.google.cloud.domains.v1.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @param index The index to set the value at. - * @param value The contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNotices(int index, com.google.cloud.domains.v1.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @param value The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNotices(com.google.cloud.domains.v1.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @param values The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNotices( - java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (com.google.cloud.domains.v1.ContactNotice value : values) { - contactNotices_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @return This builder for chaining. - */ - public Builder clearContactNotices() { - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - public java.util.List getContactNoticesValueList() { - return java.util.Collections.unmodifiableList(contactNotices_); - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNoticesValue(int index, int value) { - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @param value The enum numeric value on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNoticesValue(int value) { - ensureContactNoticesIsMutable(); - contactNotices_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @param values The enum numeric values on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNoticesValue(java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (int value : values) { - contactNotices_.add(value); - } - onChanged(); - return this; - } - - private com.google.type.Money yearlyPrice_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - yearlyPriceBuilder_; - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - public boolean hasYearlyPrice() { - return yearlyPriceBuilder_ != null || yearlyPrice_ != null; - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - public com.google.type.Money getYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } else { - return yearlyPriceBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - yearlyPrice_ = value; - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setYearlyPrice(com.google.type.Money.Builder builderForValue) { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = builderForValue.build(); - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (yearlyPrice_ != null) { - yearlyPrice_ = - com.google.type.Money.newBuilder(yearlyPrice_).mergeFrom(value).buildPartial(); - } else { - yearlyPrice_ = value; - } - onChanged(); - } else { - yearlyPriceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - onChanged(); - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.type.Money.Builder getYearlyPriceBuilder() { - - onChanged(); - return getYearlyPriceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - if (yearlyPriceBuilder_ != null) { - return yearlyPriceBuilder_.getMessageOrBuilder(); - } else { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - getYearlyPriceFieldBuilder() { - if (yearlyPriceBuilder_ == null) { - yearlyPriceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, - com.google.type.Money.Builder, - com.google.type.MoneyOrBuilder>( - getYearlyPrice(), getParentForChildren(), isClean()); - yearlyPrice_ = null; - } - return yearlyPriceBuilder_; - } - - private com.google.cloud.domains.v1.AuthorizationCode authorizationCode_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.AuthorizationCode, - com.google.cloud.domains.v1.AuthorizationCode.Builder, - com.google.cloud.domains.v1.AuthorizationCodeOrBuilder> - authorizationCodeBuilder_; - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - * - * @return Whether the authorizationCode field is set. - */ - public boolean hasAuthorizationCode() { - return authorizationCodeBuilder_ != null || authorizationCode_ != null; - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - * - * @return The authorizationCode. - */ - public com.google.cloud.domains.v1.AuthorizationCode getAuthorizationCode() { - if (authorizationCodeBuilder_ == null) { - return authorizationCode_ == null - ? com.google.cloud.domains.v1.AuthorizationCode.getDefaultInstance() - : authorizationCode_; - } else { - return authorizationCodeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - */ - public Builder setAuthorizationCode(com.google.cloud.domains.v1.AuthorizationCode value) { - if (authorizationCodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authorizationCode_ = value; - onChanged(); - } else { - authorizationCodeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - */ - public Builder setAuthorizationCode( - com.google.cloud.domains.v1.AuthorizationCode.Builder builderForValue) { - if (authorizationCodeBuilder_ == null) { - authorizationCode_ = builderForValue.build(); - onChanged(); - } else { - authorizationCodeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - */ - public Builder mergeAuthorizationCode(com.google.cloud.domains.v1.AuthorizationCode value) { - if (authorizationCodeBuilder_ == null) { - if (authorizationCode_ != null) { - authorizationCode_ = - com.google.cloud.domains.v1.AuthorizationCode.newBuilder(authorizationCode_) - .mergeFrom(value) - .buildPartial(); - } else { - authorizationCode_ = value; - } - onChanged(); - } else { - authorizationCodeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - */ - public Builder clearAuthorizationCode() { - if (authorizationCodeBuilder_ == null) { - authorizationCode_ = null; - onChanged(); - } else { - authorizationCode_ = null; - authorizationCodeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - */ - public com.google.cloud.domains.v1.AuthorizationCode.Builder getAuthorizationCodeBuilder() { - - onChanged(); - return getAuthorizationCodeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - */ - public com.google.cloud.domains.v1.AuthorizationCodeOrBuilder getAuthorizationCodeOrBuilder() { - if (authorizationCodeBuilder_ != null) { - return authorizationCodeBuilder_.getMessageOrBuilder(); - } else { - return authorizationCode_ == null - ? com.google.cloud.domains.v1.AuthorizationCode.getDefaultInstance() - : authorizationCode_; - } - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.AuthorizationCode, - com.google.cloud.domains.v1.AuthorizationCode.Builder, - com.google.cloud.domains.v1.AuthorizationCodeOrBuilder> - getAuthorizationCodeFieldBuilder() { - if (authorizationCodeBuilder_ == null) { - authorizationCodeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.AuthorizationCode, - com.google.cloud.domains.v1.AuthorizationCode.Builder, - com.google.cloud.domains.v1.AuthorizationCodeOrBuilder>( - getAuthorizationCode(), getParentForChildren(), isClean()); - authorizationCode_ = null; - } - return authorizationCodeBuilder_; - } - - private boolean validateOnly_; - /** - * - * - *
-     * Validate the request without actually transferring the domain.
-     * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - * - * - *
-     * Validate the request without actually transferring the domain.
-     * 
- * - * bool validate_only = 6; - * - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Validate the request without actually transferring the domain.
-     * 
- * - * bool validate_only = 6; - * - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.TransferDomainRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.TransferDomainRequest) - private static final com.google.cloud.domains.v1.TransferDomainRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.TransferDomainRequest(); - } - - public static com.google.cloud.domains.v1.TransferDomainRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransferDomainRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.TransferDomainRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/TransferDomainRequestOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/TransferDomainRequestOrBuilder.java deleted file mode 100644 index 2dc8174f..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/TransferDomainRequestOrBuilder.java +++ /dev/null @@ -1,277 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface TransferDomainRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.TransferDomainRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - boolean hasRegistration(); - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - com.google.cloud.domains.v1.Registration getRegistration(); - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1.RegistrationOrBuilder getRegistrationOrBuilder(); - - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @return A list containing the contactNotices. - */ - java.util.List getContactNoticesList(); - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @return The count of contactNotices. - */ - int getContactNoticesCount(); - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - com.google.cloud.domains.v1.ContactNotice getContactNotices(int index); - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - java.util.List getContactNoticesValueList(); - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - int getContactNoticesValue(int index); - - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - boolean hasYearlyPrice(); - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - com.google.type.Money getYearlyPrice(); - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder(); - - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - * - * @return Whether the authorizationCode field is set. - */ - boolean hasAuthorizationCode(); - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - * - * @return The authorizationCode. - */ - com.google.cloud.domains.v1.AuthorizationCode getAuthorizationCode(); - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - */ - com.google.cloud.domains.v1.AuthorizationCodeOrBuilder getAuthorizationCodeOrBuilder(); - - /** - * - * - *
-   * Validate the request without actually transferring the domain.
-   * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/TransferLockState.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/TransferLockState.java deleted file mode 100644 index b4220bb9..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/TransferLockState.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Possible states of a `Registration`'s transfer lock.
- * 
- * - * Protobuf enum {@code google.cloud.domains.v1.TransferLockState} - */ -public enum TransferLockState implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * The state is unspecified.
-   * 
- * - * TRANSFER_LOCK_STATE_UNSPECIFIED = 0; - */ - TRANSFER_LOCK_STATE_UNSPECIFIED(0), - /** - * - * - *
-   * The domain is unlocked and can be transferred to another registrar.
-   * 
- * - * UNLOCKED = 1; - */ - UNLOCKED(1), - /** - * - * - *
-   * The domain is locked and cannot be transferred to another registrar.
-   * 
- * - * LOCKED = 2; - */ - LOCKED(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * The state is unspecified.
-   * 
- * - * TRANSFER_LOCK_STATE_UNSPECIFIED = 0; - */ - public static final int TRANSFER_LOCK_STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * The domain is unlocked and can be transferred to another registrar.
-   * 
- * - * UNLOCKED = 1; - */ - public static final int UNLOCKED_VALUE = 1; - /** - * - * - *
-   * The domain is locked and cannot be transferred to another registrar.
-   * 
- * - * LOCKED = 2; - */ - public static final int LOCKED_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 TransferLockState 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 TransferLockState forNumber(int value) { - switch (value) { - case 0: - return TRANSFER_LOCK_STATE_UNSPECIFIED; - case 1: - return UNLOCKED; - case 2: - return LOCKED; - 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 TransferLockState findValueByNumber(int number) { - return TransferLockState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto.getDescriptor().getEnumTypes().get(3); - } - - private static final TransferLockState[] VALUES = values(); - - public static TransferLockState 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 TransferLockState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1.TransferLockState) -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/TransferParameters.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/TransferParameters.java deleted file mode 100644 index ac2416f4..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/TransferParameters.java +++ /dev/null @@ -1,1870 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Parameters required to transfer a domain from another registrar.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.TransferParameters} - */ -public final class TransferParameters extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.TransferParameters) - TransferParametersOrBuilder { - private static final long serialVersionUID = 0L; - // Use TransferParameters.newBuilder() to construct. - private TransferParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TransferParameters() { - domainName_ = ""; - currentRegistrar_ = ""; - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - transferLockState_ = 0; - supportedPrivacy_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TransferParameters(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_TransferParameters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_TransferParameters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.TransferParameters.class, - com.google.cloud.domains.v1.TransferParameters.Builder.class); - } - - public static final int DOMAIN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object domainName_; - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - @java.lang.Override - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } - } - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CURRENT_REGISTRAR_FIELD_NUMBER = 2; - private volatile java.lang.Object currentRegistrar_; - /** - * - * - *
-   * The registrar that currently manages the domain.
-   * 
- * - * string current_registrar = 2; - * - * @return The currentRegistrar. - */ - @java.lang.Override - public java.lang.String getCurrentRegistrar() { - java.lang.Object ref = currentRegistrar_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentRegistrar_ = s; - return s; - } - } - /** - * - * - *
-   * The registrar that currently manages the domain.
-   * 
- * - * string current_registrar = 2; - * - * @return The bytes for currentRegistrar. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCurrentRegistrarBytes() { - java.lang.Object ref = currentRegistrar_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currentRegistrar_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_SERVERS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList nameServers_; - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_; - } - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - - public static final int TRANSFER_LOCK_STATE_FIELD_NUMBER = 4; - private int transferLockState_; - /** - * - * - *
-   * Indicates whether the domain is protected by a transfer lock. For a
-   * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-   * go to its current registrar.
-   * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - @java.lang.Override - public int getTransferLockStateValue() { - return transferLockState_; - } - /** - * - * - *
-   * Indicates whether the domain is protected by a transfer lock. For a
-   * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-   * go to its current registrar.
-   * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - @java.lang.Override - public com.google.cloud.domains.v1.TransferLockState getTransferLockState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.TransferLockState result = - com.google.cloud.domains.v1.TransferLockState.valueOf(transferLockState_); - return result == null ? com.google.cloud.domains.v1.TransferLockState.UNRECOGNIZED : result; - } - - public static final int SUPPORTED_PRIVACY_FIELD_NUMBER = 5; - private java.util.List supportedPrivacy_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.ContactPrivacy> - supportedPrivacy_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1.ContactPrivacy>() { - public com.google.cloud.domains.v1.ContactPrivacy convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.ContactPrivacy result = - com.google.cloud.domains.v1.ContactPrivacy.valueOf(from); - return result == null - ? com.google.cloud.domains.v1.ContactPrivacy.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the supportedPrivacy. - */ - @java.lang.Override - public java.util.List getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @return The count of supportedPrivacy. - */ - @java.lang.Override - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - @java.lang.Override - public java.util.List getSupportedPrivacyValueList() { - return supportedPrivacy_; - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - @java.lang.Override - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - - private int supportedPrivacyMemoizedSerializedSize; - - public static final int YEARLY_PRICE_FIELD_NUMBER = 6; - private com.google.type.Money yearlyPrice_; - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - * - * @return Whether the yearlyPrice field is set. - */ - @java.lang.Override - public boolean hasYearlyPrice() { - return yearlyPrice_ != null; - } - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - * - * @return The yearlyPrice. - */ - @java.lang.Override - public com.google.type.Money getYearlyPrice() { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - */ - @java.lang.Override - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - return getYearlyPrice(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentRegistrar_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, currentRegistrar_); - } - for (int i = 0; i < nameServers_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nameServers_.getRaw(i)); - } - if (transferLockState_ - != com.google.cloud.domains.v1.TransferLockState.TRANSFER_LOCK_STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(4, transferLockState_); - } - if (getSupportedPrivacyList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(supportedPrivacyMemoizedSerializedSize); - } - for (int i = 0; i < supportedPrivacy_.size(); i++) { - output.writeEnumNoTag(supportedPrivacy_.get(i)); - } - if (yearlyPrice_ != null) { - output.writeMessage(6, getYearlyPrice()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentRegistrar_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currentRegistrar_); - } - { - int dataSize = 0; - for (int i = 0; i < nameServers_.size(); i++) { - dataSize += computeStringSizeNoTag(nameServers_.getRaw(i)); - } - size += dataSize; - size += 1 * getNameServersList().size(); - } - if (transferLockState_ - != com.google.cloud.domains.v1.TransferLockState.TRANSFER_LOCK_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, transferLockState_); - } - { - int dataSize = 0; - for (int i = 0; i < supportedPrivacy_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(supportedPrivacy_.get(i)); - } - size += dataSize; - if (!getSupportedPrivacyList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - supportedPrivacyMemoizedSerializedSize = dataSize; - } - if (yearlyPrice_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getYearlyPrice()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.TransferParameters)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.TransferParameters other = - (com.google.cloud.domains.v1.TransferParameters) obj; - - if (!getDomainName().equals(other.getDomainName())) return false; - if (!getCurrentRegistrar().equals(other.getCurrentRegistrar())) return false; - if (!getNameServersList().equals(other.getNameServersList())) return false; - if (transferLockState_ != other.transferLockState_) return false; - if (!supportedPrivacy_.equals(other.supportedPrivacy_)) return false; - if (hasYearlyPrice() != other.hasYearlyPrice()) return false; - if (hasYearlyPrice()) { - if (!getYearlyPrice().equals(other.getYearlyPrice())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOMAIN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDomainName().hashCode(); - hash = (37 * hash) + CURRENT_REGISTRAR_FIELD_NUMBER; - hash = (53 * hash) + getCurrentRegistrar().hashCode(); - if (getNameServersCount() > 0) { - hash = (37 * hash) + NAME_SERVERS_FIELD_NUMBER; - hash = (53 * hash) + getNameServersList().hashCode(); - } - hash = (37 * hash) + TRANSFER_LOCK_STATE_FIELD_NUMBER; - hash = (53 * hash) + transferLockState_; - if (getSupportedPrivacyCount() > 0) { - hash = (37 * hash) + SUPPORTED_PRIVACY_FIELD_NUMBER; - hash = (53 * hash) + supportedPrivacy_.hashCode(); - } - if (hasYearlyPrice()) { - hash = (37 * hash) + YEARLY_PRICE_FIELD_NUMBER; - hash = (53 * hash) + getYearlyPrice().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.TransferParameters parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.TransferParameters parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.TransferParameters parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.TransferParameters parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.TransferParameters parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.TransferParameters parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.TransferParameters parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.TransferParameters parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.TransferParameters parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.TransferParameters parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.TransferParameters parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.TransferParameters parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1.TransferParameters prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 required to transfer a domain from another registrar.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.TransferParameters} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.TransferParameters) - com.google.cloud.domains.v1.TransferParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_TransferParameters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_TransferParameters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.TransferParameters.class, - com.google.cloud.domains.v1.TransferParameters.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.TransferParameters.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - domainName_ = ""; - - currentRegistrar_ = ""; - - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - transferLockState_ = 0; - - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_TransferParameters_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.TransferParameters getDefaultInstanceForType() { - return com.google.cloud.domains.v1.TransferParameters.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.TransferParameters build() { - com.google.cloud.domains.v1.TransferParameters result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.TransferParameters buildPartial() { - com.google.cloud.domains.v1.TransferParameters result = - new com.google.cloud.domains.v1.TransferParameters(this); - int from_bitField0_ = bitField0_; - result.domainName_ = domainName_; - result.currentRegistrar_ = currentRegistrar_; - if (((bitField0_ & 0x00000001) != 0)) { - nameServers_ = nameServers_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nameServers_ = nameServers_; - result.transferLockState_ = transferLockState_; - if (((bitField0_ & 0x00000002) != 0)) { - supportedPrivacy_ = java.util.Collections.unmodifiableList(supportedPrivacy_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.supportedPrivacy_ = supportedPrivacy_; - if (yearlyPriceBuilder_ == null) { - result.yearlyPrice_ = yearlyPrice_; - } else { - result.yearlyPrice_ = yearlyPriceBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.TransferParameters) { - return mergeFrom((com.google.cloud.domains.v1.TransferParameters) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.TransferParameters other) { - if (other == com.google.cloud.domains.v1.TransferParameters.getDefaultInstance()) return this; - if (!other.getDomainName().isEmpty()) { - domainName_ = other.domainName_; - onChanged(); - } - if (!other.getCurrentRegistrar().isEmpty()) { - currentRegistrar_ = other.currentRegistrar_; - onChanged(); - } - if (!other.nameServers_.isEmpty()) { - if (nameServers_.isEmpty()) { - nameServers_ = other.nameServers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNameServersIsMutable(); - nameServers_.addAll(other.nameServers_); - } - onChanged(); - } - if (other.transferLockState_ != 0) { - setTransferLockStateValue(other.getTransferLockStateValue()); - } - if (!other.supportedPrivacy_.isEmpty()) { - if (supportedPrivacy_.isEmpty()) { - supportedPrivacy_ = other.supportedPrivacy_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.addAll(other.supportedPrivacy_); - } - onChanged(); - } - if (other.hasYearlyPrice()) { - mergeYearlyPrice(other.getYearlyPrice()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - domainName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - currentRegistrar_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureNameServersIsMutable(); - nameServers_.add(s); - break; - } // case 26 - case 32: - { - transferLockState_ = input.readEnum(); - - break; - } // case 32 - case 40: - { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - break; - } // case 40 - case 42: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 42 - case 50: - { - input.readMessage(getYearlyPriceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object domainName_ = ""; - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @param value The domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domainName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDomainName() { - - domainName_ = getDefaultInstance().getDomainName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @param value The bytes for domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domainName_ = value; - onChanged(); - return this; - } - - private java.lang.Object currentRegistrar_ = ""; - /** - * - * - *
-     * The registrar that currently manages the domain.
-     * 
- * - * string current_registrar = 2; - * - * @return The currentRegistrar. - */ - public java.lang.String getCurrentRegistrar() { - java.lang.Object ref = currentRegistrar_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentRegistrar_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The registrar that currently manages the domain.
-     * 
- * - * string current_registrar = 2; - * - * @return The bytes for currentRegistrar. - */ - public com.google.protobuf.ByteString getCurrentRegistrarBytes() { - java.lang.Object ref = currentRegistrar_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currentRegistrar_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The registrar that currently manages the domain.
-     * 
- * - * string current_registrar = 2; - * - * @param value The currentRegistrar to set. - * @return This builder for chaining. - */ - public Builder setCurrentRegistrar(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currentRegistrar_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The registrar that currently manages the domain.
-     * 
- * - * string current_registrar = 2; - * - * @return This builder for chaining. - */ - public Builder clearCurrentRegistrar() { - - currentRegistrar_ = getDefaultInstance().getCurrentRegistrar(); - onChanged(); - return this; - } - /** - * - * - *
-     * The registrar that currently manages the domain.
-     * 
- * - * string current_registrar = 2; - * - * @param value The bytes for currentRegistrar to set. - * @return This builder for chaining. - */ - public Builder setCurrentRegistrarBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currentRegistrar_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList nameServers_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureNameServersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nameServers_ = new com.google.protobuf.LazyStringArrayList(nameServers_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_.getUnmodifiableView(); - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param index The index to set the value at. - * @param value The nameServers to set. - * @return This builder for chaining. - */ - public Builder setNameServers(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param value The nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServers(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param values The nameServers to add. - * @return This builder for chaining. - */ - public Builder addAllNameServers(java.lang.Iterable values) { - ensureNameServersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nameServers_); - onChanged(); - return this; - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @return This builder for chaining. - */ - public Builder clearNameServers() { - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param value The bytes of the nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServersBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - - private int transferLockState_ = 0; - /** - * - * - *
-     * Indicates whether the domain is protected by a transfer lock. For a
-     * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-     * go to its current registrar.
-     * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - @java.lang.Override - public int getTransferLockStateValue() { - return transferLockState_; - } - /** - * - * - *
-     * Indicates whether the domain is protected by a transfer lock. For a
-     * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-     * go to its current registrar.
-     * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @param value The enum numeric value on the wire for transferLockState to set. - * @return This builder for chaining. - */ - public Builder setTransferLockStateValue(int value) { - - transferLockState_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Indicates whether the domain is protected by a transfer lock. For a
-     * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-     * go to its current registrar.
-     * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - @java.lang.Override - public com.google.cloud.domains.v1.TransferLockState getTransferLockState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1.TransferLockState result = - com.google.cloud.domains.v1.TransferLockState.valueOf(transferLockState_); - return result == null ? com.google.cloud.domains.v1.TransferLockState.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Indicates whether the domain is protected by a transfer lock. For a
-     * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-     * go to its current registrar.
-     * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @param value The transferLockState to set. - * @return This builder for chaining. - */ - public Builder setTransferLockState(com.google.cloud.domains.v1.TransferLockState value) { - if (value == null) { - throw new NullPointerException(); - } - - transferLockState_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Indicates whether the domain is protected by a transfer lock. For a
-     * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-     * go to its current registrar.
-     * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @return This builder for chaining. - */ - public Builder clearTransferLockState() { - - transferLockState_ = 0; - onChanged(); - return this; - } - - private java.util.List supportedPrivacy_ = java.util.Collections.emptyList(); - - private void ensureSupportedPrivacyIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - supportedPrivacy_ = new java.util.ArrayList(supportedPrivacy_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the supportedPrivacy. - */ - public java.util.List getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @return The count of supportedPrivacy. - */ - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - public com.google.cloud.domains.v1.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @param index The index to set the value at. - * @param value The supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacy( - int index, com.google.cloud.domains.v1.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @param value The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacy(com.google.cloud.domains.v1.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @param values The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacy( - java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (com.google.cloud.domains.v1.ContactPrivacy value : values) { - supportedPrivacy_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @return This builder for chaining. - */ - public Builder clearSupportedPrivacy() { - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - public java.util.List getSupportedPrivacyValueList() { - return java.util.Collections.unmodifiableList(supportedPrivacy_); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacyValue(int index, int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @param value The enum numeric value on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacyValue(int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @param values The enum numeric values on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacyValue(java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (int value : values) { - supportedPrivacy_.add(value); - } - onChanged(); - return this; - } - - private com.google.type.Money yearlyPrice_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - yearlyPriceBuilder_; - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - * - * @return Whether the yearlyPrice field is set. - */ - public boolean hasYearlyPrice() { - return yearlyPriceBuilder_ != null || yearlyPrice_ != null; - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - * - * @return The yearlyPrice. - */ - public com.google.type.Money getYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } else { - return yearlyPriceBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public Builder setYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - yearlyPrice_ = value; - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public Builder setYearlyPrice(com.google.type.Money.Builder builderForValue) { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = builderForValue.build(); - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public Builder mergeYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (yearlyPrice_ != null) { - yearlyPrice_ = - com.google.type.Money.newBuilder(yearlyPrice_).mergeFrom(value).buildPartial(); - } else { - yearlyPrice_ = value; - } - onChanged(); - } else { - yearlyPriceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public Builder clearYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - onChanged(); - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public com.google.type.Money.Builder getYearlyPriceBuilder() { - - onChanged(); - return getYearlyPriceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - if (yearlyPriceBuilder_ != null) { - return yearlyPriceBuilder_.getMessageOrBuilder(); - } else { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - getYearlyPriceFieldBuilder() { - if (yearlyPriceBuilder_ == null) { - yearlyPriceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, - com.google.type.Money.Builder, - com.google.type.MoneyOrBuilder>( - getYearlyPrice(), getParentForChildren(), isClean()); - yearlyPrice_ = null; - } - return yearlyPriceBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.TransferParameters) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.TransferParameters) - private static final com.google.cloud.domains.v1.TransferParameters DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.TransferParameters(); - } - - public static com.google.cloud.domains.v1.TransferParameters getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransferParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.TransferParameters getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/TransferParametersOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/TransferParametersOrBuilder.java deleted file mode 100644 index 30e14bbe..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/TransferParametersOrBuilder.java +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface TransferParametersOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.TransferParameters) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - java.lang.String getDomainName(); - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - com.google.protobuf.ByteString getDomainNameBytes(); - - /** - * - * - *
-   * The registrar that currently manages the domain.
-   * 
- * - * string current_registrar = 2; - * - * @return The currentRegistrar. - */ - java.lang.String getCurrentRegistrar(); - /** - * - * - *
-   * The registrar that currently manages the domain.
-   * 
- * - * string current_registrar = 2; - * - * @return The bytes for currentRegistrar. - */ - com.google.protobuf.ByteString getCurrentRegistrarBytes(); - - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @return A list containing the nameServers. - */ - java.util.List getNameServersList(); - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @return The count of nameServers. - */ - int getNameServersCount(); - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - java.lang.String getNameServers(int index); - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - com.google.protobuf.ByteString getNameServersBytes(int index); - - /** - * - * - *
-   * Indicates whether the domain is protected by a transfer lock. For a
-   * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-   * go to its current registrar.
-   * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - int getTransferLockStateValue(); - /** - * - * - *
-   * Indicates whether the domain is protected by a transfer lock. For a
-   * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-   * go to its current registrar.
-   * 
- * - * .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - com.google.cloud.domains.v1.TransferLockState getTransferLockState(); - - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the supportedPrivacy. - */ - java.util.List getSupportedPrivacyList(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @return The count of supportedPrivacy. - */ - int getSupportedPrivacyCount(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - com.google.cloud.domains.v1.ContactPrivacy getSupportedPrivacy(int index); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - java.util.List getSupportedPrivacyValueList(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - int getSupportedPrivacyValue(int index); - - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - * - * @return Whether the yearlyPrice field is set. - */ - boolean hasYearlyPrice(); - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - * - * @return The yearlyPrice. - */ - com.google.type.Money getYearlyPrice(); - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - */ - com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/UpdateRegistrationRequest.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/UpdateRegistrationRequest.java deleted file mode 100644 index ea57e728..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/UpdateRegistrationRequest.java +++ /dev/null @@ -1,1004 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -/** - * - * - *
- * Request for the `UpdateRegistration` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1.UpdateRegistrationRequest} - */ -public final class UpdateRegistrationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1.UpdateRegistrationRequest) - UpdateRegistrationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateRegistrationRequest.newBuilder() to construct. - private UpdateRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateRegistrationRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateRegistrationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_UpdateRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_UpdateRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.UpdateRegistrationRequest.class, - com.google.cloud.domains.v1.UpdateRegistrationRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private com.google.cloud.domains.v1.Registration registration_; - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1.Registration registration = 1; - * - * @return Whether the registration field is set. - */ - @java.lang.Override - public boolean hasRegistration() { - return registration_ != null; - } - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1.Registration registration = 1; - * - * @return The registration. - */ - @java.lang.Override - public com.google.cloud.domains.v1.Registration getRegistration() { - return registration_ == null - ? com.google.cloud.domains.v1.Registration.getDefaultInstance() - : registration_; - } - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1.Registration registration = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1.RegistrationOrBuilder getRegistrationOrBuilder() { - return getRegistration(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (registration_ != null) { - output.writeMessage(1, getRegistration()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (registration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRegistration()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1.UpdateRegistrationRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1.UpdateRegistrationRequest other = - (com.google.cloud.domains.v1.UpdateRegistrationRequest) obj; - - if (hasRegistration() != other.hasRegistration()) return false; - if (hasRegistration()) { - if (!getRegistration().equals(other.getRegistration())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRegistration()) { - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1.UpdateRegistrationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.UpdateRegistrationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.UpdateRegistrationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.UpdateRegistrationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.UpdateRegistrationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1.UpdateRegistrationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1.UpdateRegistrationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.UpdateRegistrationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.UpdateRegistrationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.UpdateRegistrationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1.UpdateRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1.UpdateRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1.UpdateRegistrationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `UpdateRegistration` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1.UpdateRegistrationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1.UpdateRegistrationRequest) - com.google.cloud.domains.v1.UpdateRegistrationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_UpdateRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_UpdateRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1.UpdateRegistrationRequest.class, - com.google.cloud.domains.v1.UpdateRegistrationRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1.UpdateRegistrationRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (registrationBuilder_ == null) { - registration_ = null; - } else { - registration_ = null; - registrationBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1.DomainsProto - .internal_static_google_cloud_domains_v1_UpdateRegistrationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1.UpdateRegistrationRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1.UpdateRegistrationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1.UpdateRegistrationRequest build() { - com.google.cloud.domains.v1.UpdateRegistrationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1.UpdateRegistrationRequest buildPartial() { - com.google.cloud.domains.v1.UpdateRegistrationRequest result = - new com.google.cloud.domains.v1.UpdateRegistrationRequest(this); - if (registrationBuilder_ == null) { - result.registration_ = registration_; - } else { - result.registration_ = registrationBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1.UpdateRegistrationRequest) { - return mergeFrom((com.google.cloud.domains.v1.UpdateRegistrationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1.UpdateRegistrationRequest other) { - if (other == com.google.cloud.domains.v1.UpdateRegistrationRequest.getDefaultInstance()) - return this; - if (other.hasRegistration()) { - mergeRegistration(other.getRegistration()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getRegistrationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.domains.v1.Registration registration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.Registration, - com.google.cloud.domains.v1.Registration.Builder, - com.google.cloud.domains.v1.RegistrationOrBuilder> - registrationBuilder_; - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1.Registration registration = 1; - * - * @return Whether the registration field is set. - */ - public boolean hasRegistration() { - return registrationBuilder_ != null || registration_ != null; - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1.Registration registration = 1; - * - * @return The registration. - */ - public com.google.cloud.domains.v1.Registration getRegistration() { - if (registrationBuilder_ == null) { - return registration_ == null - ? com.google.cloud.domains.v1.Registration.getDefaultInstance() - : registration_; - } else { - return registrationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1.Registration registration = 1; - */ - public Builder setRegistration(com.google.cloud.domains.v1.Registration value) { - if (registrationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - registration_ = value; - onChanged(); - } else { - registrationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1.Registration registration = 1; - */ - public Builder setRegistration( - com.google.cloud.domains.v1.Registration.Builder builderForValue) { - if (registrationBuilder_ == null) { - registration_ = builderForValue.build(); - onChanged(); - } else { - registrationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1.Registration registration = 1; - */ - public Builder mergeRegistration(com.google.cloud.domains.v1.Registration value) { - if (registrationBuilder_ == null) { - if (registration_ != null) { - registration_ = - com.google.cloud.domains.v1.Registration.newBuilder(registration_) - .mergeFrom(value) - .buildPartial(); - } else { - registration_ = value; - } - onChanged(); - } else { - registrationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1.Registration registration = 1; - */ - public Builder clearRegistration() { - if (registrationBuilder_ == null) { - registration_ = null; - onChanged(); - } else { - registration_ = null; - registrationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1.Registration registration = 1; - */ - public com.google.cloud.domains.v1.Registration.Builder getRegistrationBuilder() { - - onChanged(); - return getRegistrationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1.Registration registration = 1; - */ - public com.google.cloud.domains.v1.RegistrationOrBuilder getRegistrationOrBuilder() { - if (registrationBuilder_ != null) { - return registrationBuilder_.getMessageOrBuilder(); - } else { - return registration_ == null - ? com.google.cloud.domains.v1.Registration.getDefaultInstance() - : registration_; - } - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1.Registration registration = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.Registration, - com.google.cloud.domains.v1.Registration.Builder, - com.google.cloud.domains.v1.RegistrationOrBuilder> - getRegistrationFieldBuilder() { - if (registrationBuilder_ == null) { - registrationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1.Registration, - com.google.cloud.domains.v1.Registration.Builder, - com.google.cloud.domains.v1.RegistrationOrBuilder>( - getRegistration(), getParentForChildren(), isClean()); - registration_ = null; - } - return registrationBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1.UpdateRegistrationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1.UpdateRegistrationRequest) - private static final com.google.cloud.domains.v1.UpdateRegistrationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1.UpdateRegistrationRequest(); - } - - public static com.google.cloud.domains.v1.UpdateRegistrationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateRegistrationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1.UpdateRegistrationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/UpdateRegistrationRequestOrBuilder.java b/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/UpdateRegistrationRequestOrBuilder.java deleted file mode 100644 index 7c8202e7..00000000 --- a/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/UpdateRegistrationRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1/domains.proto - -package com.google.cloud.domains.v1; - -public interface UpdateRegistrationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1.UpdateRegistrationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1.Registration registration = 1; - * - * @return Whether the registration field is set. - */ - boolean hasRegistration(); - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1.Registration registration = 1; - * - * @return The registration. - */ - com.google.cloud.domains.v1.Registration getRegistration(); - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1.Registration registration = 1; - */ - com.google.cloud.domains.v1.RegistrationOrBuilder getRegistrationOrBuilder(); - - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1/src/main/proto/google/cloud/domains/v1/domains.proto b/proto-google-cloud-domains-v1/src/main/proto/google/cloud/domains/v1/domains.proto deleted file mode 100644 index a9123616..00000000 --- a/proto-google-cloud-domains-v1/src/main/proto/google/cloud/domains/v1/domains.proto +++ /dev/null @@ -1,1147 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.domains.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; -import "google/type/money.proto"; -import "google/type/postal_address.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/domains/v1;domains"; -option java_multiple_files = true; -option java_outer_classname = "DomainsProto"; -option java_package = "com.google.cloud.domains.v1"; - -// The Cloud Domains API enables management and configuration of domain names. -service Domains { - option (google.api.default_host) = "domains.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Searches for available domain names similar to the provided query. - // - // Availability results from this method are approximate; call - // `RetrieveRegisterParameters` on a domain before registering to confirm - // availability. - rpc SearchDomains(SearchDomainsRequest) returns (SearchDomainsResponse) { - option (google.api.http) = { - get: "/v1/{location=projects/*/locations/*}/registrations:searchDomains" - }; - option (google.api.method_signature) = "location,query"; - } - - // Gets parameters needed to register a new domain name, including price and - // up-to-date availability. Use the returned values to call `RegisterDomain`. - rpc RetrieveRegisterParameters(RetrieveRegisterParametersRequest) returns (RetrieveRegisterParametersResponse) { - option (google.api.http) = { - get: "/v1/{location=projects/*/locations/*}/registrations:retrieveRegisterParameters" - }; - option (google.api.method_signature) = "location,domain_name"; - } - - // Registers a new domain name and creates a corresponding `Registration` - // resource. - // - // Call `RetrieveRegisterParameters` first to check availability of the domain - // name and determine parameters like price that are needed to build a call to - // this method. - // - // A successful call creates a `Registration` resource in state - // `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2 - // minutes, indicating that the domain was successfully registered. If the - // resource ends up in state `REGISTRATION_FAILED`, it indicates that the - // domain was not registered successfully, and you can safely delete the - // resource and retry registration. - rpc RegisterDomain(RegisterDomainRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*}/registrations:register" - body: "*" - }; - option (google.api.method_signature) = "parent,registration,yearly_price"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Gets parameters needed to transfer a domain name from another registrar to - // Cloud Domains. For domains managed by Google Domains, transferring to Cloud - // Domains is not supported. - // - // - // Use the returned values to call `TransferDomain`. - rpc RetrieveTransferParameters(RetrieveTransferParametersRequest) returns (RetrieveTransferParametersResponse) { - option (google.api.http) = { - get: "/v1/{location=projects/*/locations/*}/registrations:retrieveTransferParameters" - }; - option (google.api.method_signature) = "location,domain_name"; - } - - // Transfers a domain name from another registrar to Cloud Domains. For - // domains managed by Google Domains, transferring to Cloud Domains is not - // supported. - // - // - // Before calling this method, go to the domain's current registrar to unlock - // the domain for transfer and retrieve the domain's transfer authorization - // code. Then call `RetrieveTransferParameters` to confirm that the domain is - // unlocked and to get values needed to build a call to this method. - // - // A successful call creates a `Registration` resource in state - // `TRANSFER_PENDING`. It can take several days to complete the transfer - // process. The registrant can often speed up this process by approving the - // transfer through the current registrar, either by clicking a link in an - // email from the registrar or by visiting the registrar's website. - // - // A few minutes after transfer approval, the resource transitions to state - // `ACTIVE`, indicating that the transfer was successful. If the transfer is - // rejected or the request expires without being approved, the resource can - // end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete - // the resource and retry the transfer. - rpc TransferDomain(TransferDomainRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*}/registrations:transfer" - body: "*" - }; - option (google.api.method_signature) = "parent,registration,yearly_price,authorization_code"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Lists the `Registration` resources in a project. - rpc ListRegistrations(ListRegistrationsRequest) returns (ListRegistrationsResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*}/registrations" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets the details of a `Registration` resource. - rpc GetRegistration(GetRegistrationRequest) returns (Registration) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/registrations/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates select fields of a `Registration` resource, notably `labels`. To - // update other fields, use the appropriate custom update method: - // - // * To update management settings, see `ConfigureManagementSettings` - // * To update DNS configuration, see `ConfigureDnsSettings` - // * To update contact information, see `ConfigureContactSettings` - rpc UpdateRegistration(UpdateRegistrationRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1/{registration.name=projects/*/locations/*/registrations/*}" - body: "registration" - }; - option (google.api.method_signature) = "registration,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Updates a `Registration`'s management settings. - rpc ConfigureManagementSettings(ConfigureManagementSettingsRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{registration=projects/*/locations/*/registrations/*}:configureManagementSettings" - body: "*" - }; - option (google.api.method_signature) = "registration,management_settings,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Updates a `Registration`'s DNS settings. - rpc ConfigureDnsSettings(ConfigureDnsSettingsRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{registration=projects/*/locations/*/registrations/*}:configureDnsSettings" - body: "*" - }; - option (google.api.method_signature) = "registration,dns_settings,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Updates a `Registration`'s contact settings. Some changes require - // confirmation by the domain's registrant contact . - rpc ConfigureContactSettings(ConfigureContactSettingsRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{registration=projects/*/locations/*/registrations/*}:configureContactSettings" - body: "*" - }; - option (google.api.method_signature) = "registration,contact_settings,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Exports a `Registration` resource, such that it is no longer managed by - // Cloud Domains. - // - // When an active domain is successfully exported, you can continue to use the - // domain in [Google Domains](https://domains.google/) until it expires. The - // calling user becomes the domain's sole owner in Google Domains, and - // permissions for the domain are subsequently managed there. The domain does - // not renew automatically unless the new owner sets up billing in Google - // Domains. - rpc ExportRegistration(ExportRegistrationRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/registrations/*}:export" - body: "*" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Deletes a `Registration` resource. - // - // This method works on any `Registration` resource using [Subscription or - // Commitment billing](/domains/pricing#billing-models), provided that the - // resource was created at least 1 day in the past. - // - // For `Registration` resources using - // [Monthly billing](/domains/pricing#billing-models), this method works if: - // - // * `state` is `EXPORTED` with `expire_time` in the past - // * `state` is `REGISTRATION_FAILED` - // * `state` is `TRANSFER_FAILED` - // - // When an active registration is successfully deleted, you can continue to - // use the domain in [Google Domains](https://domains.google/) until it - // expires. The calling user becomes the domain's sole owner in Google - // Domains, and permissions for the domain are subsequently managed there. The - // domain does not renew automatically unless the new owner sets up billing in - // Google Domains. - rpc DeleteRegistration(DeleteRegistrationRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/registrations/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "OperationMetadata" - }; - } - - // Gets the authorization code of the `Registration` for the purpose of - // transferring the domain to another registrar. - // - // You can call this method only after 60 days have elapsed since the initial - // domain registration. - rpc RetrieveAuthorizationCode(RetrieveAuthorizationCodeRequest) returns (AuthorizationCode) { - option (google.api.http) = { - get: "/v1/{registration=projects/*/locations/*/registrations/*}:retrieveAuthorizationCode" - }; - option (google.api.method_signature) = "registration"; - } - - // Resets the authorization code of the `Registration` to a new random string. - // - // You can call this method only after 60 days have elapsed since the initial - // domain registration. - rpc ResetAuthorizationCode(ResetAuthorizationCodeRequest) returns (AuthorizationCode) { - option (google.api.http) = { - post: "/v1/{registration=projects/*/locations/*/registrations/*}:resetAuthorizationCode" - body: "*" - }; - option (google.api.method_signature) = "registration"; - } -} - -// The `Registration` resource facilitates managing and configuring domain name -// registrations. -// -// There are several ways to create a new `Registration` resource: -// -// To create a new `Registration` resource, find a suitable domain name by -// calling the `SearchDomains` method with a query to see available domain name -// options. After choosing a name, call `RetrieveRegisterParameters` to -// ensure availability and obtain information like pricing, which is needed to -// build a call to `RegisterDomain`. -// -// Another way to create a new `Registration` is to transfer an existing -// domain from another registrar. First, go to the current registrar to unlock -// the domain for transfer and retrieve the domain's transfer authorization -// code. Then call `RetrieveTransferParameters` to confirm that the domain is -// unlocked and to get values needed to build a call to `TransferDomain`. -message Registration { - option (google.api.resource) = { - type: "domains.googleapis.com/Registration" - pattern: "projects/{project}/locations/{location}/registrations/{registration}" - }; - - // Possible states of a `Registration`. - enum State { - // The state is undefined. - STATE_UNSPECIFIED = 0; - - // The domain is being registered. - REGISTRATION_PENDING = 1; - - // The domain registration failed. You can delete resources in this state - // to allow registration to be retried. - REGISTRATION_FAILED = 2; - - // The domain is being transferred from another registrar to Cloud Domains. - TRANSFER_PENDING = 3; - - // The attempt to transfer the domain from another registrar to - // Cloud Domains failed. You can delete resources in this state and retry - // the transfer. - TRANSFER_FAILED = 4; - - // The domain is registered and operational. The domain renews automatically - // as long as it remains in this state. - ACTIVE = 6; - - // The domain is suspended and inoperative. For more details, see the - // `issues` field. - SUSPENDED = 7; - - // The domain is no longer managed with Cloud Domains. It may have been - // transferred to another registrar or exported for management in - // [Google Domains](https://domains.google/). You can no longer update it - // with this API, and information shown about it may be stale. Domains in - // this state are not automatically renewed by Cloud Domains. - EXPORTED = 8; - } - - // Possible issues with a `Registration` that require attention. - enum Issue { - // The issue is undefined. - ISSUE_UNSPECIFIED = 0; - - // Contact the Cloud Support team to resolve a problem with this domain. - CONTACT_SUPPORT = 1; - - // [ICANN](https://icann.org/) requires verification of the email address - // in the `Registration`'s `contact_settings.registrant_contact` field. To - // verify the email address, follow the - // instructions in the email the `registrant_contact` receives following - // registration. If you do not complete email verification within - // 15 days of registration, the domain is suspended. To resend the - // verification email, call ConfigureContactSettings and provide the current - // `registrant_contact.email`. - UNVERIFIED_EMAIL = 2; - } - - // Output only. Name of the `Registration` resource, in the format - // `projects/*/locations/*/registrations/`. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format. - string domain_name = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IMMUTABLE - ]; - - // Output only. The creation timestamp of the `Registration` resource. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The expiration timestamp of the `Registration`. - google.protobuf.Timestamp expire_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The state of the `Registration` - State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The set of issues with the `Registration` that require attention. - repeated Issue issues = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Set of labels associated with the `Registration`. - map labels = 9; - - // Settings for management of the `Registration`, including renewal, billing, - // and transfer. You cannot update these with the `UpdateRegistration` - // method. To update these settings, use the `ConfigureManagementSettings` - // method. - ManagementSettings management_settings = 10; - - // Settings controlling the DNS configuration of the `Registration`. You - // cannot update these with the `UpdateRegistration` method. To update these - // settings, use the `ConfigureDnsSettings` method. - DnsSettings dns_settings = 11; - - // Required. Settings for contact information linked to the `Registration`. You cannot - // update these with the `UpdateRegistration` method. To update these - // settings, use the `ConfigureContactSettings` method. - ContactSettings contact_settings = 12 [(google.api.field_behavior) = REQUIRED]; - - // Output only. Pending contact settings for the `Registration`. Updates to the - // `contact_settings` field that change its `registrant_contact` or `privacy` - // fields require email confirmation by the `registrant_contact` - // before taking effect. This field is set only if there are pending updates - // to the `contact_settings` that have not been confirmed. To confirm the - // changes, the `registrant_contact` must follow the instructions in the - // email they receive. - ContactSettings pending_contact_settings = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Set of options for the `contact_settings.privacy` field that this - // `Registration` supports. - repeated ContactPrivacy supported_privacy = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Defines renewal, billing, and transfer settings for a `Registration`. -message ManagementSettings { - // Defines how the `Registration` is renewed. - enum RenewalMethod { - // The renewal method is undefined. - RENEWAL_METHOD_UNSPECIFIED = 0; - - // The domain is automatically renewed each year . - // - // To disable automatic renewals, delete the resource by calling - // `DeleteRegistration` or export it by calling `ExportRegistration`. - AUTOMATIC_RENEWAL = 1; - - // The domain must be explicitly renewed each year before its - // `expire_time`. This option is only available when the `Registration` - // is in state `EXPORTED`. - // - // To manage the domain's current billing and - // renewal settings, go to [Google Domains](https://domains.google/). - MANUAL_RENEWAL = 2; - } - - // Output only. The renewal method for this `Registration`. - RenewalMethod renewal_method = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Controls whether the domain can be transferred to another registrar. - TransferLockState transfer_lock_state = 4; -} - -// Defines the DNS configuration of a `Registration`, including name servers, -// DNSSEC, and glue records. -message DnsSettings { - // Configuration for an arbitrary DNS provider. - message CustomDns { - // Required. A list of name servers that store the DNS zone for this domain. Each name - // server is a domain name, with Unicode domain names expressed in - // Punycode format. - repeated string name_servers = 1 [(google.api.field_behavior) = REQUIRED]; - - // The list of DS records for this domain, which are used to enable DNSSEC. - // The domain's DNS provider can provide the values to set here. If this - // field is empty, DNSSEC is disabled. - repeated DsRecord ds_records = 2; - } - - // Configuration for using the free DNS zone provided by Google Domains as a - // `Registration`'s `dns_provider`. You cannot configure the DNS zone itself - // using the API. To configure the DNS zone, go to - // [Google Domains](https://domains.google/). - message GoogleDomainsDns { - // Output only. A list of name servers that store the DNS zone for this domain. Each name - // server is a domain name, with Unicode domain names expressed in - // Punycode format. This field is automatically populated with the name - // servers assigned to the Google Domains DNS zone. - repeated string name_servers = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. The state of DS records for this domain. Used to enable or disable - // automatic DNSSEC. - DsState ds_state = 2 [(google.api.field_behavior) = REQUIRED]; - - // Output only. The list of DS records published for this domain. The list is - // automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`, - // otherwise it remains empty. - repeated DsRecord ds_records = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Defines a Delegation Signer (DS) record, which is needed to enable DNSSEC - // for a domain. It contains a digest (hash) of a DNSKEY record that must be - // present in the domain's DNS zone. - message DsRecord { - // List of algorithms used to create a DNSKEY. Certain - // algorithms are not supported for particular domains. - enum Algorithm { - // The algorithm is unspecified. - ALGORITHM_UNSPECIFIED = 0; - - // RSA/MD5. Cannot be used for new deployments. - RSAMD5 = 1; - - // Diffie-Hellman. Cannot be used for new deployments. - DH = 2; - - // DSA/SHA1. Not recommended for new deployments. - DSA = 3; - - // ECC. Not recommended for new deployments. - ECC = 4; - - // RSA/SHA-1. Not recommended for new deployments. - RSASHA1 = 5; - - // DSA-NSEC3-SHA1. Not recommended for new deployments. - DSANSEC3SHA1 = 6; - - // RSA/SHA1-NSEC3-SHA1. Not recommended for new deployments. - RSASHA1NSEC3SHA1 = 7; - - // RSA/SHA-256. - RSASHA256 = 8; - - // RSA/SHA-512. - RSASHA512 = 10; - - // GOST R 34.10-2001. - ECCGOST = 12; - - // ECDSA Curve P-256 with SHA-256. - ECDSAP256SHA256 = 13; - - // ECDSA Curve P-384 with SHA-384. - ECDSAP384SHA384 = 14; - - // Ed25519. - ED25519 = 15; - - // Ed448. - ED448 = 16; - - // Reserved for Indirect Keys. Cannot be used for new deployments. - INDIRECT = 252; - - // Private algorithm. Cannot be used for new deployments. - PRIVATEDNS = 253; - - // Private algorithm OID. Cannot be used for new deployments. - PRIVATEOID = 254; - } - - // List of hash functions that may have been used to generate a digest of a - // DNSKEY. - enum DigestType { - // The DigestType is unspecified. - DIGEST_TYPE_UNSPECIFIED = 0; - - // SHA-1. Not recommended for new deployments. - SHA1 = 1; - - // SHA-256. - SHA256 = 2; - - // GOST R 34.11-94. - GOST3411 = 3; - - // SHA-384. - SHA384 = 4; - } - - // The key tag of the record. Must be set in range 0 -- 65535. - int32 key_tag = 1; - - // The algorithm used to generate the referenced DNSKEY. - Algorithm algorithm = 2; - - // The hash function used to generate the digest of the referenced DNSKEY. - DigestType digest_type = 3; - - // The digest generated from the referenced DNSKEY. - string digest = 4; - } - - // Defines a host on your domain that is a DNS name server for your domain - // and/or other domains. Glue records are a way of making the IP address of a - // name server known, even when it serves DNS queries for its parent domain. - // For example, when `ns.example.com` is a name server for `example.com`, the - // host `ns.example.com` must have a glue record to break the circular DNS - // reference. - message GlueRecord { - // Required. Domain name of the host in Punycode format. - string host_name = 1 [(google.api.field_behavior) = REQUIRED]; - - // List of IPv4 addresses corresponding to this host in the standard decimal - // format (e.g. `198.51.100.1`). At least one of `ipv4_address` and - // `ipv6_address` must be set. - repeated string ipv4_addresses = 2; - - // List of IPv6 addresses corresponding to this host in the standard - // hexadecimal format (e.g. `2001:db8::`). At least one of - // `ipv4_address` and `ipv6_address` must be set. - repeated string ipv6_addresses = 3; - } - - // The publication state of DS records for a `Registration`. - enum DsState { - // DS state is unspecified. - DS_STATE_UNSPECIFIED = 0; - - // DNSSEC is disabled for this domain. No DS records for this domain are - // published in the parent DNS zone. - DS_RECORDS_UNPUBLISHED = 1; - - // DNSSEC is enabled for this domain. Appropriate DS records for this domain - // are published in the parent DNS zone. This option is valid only if the - // DNS zone referenced in the `Registration`'s `dns_provider` field is - // already DNSSEC-signed. - DS_RECORDS_PUBLISHED = 2; - } - - // The DNS provider of the registration. - oneof dns_provider { - // An arbitrary DNS provider identified by its name servers. - CustomDns custom_dns = 1; - - // The free DNS zone provided by - // [Google Domains](https://domains.google/). - GoogleDomainsDns google_domains_dns = 2; - } - - // The list of glue records for this `Registration`. Commonly empty. - repeated GlueRecord glue_records = 4; -} - -// Defines the contact information associated with a `Registration`. -// -// [ICANN](https://icann.org/) requires all domain names to have associated -// contact information. The `registrant_contact` is considered the -// domain's legal owner, and often the other contacts are identical. -message ContactSettings { - // Details required for a contact associated with a `Registration`. - message Contact { - // Required. Postal address of the contact. - google.type.PostalAddress postal_address = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. Email address of the contact. - string email = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. Phone number of the contact in international format. For example, - // `"+1-800-555-0123"`. - string phone_number = 3 [(google.api.field_behavior) = REQUIRED]; - - // Fax number of the contact in international format. For example, - // `"+1-800-555-0123"`. - string fax_number = 4; - } - - // Required. Privacy setting for the contacts associated with the `Registration`. - ContactPrivacy privacy = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The registrant contact for the `Registration`. - // - // *Caution: Anyone with access to this email address, phone number, - // and/or postal address can take control of the domain.* - // - // *Warning: For new `Registration`s, the registrant receives an email - // confirmation that they must complete within 15 days to avoid domain - // suspension.* - Contact registrant_contact = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The administrative contact for the `Registration`. - Contact admin_contact = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The technical contact for the `Registration`. - Contact technical_contact = 4 [(google.api.field_behavior) = REQUIRED]; -} - -// Request for the `SearchDomains` method. -message SearchDomainsRequest { - // Required. String used to search for available domain names. - string query = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The location. Must be in the format `projects/*/locations/*`. - string location = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; -} - -// Response for the `SearchDomains` method. -message SearchDomainsResponse { - // Results of the domain name search. - repeated RegisterParameters register_parameters = 1; -} - -// Request for the `RetrieveRegisterParameters` method. -message RetrieveRegisterParametersRequest { - // Required. The domain name. Unicode domain names must be expressed in Punycode format. - string domain_name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The location. Must be in the format `projects/*/locations/*`. - string location = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; -} - -// Response for the `RetrieveRegisterParameters` method. -message RetrieveRegisterParametersResponse { - // Parameters to use when calling the `RegisterDomain` method. - RegisterParameters register_parameters = 1; -} - -// Request for the `RegisterDomain` method. -message RegisterDomainRequest { - // Required. The parent resource of the `Registration`. Must be in the - // format `projects/*/locations/*`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // Required. The complete `Registration` resource to be created. - Registration registration = 2 [(google.api.field_behavior) = REQUIRED]; - - // The list of domain notices that you acknowledge. Call - // `RetrieveRegisterParameters` to see the notices that need acknowledgement. - repeated DomainNotice domain_notices = 3; - - // The list of contact notices that the caller acknowledges. The notices - // needed here depend on the values specified in - // `registration.contact_settings`. - repeated ContactNotice contact_notices = 4; - - // Required. Yearly price to register or renew the domain. - // The value that should be put here can be obtained from - // RetrieveRegisterParameters or SearchDomains calls. - google.type.Money yearly_price = 5 [(google.api.field_behavior) = REQUIRED]; - - // When true, only validation is performed, without actually registering - // the domain. Follows: - // https://cloud.google.com/apis/design/design_patterns#request_validation - bool validate_only = 6; -} - -// Request for the `RetrieveTransferParameters` method. -message RetrieveTransferParametersRequest { - // Required. The domain name. Unicode domain names must be expressed in Punycode format. - string domain_name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The location. Must be in the format `projects/*/locations/*`. - string location = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; -} - -// Response for the `RetrieveTransferParameters` method. -message RetrieveTransferParametersResponse { - // Parameters to use when calling the `TransferDomain` method. - TransferParameters transfer_parameters = 1; -} - -// Request for the `TransferDomain` method. -message TransferDomainRequest { - // Required. The parent resource of the `Registration`. Must be in the - // format `projects/*/locations/*`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // Required. The complete `Registration` resource to be created. - // - // You can leave `registration.dns_settings` unset to import the - // domain's current DNS configuration from its current registrar. Use this - // option only if you are sure that the domain's current DNS service - // does not cease upon transfer, as is often the case for DNS services - // provided for free by the registrar. - Registration registration = 2 [(google.api.field_behavior) = REQUIRED]; - - // The list of contact notices that you acknowledge. The notices - // needed here depend on the values specified in - // `registration.contact_settings`. - repeated ContactNotice contact_notices = 3; - - // Required. Acknowledgement of the price to transfer or renew the domain for one year. - // Call `RetrieveTransferParameters` to obtain the price, which you must - // acknowledge. - google.type.Money yearly_price = 4 [(google.api.field_behavior) = REQUIRED]; - - // The domain's transfer authorization code. You can obtain this from the - // domain's current registrar. - AuthorizationCode authorization_code = 5; - - // Validate the request without actually transferring the domain. - bool validate_only = 6; -} - -// Request for the `ListRegistrations` method. -message ListRegistrationsRequest { - // Required. The project and location from which to list `Registration`s, specified in - // the format `projects/*/locations/*`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // Maximum number of results to return. - int32 page_size = 2; - - // When set to the `next_page_token` from a prior response, provides the next - // page of results. - string page_token = 3; - - // Filter expression to restrict the `Registration`s returned. - // - // The expression must specify the field name, a comparison operator, and the - // value that you want to use for filtering. The value must be a string, a - // number, a boolean, or an enum value. The comparison operator should be one - // of =, !=, >, <, >=, <=, or : for prefix or wildcard matches. - // - // For example, to filter to a specific domain name, use an expression like - // `domainName="example.com"`. You can also check for the existence of a - // field; for example, to find domains using custom DNS settings, use an - // expression like `dnsSettings.customDns:*`. - // - // You can also create compound filters by combining expressions with the - // `AND` and `OR` operators. For example, to find domains that are suspended - // or have specific issues flagged, use an expression like - // `(state=SUSPENDED) OR (issue:*)`. - string filter = 4; -} - -// Response for the `ListRegistrations` method. -message ListRegistrationsResponse { - // A list of `Registration`s. - repeated Registration registrations = 1; - - // When present, there are more results to retrieve. Set `page_token` to this - // value on a subsequent call to get the next page of results. - string next_page_token = 2; -} - -// Request for the `GetRegistration` method. -message GetRegistrationRequest { - // Required. The name of the `Registration` to get, in the format - // `projects/*/locations/*/registrations/*`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; -} - -// Request for the `UpdateRegistration` method. -message UpdateRegistrationRequest { - // Fields of the `Registration` to update. - Registration registration = 1; - - // Required. The field mask describing which fields to update as a comma-separated list. - // For example, if only the labels are being updated, the `update_mask` is - // `"labels"`. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request for the `ConfigureManagementSettings` method. -message ConfigureManagementSettingsRequest { - // Required. The name of the `Registration` whose management settings are being updated, - // in the format `projects/*/locations/*/registrations/*`. - string registration = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; - - // Fields of the `ManagementSettings` to update. - ManagementSettings management_settings = 2; - - // Required. The field mask describing which fields to update as a comma-separated list. - // For example, if only the transfer lock is being updated, the `update_mask` - // is `"transfer_lock_state"`. - google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Request for the `ConfigureDnsSettings` method. -message ConfigureDnsSettingsRequest { - // Required. The name of the `Registration` whose DNS settings are being updated, - // in the format `projects/*/locations/*/registrations/*`. - string registration = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; - - // Fields of the `DnsSettings` to update. - DnsSettings dns_settings = 2; - - // Required. The field mask describing which fields to update as a comma-separated list. - // For example, if only the name servers are being updated for an existing - // Custom DNS configuration, the `update_mask` is - // `"custom_dns.name_servers"`. - // - // When changing the DNS provider from one type to another, pass the new - // provider's field name as part of the field mask. For example, when changing - // from a Google Domains DNS configuration to a Custom DNS configuration, the - // `update_mask` is `"custom_dns"`. // - google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED]; - - // Validate the request without actually updating the DNS settings. - bool validate_only = 4; -} - -// Request for the `ConfigureContactSettings` method. -message ConfigureContactSettingsRequest { - // Required. The name of the `Registration` whose contact settings are being updated, - // in the format `projects/*/locations/*/registrations/*`. - string registration = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; - - // Fields of the `ContactSettings` to update. - ContactSettings contact_settings = 2; - - // Required. The field mask describing which fields to update as a comma-separated list. - // For example, if only the registrant contact is being updated, the - // `update_mask` is `"registrant_contact"`. - google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED]; - - // The list of contact notices that the caller acknowledges. The notices - // needed here depend on the values specified in `contact_settings`. - repeated ContactNotice contact_notices = 4; - - // Validate the request without actually updating the contact settings. - bool validate_only = 5; -} - -// Request for the `ExportRegistration` method. -message ExportRegistrationRequest { - // Required. The name of the `Registration` to export, - // in the format `projects/*/locations/*/registrations/*`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; -} - -// Request for the `DeleteRegistration` method. -message DeleteRegistrationRequest { - // Required. The name of the `Registration` to delete, - // in the format `projects/*/locations/*/registrations/*`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; -} - -// Request for the `RetrieveAuthorizationCode` method. -message RetrieveAuthorizationCodeRequest { - // Required. The name of the `Registration` whose authorization code is being retrieved, - // in the format `projects/*/locations/*/registrations/*`. - string registration = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; -} - -// Request for the `ResetAuthorizationCode` method. -message ResetAuthorizationCodeRequest { - // Required. The name of the `Registration` whose authorization code is being reset, - // in the format `projects/*/locations/*/registrations/*`. - string registration = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; -} - -// Parameters required to register a new domain. -message RegisterParameters { - // Possible availability states of a domain name. - enum Availability { - // The availability is unspecified. - AVAILABILITY_UNSPECIFIED = 0; - - // The domain is available for registration. - AVAILABLE = 1; - - // The domain is not available for registration. Generally this means it is - // already registered to another party. - UNAVAILABLE = 2; - - // The domain is not currently supported by Cloud Domains, but may - // be available elsewhere. - UNSUPPORTED = 3; - - // Cloud Domains is unable to determine domain availability, generally - // due to system maintenance at the domain name registry. - UNKNOWN = 4; - } - - // The domain name. Unicode domain names are expressed in Punycode format. - string domain_name = 1; - - // Indicates whether the domain is available for registration. This value is - // accurate when obtained by calling `RetrieveRegisterParameters`, but is - // approximate when obtained by calling `SearchDomains`. - Availability availability = 2; - - // Contact privacy options that the domain supports. - repeated ContactPrivacy supported_privacy = 3; - - // Notices about special properties of the domain. - repeated DomainNotice domain_notices = 4; - - // Price to register or renew the domain for one year. - google.type.Money yearly_price = 5; -} - -// Parameters required to transfer a domain from another registrar. -message TransferParameters { - // The domain name. Unicode domain names are expressed in Punycode format. - string domain_name = 1; - - // The registrar that currently manages the domain. - string current_registrar = 2; - - // The name servers that currently store the configuration of the domain. - repeated string name_servers = 3; - - // Indicates whether the domain is protected by a transfer lock. For a - // transfer to succeed, this must show `UNLOCKED`. To unlock a domain, - // go to its current registrar. - TransferLockState transfer_lock_state = 4; - - // Contact privacy options that the domain supports. - repeated ContactPrivacy supported_privacy = 5; - - // Price to transfer or renew the domain for one year. - google.type.Money yearly_price = 6; -} - -// Defines an authorization code. -message AuthorizationCode { - // The Authorization Code in ASCII. It can be used to transfer the domain - // to or from another registrar. - string code = 1; -} - -// Represents the metadata of the long-running operation. Output only. -message OperationMetadata { - // The time the operation was created. - google.protobuf.Timestamp create_time = 1; - - // The time the operation finished running. - google.protobuf.Timestamp end_time = 2; - - // Server-defined resource path for the target of the operation. - string target = 3; - - // Name of the verb executed by the operation. - string verb = 4; - - // Human-readable status of the operation, if any. - string status_detail = 5; - - // API version used to start the operation. - string api_version = 6; -} - -// Defines a set of possible contact privacy settings for a `Registration`. -// -// [ICANN](https://icann.org/) maintains the WHOIS database, a publicly -// accessible mapping from domain name to contact information, and requires that -// each domain name have an entry. Choose from these options to control how much -// information in your `ContactSettings` is published. -enum ContactPrivacy { - // The contact privacy settings are undefined. - CONTACT_PRIVACY_UNSPECIFIED = 0; - - // All the data from `ContactSettings` is publicly available. When setting - // this option, you must also provide a - // `PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT` in the `contact_notices` field of the - // request. - PUBLIC_CONTACT_DATA = 1; - - // None of the data from `ContactSettings` is publicly available. Instead, - // proxy contact data is published for your domain. Email sent to the proxy - // email address is forwarded to the registrant's email address. Cloud Domains - // provides this privacy proxy service at no additional cost. - PRIVATE_CONTACT_DATA = 2; - - // Some data from `ContactSettings` is publicly available. The actual - // information redacted depends on the domain. For details, see [the - // registration privacy - // article](https://support.google.com/domains/answer/3251242). - REDACTED_CONTACT_DATA = 3; -} - -// Notices about special properties of certain domains. -enum DomainNotice { - // The notice is undefined. - DOMAIN_NOTICE_UNSPECIFIED = 0; - - // Indicates that the domain is preloaded on the HTTP Strict Transport - // Security list in browsers. Serving a website on such domain requires - // an SSL certificate. For details, see - // [how to get an SSL - // certificate](https://support.google.com/domains/answer/7638036). - HSTS_PRELOADED = 1; -} - -// Notices related to contact information. -enum ContactNotice { - // The notice is undefined. - CONTACT_NOTICE_UNSPECIFIED = 0; - - // Required when setting the `privacy` field of `ContactSettings` to - // `PUBLIC_CONTACT_DATA`, which exposes contact data publicly. - PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT = 1; -} - -// Possible states of a `Registration`'s transfer lock. -enum TransferLockState { - // The state is unspecified. - TRANSFER_LOCK_STATE_UNSPECIFIED = 0; - - // The domain is unlocked and can be transferred to another registrar. - UNLOCKED = 1; - - // The domain is locked and cannot be transferred to another registrar. - LOCKED = 2; -} diff --git a/proto-google-cloud-domains-v1alpha2/clirr-ignored-differences.xml b/proto-google-cloud-domains-v1alpha2/clirr-ignored-differences.xml deleted file mode 100644 index 58fa4742..00000000 --- a/proto-google-cloud-domains-v1alpha2/clirr-ignored-differences.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - 7012 - com/google/cloud/domains/v1alpha2/*OrBuilder - * get*(*) - - - 7012 - com/google/cloud/domains/v1alpha2/*OrBuilder - boolean contains*(*) - - - 7012 - com/google/cloud/domains/v1alpha2/*OrBuilder - boolean has*(*) - - diff --git a/proto-google-cloud-domains-v1alpha2/pom.xml b/proto-google-cloud-domains-v1alpha2/pom.xml deleted file mode 100644 index a6e1516a..00000000 --- a/proto-google-cloud-domains-v1alpha2/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-cloud-domains-v1alpha2 - 0.8.7-SNAPSHOT - proto-google-cloud-domains-v1alpha2 - Proto library for google-cloud-domains - - com.google.cloud - google-cloud-domains-parent - 1.0.7-SNAPSHOT - - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - com.google.api - api-common - - - com.google.guava - guava - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/AuthorizationCode.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/AuthorizationCode.java deleted file mode 100644 index 55655373..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/AuthorizationCode.java +++ /dev/null @@ -1,622 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Defines an authorization code.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.AuthorizationCode} - */ -public final class AuthorizationCode extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.AuthorizationCode) - AuthorizationCodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuthorizationCode.newBuilder() to construct. - private AuthorizationCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AuthorizationCode() { - code_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AuthorizationCode(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_AuthorizationCode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_AuthorizationCode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.AuthorizationCode.class, - com.google.cloud.domains.v1alpha2.AuthorizationCode.Builder.class); - } - - public static final int CODE_FIELD_NUMBER = 1; - private volatile java.lang.Object code_; - /** - * - * - *
-   * The Authorization Code in ASCII. It can be used to transfer the domain
-   * to or from another registrar.
-   * 
- * - * string code = 1; - * - * @return The code. - */ - @java.lang.Override - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } - } - /** - * - * - *
-   * The Authorization Code in ASCII. It can be used to transfer the domain
-   * to or from another registrar.
-   * 
- * - * string code = 1; - * - * @return The bytes for code. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.AuthorizationCode)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.AuthorizationCode other = - (com.google.cloud.domains.v1alpha2.AuthorizationCode) obj; - - if (!getCode().equals(other.getCode())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + getCode().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.AuthorizationCode parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.AuthorizationCode parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.AuthorizationCode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.AuthorizationCode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.AuthorizationCode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.AuthorizationCode parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.AuthorizationCode parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.AuthorizationCode parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.AuthorizationCode parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.AuthorizationCode parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.AuthorizationCode parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.AuthorizationCode parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1alpha2.AuthorizationCode prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Defines an authorization code.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.AuthorizationCode} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.AuthorizationCode) - com.google.cloud.domains.v1alpha2.AuthorizationCodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_AuthorizationCode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_AuthorizationCode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.AuthorizationCode.class, - com.google.cloud.domains.v1alpha2.AuthorizationCode.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.AuthorizationCode.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - code_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_AuthorizationCode_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.AuthorizationCode getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.AuthorizationCode.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.AuthorizationCode build() { - com.google.cloud.domains.v1alpha2.AuthorizationCode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.AuthorizationCode buildPartial() { - com.google.cloud.domains.v1alpha2.AuthorizationCode result = - new com.google.cloud.domains.v1alpha2.AuthorizationCode(this); - result.code_ = code_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.AuthorizationCode) { - return mergeFrom((com.google.cloud.domains.v1alpha2.AuthorizationCode) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.AuthorizationCode other) { - if (other == com.google.cloud.domains.v1alpha2.AuthorizationCode.getDefaultInstance()) - return this; - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - code_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object code_ = ""; - /** - * - * - *
-     * The Authorization Code in ASCII. It can be used to transfer the domain
-     * to or from another registrar.
-     * 
- * - * string code = 1; - * - * @return The code. - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The Authorization Code in ASCII. It can be used to transfer the domain
-     * to or from another registrar.
-     * 
- * - * string code = 1; - * - * @return The bytes for code. - */ - public com.google.protobuf.ByteString getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The Authorization Code in ASCII. It can be used to transfer the domain
-     * to or from another registrar.
-     * 
- * - * string code = 1; - * - * @param value The code to set. - * @return This builder for chaining. - */ - public Builder setCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The Authorization Code in ASCII. It can be used to transfer the domain
-     * to or from another registrar.
-     * 
- * - * string code = 1; - * - * @return This builder for chaining. - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** - * - * - *
-     * The Authorization Code in ASCII. It can be used to transfer the domain
-     * to or from another registrar.
-     * 
- * - * string code = 1; - * - * @param value The bytes for code to set. - * @return This builder for chaining. - */ - public Builder setCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.AuthorizationCode) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.AuthorizationCode) - private static final com.google.cloud.domains.v1alpha2.AuthorizationCode DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.AuthorizationCode(); - } - - public static com.google.cloud.domains.v1alpha2.AuthorizationCode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthorizationCode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.AuthorizationCode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/AuthorizationCodeOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/AuthorizationCodeOrBuilder.java deleted file mode 100644 index 429f8141..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/AuthorizationCodeOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface AuthorizationCodeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.AuthorizationCode) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The Authorization Code in ASCII. It can be used to transfer the domain
-   * to or from another registrar.
-   * 
- * - * string code = 1; - * - * @return The code. - */ - java.lang.String getCode(); - /** - * - * - *
-   * The Authorization Code in ASCII. It can be used to transfer the domain
-   * to or from another registrar.
-   * 
- * - * string code = 1; - * - * @return The bytes for code. - */ - com.google.protobuf.ByteString getCodeBytes(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureContactSettingsRequest.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureContactSettingsRequest.java deleted file mode 100644 index 72df4794..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureContactSettingsRequest.java +++ /dev/null @@ -1,1708 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Request for the `ConfigureContactSettings` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest} - */ -public final class ConfigureContactSettingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest) - ConfigureContactSettingsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfigureContactSettingsRequest.newBuilder() to construct. - private ConfigureContactSettingsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ConfigureContactSettingsRequest() { - registration_ = ""; - contactNotices_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfigureContactSettingsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ConfigureContactSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ConfigureContactSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest.class, - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private volatile java.lang.Object registration_; - /** - * - * - *
-   * Required. The name of the `Registration` whose contact settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - @java.lang.Override - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` whose contact settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONTACT_SETTINGS_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1alpha2.ContactSettings contactSettings_; - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 2; - * - * @return Whether the contactSettings field is set. - */ - @java.lang.Override - public boolean hasContactSettings() { - return contactSettings_ != null; - } - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 2; - * - * @return The contactSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettings getContactSettings() { - return contactSettings_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.getDefaultInstance() - : contactSettings_; - } - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder getContactSettingsOrBuilder() { - return getContactSettings(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 3; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int CONTACT_NOTICES_FIELD_NUMBER = 4; - private java.util.List contactNotices_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactNotice> - contactNotices_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactNotice>() { - public com.google.cloud.domains.v1alpha2.ContactNotice convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.ContactNotice result = - com.google.cloud.domains.v1alpha2.ContactNotice.valueOf(from); - return result == null - ? com.google.cloud.domains.v1alpha2.ContactNotice.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - @java.lang.Override - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesValueList() { - return contactNotices_; - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - @java.lang.Override - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - - private int contactNoticesMemoizedSerializedSize; - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; - private boolean validateOnly_; - /** - * - * - *
-   * Validate the request without actually updating the contact settings.
-   * 
- * - * bool validate_only = 5; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registration_); - } - if (contactSettings_ != null) { - output.writeMessage(2, getContactSettings()); - } - if (updateMask_ != null) { - output.writeMessage(3, getUpdateMask()); - } - if (getContactNoticesList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(contactNoticesMemoizedSerializedSize); - } - for (int i = 0; i < contactNotices_.size(); i++) { - output.writeEnumNoTag(contactNotices_.get(i)); - } - if (validateOnly_ != false) { - output.writeBool(5, validateOnly_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registration_); - } - if (contactSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContactSettings()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); - } - { - int dataSize = 0; - for (int i = 0; i < contactNotices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(contactNotices_.get(i)); - } - size += dataSize; - if (!getContactNoticesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - contactNoticesMemoizedSerializedSize = dataSize; - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest other = - (com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest) obj; - - if (!getRegistration().equals(other.getRegistration())) return false; - if (hasContactSettings() != other.hasContactSettings()) return false; - if (hasContactSettings()) { - if (!getContactSettings().equals(other.getContactSettings())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!contactNotices_.equals(other.contactNotices_)) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - if (hasContactSettings()) { - hash = (37 * hash) + CONTACT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getContactSettings().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - if (getContactNoticesCount() > 0) { - hash = (37 * hash) + CONTACT_NOTICES_FIELD_NUMBER; - hash = (53 * hash) + contactNotices_.hashCode(); - } - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ConfigureContactSettings` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest) - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ConfigureContactSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ConfigureContactSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest.class, - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest.Builder.class); - } - - // Construct using - // com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - registration_ = ""; - - if (contactSettingsBuilder_ == null) { - contactSettings_ = null; - } else { - contactSettings_ = null; - contactSettingsBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ConfigureContactSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest build() { - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest buildPartial() { - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest result = - new com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest(this); - int from_bitField0_ = bitField0_; - result.registration_ = registration_; - if (contactSettingsBuilder_ == null) { - result.contactSettings_ = contactSettings_; - } else { - result.contactSettings_ = contactSettingsBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - contactNotices_ = java.util.Collections.unmodifiableList(contactNotices_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.contactNotices_ = contactNotices_; - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest) { - return mergeFrom((com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest other) { - if (other - == com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest.getDefaultInstance()) - return this; - if (!other.getRegistration().isEmpty()) { - registration_ = other.registration_; - onChanged(); - } - if (other.hasContactSettings()) { - mergeContactSettings(other.getContactSettings()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (!other.contactNotices_.isEmpty()) { - if (contactNotices_.isEmpty()) { - contactNotices_ = other.contactNotices_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureContactNoticesIsMutable(); - contactNotices_.addAll(other.contactNotices_); - } - onChanged(); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - registration_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getContactSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 32: - { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - break; - } // case 32 - case 34: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 34 - case 40: - { - validateOnly_ = input.readBool(); - - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object registration_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` whose contact settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose contact settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose contact settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The registration to set. - * @return This builder for chaining. - */ - public Builder setRegistration(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose contact settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearRegistration() { - - registration_ = getDefaultInstance().getRegistration(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose contact settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for registration to set. - * @return This builder for chaining. - */ - public Builder setRegistrationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registration_ = value; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1alpha2.ContactSettings contactSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings, - com.google.cloud.domains.v1alpha2.ContactSettings.Builder, - com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder> - contactSettingsBuilder_; - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 2; - * - * @return Whether the contactSettings field is set. - */ - public boolean hasContactSettings() { - return contactSettingsBuilder_ != null || contactSettings_ != null; - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 2; - * - * @return The contactSettings. - */ - public com.google.cloud.domains.v1alpha2.ContactSettings getContactSettings() { - if (contactSettingsBuilder_ == null) { - return contactSettings_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.getDefaultInstance() - : contactSettings_; - } else { - return contactSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 2; - */ - public Builder setContactSettings(com.google.cloud.domains.v1alpha2.ContactSettings value) { - if (contactSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - contactSettings_ = value; - onChanged(); - } else { - contactSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 2; - */ - public Builder setContactSettings( - com.google.cloud.domains.v1alpha2.ContactSettings.Builder builderForValue) { - if (contactSettingsBuilder_ == null) { - contactSettings_ = builderForValue.build(); - onChanged(); - } else { - contactSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 2; - */ - public Builder mergeContactSettings(com.google.cloud.domains.v1alpha2.ContactSettings value) { - if (contactSettingsBuilder_ == null) { - if (contactSettings_ != null) { - contactSettings_ = - com.google.cloud.domains.v1alpha2.ContactSettings.newBuilder(contactSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - contactSettings_ = value; - } - onChanged(); - } else { - contactSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 2; - */ - public Builder clearContactSettings() { - if (contactSettingsBuilder_ == null) { - contactSettings_ = null; - onChanged(); - } else { - contactSettings_ = null; - contactSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 2; - */ - public com.google.cloud.domains.v1alpha2.ContactSettings.Builder getContactSettingsBuilder() { - - onChanged(); - return getContactSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 2; - */ - public com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder - getContactSettingsOrBuilder() { - if (contactSettingsBuilder_ != null) { - return contactSettingsBuilder_.getMessageOrBuilder(); - } else { - return contactSettings_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.getDefaultInstance() - : contactSettings_; - } - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings, - com.google.cloud.domains.v1alpha2.ContactSettings.Builder, - com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder> - getContactSettingsFieldBuilder() { - if (contactSettingsBuilder_ == null) { - contactSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings, - com.google.cloud.domains.v1alpha2.ContactSettings.Builder, - com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder>( - getContactSettings(), getParentForChildren(), isClean()); - contactSettings_ = null; - } - return contactSettingsBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private java.util.List contactNotices_ = java.util.Collections.emptyList(); - - private void ensureContactNoticesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - contactNotices_ = new java.util.ArrayList(contactNotices_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - public com.google.cloud.domains.v1alpha2.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param index The index to set the value at. - * @param value The contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNotices( - int index, com.google.cloud.domains.v1alpha2.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param value The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNotices(com.google.cloud.domains.v1alpha2.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param values The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNotices( - java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (com.google.cloud.domains.v1alpha2.ContactNotice value : values) { - contactNotices_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return This builder for chaining. - */ - public Builder clearContactNotices() { - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - public java.util.List getContactNoticesValueList() { - return java.util.Collections.unmodifiableList(contactNotices_); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNoticesValue(int index, int value) { - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param value The enum numeric value on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNoticesValue(int value) { - ensureContactNoticesIsMutable(); - contactNotices_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param values The enum numeric values on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNoticesValue(java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (int value : values) { - contactNotices_.add(value); - } - onChanged(); - return this; - } - - private boolean validateOnly_; - /** - * - * - *
-     * Validate the request without actually updating the contact settings.
-     * 
- * - * bool validate_only = 5; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - * - * - *
-     * Validate the request without actually updating the contact settings.
-     * 
- * - * bool validate_only = 5; - * - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Validate the request without actually updating the contact settings.
-     * 
- * - * bool validate_only = 5; - * - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest) - private static final com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest(); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigureContactSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureContactSettingsRequestOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureContactSettingsRequestOrBuilder.java deleted file mode 100644 index 6d6e43be..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureContactSettingsRequestOrBuilder.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/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface ConfigureContactSettingsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` whose contact settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - java.lang.String getRegistration(); - /** - * - * - *
-   * Required. The name of the `Registration` whose contact settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - com.google.protobuf.ByteString getRegistrationBytes(); - - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 2; - * - * @return Whether the contactSettings field is set. - */ - boolean hasContactSettings(); - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 2; - * - * @return The contactSettings. - */ - com.google.cloud.domains.v1alpha2.ContactSettings getContactSettings(); - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 2; - */ - com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder getContactSettingsOrBuilder(); - - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - java.util.List getContactNoticesList(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - int getContactNoticesCount(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - com.google.cloud.domains.v1alpha2.ContactNotice getContactNotices(int index); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - java.util.List getContactNoticesValueList(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - int getContactNoticesValue(int index); - - /** - * - * - *
-   * Validate the request without actually updating the contact settings.
-   * 
- * - * bool validate_only = 5; - * - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureDnsSettingsRequest.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureDnsSettingsRequest.java deleted file mode 100644 index ccbeaf04..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureDnsSettingsRequest.java +++ /dev/null @@ -1,1358 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Request for the `ConfigureDnsSettings` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest} - */ -public final class ConfigureDnsSettingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest) - ConfigureDnsSettingsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfigureDnsSettingsRequest.newBuilder() to construct. - private ConfigureDnsSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ConfigureDnsSettingsRequest() { - registration_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfigureDnsSettingsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ConfigureDnsSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ConfigureDnsSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest.class, - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private volatile java.lang.Object registration_; - /** - * - * - *
-   * Required. The name of the `Registration` whose DNS settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - @java.lang.Override - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` whose DNS settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DNS_SETTINGS_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1alpha2.DnsSettings dnsSettings_; - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 2; - * - * @return Whether the dnsSettings field is set. - */ - @java.lang.Override - public boolean hasDnsSettings() { - return dnsSettings_ != null; - } - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 2; - * - * @return The dnsSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings getDnsSettings() { - return dnsSettings_ == null - ? com.google.cloud.domains.v1alpha2.DnsSettings.getDefaultInstance() - : dnsSettings_; - } - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettingsOrBuilder getDnsSettingsOrBuilder() { - return getDnsSettings(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 3; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; - private boolean validateOnly_; - /** - * - * - *
-   * Validate the request without actually updating the DNS settings.
-   * 
- * - * bool validate_only = 4; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registration_); - } - if (dnsSettings_ != null) { - output.writeMessage(2, getDnsSettings()); - } - if (updateMask_ != null) { - output.writeMessage(3, getUpdateMask()); - } - if (validateOnly_ != false) { - output.writeBool(4, validateOnly_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registration_); - } - if (dnsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDnsSettings()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest other = - (com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest) obj; - - if (!getRegistration().equals(other.getRegistration())) return false; - if (hasDnsSettings() != other.hasDnsSettings()) return false; - if (hasDnsSettings()) { - if (!getDnsSettings().equals(other.getDnsSettings())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - if (hasDnsSettings()) { - hash = (37 * hash) + DNS_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getDnsSettings().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ConfigureDnsSettings` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest) - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ConfigureDnsSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ConfigureDnsSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest.class, - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - registration_ = ""; - - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = null; - } else { - dnsSettings_ = null; - dnsSettingsBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ConfigureDnsSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest build() { - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest buildPartial() { - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest result = - new com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest(this); - result.registration_ = registration_; - if (dnsSettingsBuilder_ == null) { - result.dnsSettings_ = dnsSettings_; - } else { - result.dnsSettings_ = dnsSettingsBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest) { - return mergeFrom((com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest other) { - if (other - == com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest.getDefaultInstance()) - return this; - if (!other.getRegistration().isEmpty()) { - registration_ = other.registration_; - onChanged(); - } - if (other.hasDnsSettings()) { - mergeDnsSettings(other.getDnsSettings()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - registration_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getDnsSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object registration_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` whose DNS settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose DNS settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose DNS settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The registration to set. - * @return This builder for chaining. - */ - public Builder setRegistration(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose DNS settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearRegistration() { - - registration_ = getDefaultInstance().getRegistration(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose DNS settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for registration to set. - * @return This builder for chaining. - */ - public Builder setRegistrationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registration_ = value; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1alpha2.DnsSettings dnsSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings, - com.google.cloud.domains.v1alpha2.DnsSettings.Builder, - com.google.cloud.domains.v1alpha2.DnsSettingsOrBuilder> - dnsSettingsBuilder_; - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 2; - * - * @return Whether the dnsSettings field is set. - */ - public boolean hasDnsSettings() { - return dnsSettingsBuilder_ != null || dnsSettings_ != null; - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 2; - * - * @return The dnsSettings. - */ - public com.google.cloud.domains.v1alpha2.DnsSettings getDnsSettings() { - if (dnsSettingsBuilder_ == null) { - return dnsSettings_ == null - ? com.google.cloud.domains.v1alpha2.DnsSettings.getDefaultInstance() - : dnsSettings_; - } else { - return dnsSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 2; - */ - public Builder setDnsSettings(com.google.cloud.domains.v1alpha2.DnsSettings value) { - if (dnsSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsSettings_ = value; - onChanged(); - } else { - dnsSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 2; - */ - public Builder setDnsSettings( - com.google.cloud.domains.v1alpha2.DnsSettings.Builder builderForValue) { - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = builderForValue.build(); - onChanged(); - } else { - dnsSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 2; - */ - public Builder mergeDnsSettings(com.google.cloud.domains.v1alpha2.DnsSettings value) { - if (dnsSettingsBuilder_ == null) { - if (dnsSettings_ != null) { - dnsSettings_ = - com.google.cloud.domains.v1alpha2.DnsSettings.newBuilder(dnsSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - dnsSettings_ = value; - } - onChanged(); - } else { - dnsSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 2; - */ - public Builder clearDnsSettings() { - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = null; - onChanged(); - } else { - dnsSettings_ = null; - dnsSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 2; - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.Builder getDnsSettingsBuilder() { - - onChanged(); - return getDnsSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 2; - */ - public com.google.cloud.domains.v1alpha2.DnsSettingsOrBuilder getDnsSettingsOrBuilder() { - if (dnsSettingsBuilder_ != null) { - return dnsSettingsBuilder_.getMessageOrBuilder(); - } else { - return dnsSettings_ == null - ? com.google.cloud.domains.v1alpha2.DnsSettings.getDefaultInstance() - : dnsSettings_; - } - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings, - com.google.cloud.domains.v1alpha2.DnsSettings.Builder, - com.google.cloud.domains.v1alpha2.DnsSettingsOrBuilder> - getDnsSettingsFieldBuilder() { - if (dnsSettingsBuilder_ == null) { - dnsSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings, - com.google.cloud.domains.v1alpha2.DnsSettings.Builder, - com.google.cloud.domains.v1alpha2.DnsSettingsOrBuilder>( - getDnsSettings(), getParentForChildren(), isClean()); - dnsSettings_ = null; - } - return dnsSettingsBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private boolean validateOnly_; - /** - * - * - *
-     * Validate the request without actually updating the DNS settings.
-     * 
- * - * bool validate_only = 4; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - * - * - *
-     * Validate the request without actually updating the DNS settings.
-     * 
- * - * bool validate_only = 4; - * - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Validate the request without actually updating the DNS settings.
-     * 
- * - * bool validate_only = 4; - * - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest) - private static final com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest(); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigureDnsSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureDnsSettingsRequestOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureDnsSettingsRequestOrBuilder.java deleted file mode 100644 index 60aaa307..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureDnsSettingsRequestOrBuilder.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/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface ConfigureDnsSettingsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` whose DNS settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - java.lang.String getRegistration(); - /** - * - * - *
-   * Required. The name of the `Registration` whose DNS settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - com.google.protobuf.ByteString getRegistrationBytes(); - - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 2; - * - * @return Whether the dnsSettings field is set. - */ - boolean hasDnsSettings(); - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 2; - * - * @return The dnsSettings. - */ - com.google.cloud.domains.v1alpha2.DnsSettings getDnsSettings(); - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 2; - */ - com.google.cloud.domains.v1alpha2.DnsSettingsOrBuilder getDnsSettingsOrBuilder(); - - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - * - * - *
-   * Validate the request without actually updating the DNS settings.
-   * 
- * - * bool validate_only = 4; - * - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureManagementSettingsRequest.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureManagementSettingsRequest.java deleted file mode 100644 index e6dfb81b..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureManagementSettingsRequest.java +++ /dev/null @@ -1,1221 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Request for the `ConfigureManagementSettings` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest} - */ -public final class ConfigureManagementSettingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest) - ConfigureManagementSettingsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfigureManagementSettingsRequest.newBuilder() to construct. - private ConfigureManagementSettingsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ConfigureManagementSettingsRequest() { - registration_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfigureManagementSettingsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ConfigureManagementSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ConfigureManagementSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest.class, - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private volatile java.lang.Object registration_; - /** - * - * - *
-   * Required. The name of the `Registration` whose management settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - @java.lang.Override - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` whose management settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MANAGEMENT_SETTINGS_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1alpha2.ManagementSettings managementSettings_; - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 2; - * - * @return Whether the managementSettings field is set. - */ - @java.lang.Override - public boolean hasManagementSettings() { - return managementSettings_ != null; - } - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 2; - * - * @return The managementSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ManagementSettings getManagementSettings() { - return managementSettings_ == null - ? com.google.cloud.domains.v1alpha2.ManagementSettings.getDefaultInstance() - : managementSettings_; - } - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ManagementSettingsOrBuilder - getManagementSettingsOrBuilder() { - return getManagementSettings(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 3; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registration_); - } - if (managementSettings_ != null) { - output.writeMessage(2, getManagementSettings()); - } - if (updateMask_ != null) { - output.writeMessage(3, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registration_); - } - if (managementSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getManagementSettings()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest other = - (com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest) obj; - - if (!getRegistration().equals(other.getRegistration())) return false; - if (hasManagementSettings() != other.hasManagementSettings()) return false; - if (hasManagementSettings()) { - if (!getManagementSettings().equals(other.getManagementSettings())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - if (hasManagementSettings()) { - hash = (37 * hash) + MANAGEMENT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getManagementSettings().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ConfigureManagementSettings` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest) - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ConfigureManagementSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ConfigureManagementSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest.class, - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest.Builder.class); - } - - // Construct using - // com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - registration_ = ""; - - if (managementSettingsBuilder_ == null) { - managementSettings_ = null; - } else { - managementSettings_ = null; - managementSettingsBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ConfigureManagementSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest build() { - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest buildPartial() { - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest result = - new com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest(this); - result.registration_ = registration_; - if (managementSettingsBuilder_ == null) { - result.managementSettings_ = managementSettings_; - } else { - result.managementSettings_ = managementSettingsBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest) { - return mergeFrom( - (com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest other) { - if (other - == com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest - .getDefaultInstance()) return this; - if (!other.getRegistration().isEmpty()) { - registration_ = other.registration_; - onChanged(); - } - if (other.hasManagementSettings()) { - mergeManagementSettings(other.getManagementSettings()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - registration_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getManagementSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object registration_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` whose management settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose management settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose management settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The registration to set. - * @return This builder for chaining. - */ - public Builder setRegistration(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose management settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearRegistration() { - - registration_ = getDefaultInstance().getRegistration(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose management settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for registration to set. - * @return This builder for chaining. - */ - public Builder setRegistrationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registration_ = value; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1alpha2.ManagementSettings managementSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ManagementSettings, - com.google.cloud.domains.v1alpha2.ManagementSettings.Builder, - com.google.cloud.domains.v1alpha2.ManagementSettingsOrBuilder> - managementSettingsBuilder_; - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 2; - * - * @return Whether the managementSettings field is set. - */ - public boolean hasManagementSettings() { - return managementSettingsBuilder_ != null || managementSettings_ != null; - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 2; - * - * @return The managementSettings. - */ - public com.google.cloud.domains.v1alpha2.ManagementSettings getManagementSettings() { - if (managementSettingsBuilder_ == null) { - return managementSettings_ == null - ? com.google.cloud.domains.v1alpha2.ManagementSettings.getDefaultInstance() - : managementSettings_; - } else { - return managementSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 2; - */ - public Builder setManagementSettings( - com.google.cloud.domains.v1alpha2.ManagementSettings value) { - if (managementSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - managementSettings_ = value; - onChanged(); - } else { - managementSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 2; - */ - public Builder setManagementSettings( - com.google.cloud.domains.v1alpha2.ManagementSettings.Builder builderForValue) { - if (managementSettingsBuilder_ == null) { - managementSettings_ = builderForValue.build(); - onChanged(); - } else { - managementSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 2; - */ - public Builder mergeManagementSettings( - com.google.cloud.domains.v1alpha2.ManagementSettings value) { - if (managementSettingsBuilder_ == null) { - if (managementSettings_ != null) { - managementSettings_ = - com.google.cloud.domains.v1alpha2.ManagementSettings.newBuilder(managementSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - managementSettings_ = value; - } - onChanged(); - } else { - managementSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 2; - */ - public Builder clearManagementSettings() { - if (managementSettingsBuilder_ == null) { - managementSettings_ = null; - onChanged(); - } else { - managementSettings_ = null; - managementSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 2; - */ - public com.google.cloud.domains.v1alpha2.ManagementSettings.Builder - getManagementSettingsBuilder() { - - onChanged(); - return getManagementSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 2; - */ - public com.google.cloud.domains.v1alpha2.ManagementSettingsOrBuilder - getManagementSettingsOrBuilder() { - if (managementSettingsBuilder_ != null) { - return managementSettingsBuilder_.getMessageOrBuilder(); - } else { - return managementSettings_ == null - ? com.google.cloud.domains.v1alpha2.ManagementSettings.getDefaultInstance() - : managementSettings_; - } - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ManagementSettings, - com.google.cloud.domains.v1alpha2.ManagementSettings.Builder, - com.google.cloud.domains.v1alpha2.ManagementSettingsOrBuilder> - getManagementSettingsFieldBuilder() { - if (managementSettingsBuilder_ == null) { - managementSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ManagementSettings, - com.google.cloud.domains.v1alpha2.ManagementSettings.Builder, - com.google.cloud.domains.v1alpha2.ManagementSettingsOrBuilder>( - getManagementSettings(), getParentForChildren(), isClean()); - managementSettings_ = null; - } - return managementSettingsBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest) - private static final com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest(); - } - - public static com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigureManagementSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureManagementSettingsRequestOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureManagementSettingsRequestOrBuilder.java deleted file mode 100644 index 01023048..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ConfigureManagementSettingsRequestOrBuilder.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface ConfigureManagementSettingsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` whose management settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - java.lang.String getRegistration(); - /** - * - * - *
-   * Required. The name of the `Registration` whose management settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - com.google.protobuf.ByteString getRegistrationBytes(); - - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 2; - * - * @return Whether the managementSettings field is set. - */ - boolean hasManagementSettings(); - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 2; - * - * @return The managementSettings. - */ - com.google.cloud.domains.v1alpha2.ManagementSettings getManagementSettings(); - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 2; - */ - com.google.cloud.domains.v1alpha2.ManagementSettingsOrBuilder getManagementSettingsOrBuilder(); - - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ContactNotice.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ContactNotice.java deleted file mode 100644 index 509b36f7..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ContactNotice.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Notices related to contact information.
- * 
- * - * Protobuf enum {@code google.cloud.domains.v1alpha2.ContactNotice} - */ -public enum ContactNotice implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * The notice is undefined.
-   * 
- * - * CONTACT_NOTICE_UNSPECIFIED = 0; - */ - CONTACT_NOTICE_UNSPECIFIED(0), - /** - * - * - *
-   * Required when setting the `privacy` field of `ContactSettings` to
-   * `PUBLIC_CONTACT_DATA`, which exposes contact data publicly.
-   * 
- * - * PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT = 1; - */ - PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * The notice is undefined.
-   * 
- * - * CONTACT_NOTICE_UNSPECIFIED = 0; - */ - public static final int CONTACT_NOTICE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Required when setting the `privacy` field of `ContactSettings` to
-   * `PUBLIC_CONTACT_DATA`, which exposes contact data publicly.
-   * 
- * - * PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT = 1; - */ - public static final int PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT_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 ContactNotice 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 ContactNotice forNumber(int value) { - switch (value) { - case 0: - return CONTACT_NOTICE_UNSPECIFIED; - case 1: - return PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT; - 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 ContactNotice findValueByNumber(int number) { - return ContactNotice.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto.getDescriptor().getEnumTypes().get(2); - } - - private static final ContactNotice[] VALUES = values(); - - public static ContactNotice 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 ContactNotice(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1alpha2.ContactNotice) -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ContactPrivacy.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ContactPrivacy.java deleted file mode 100644 index 9e7b8fcd..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ContactPrivacy.java +++ /dev/null @@ -1,220 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Defines a set of possible contact privacy settings for a `Registration`.
- * [ICANN](https://icann.org/) maintains the WHOIS database, a publicly
- * accessible mapping from domain name to contact information, and requires that
- * each domain name have an entry. Choose from these options to control how much
- * information in your `ContactSettings` is published.
- * 
- * - * Protobuf enum {@code google.cloud.domains.v1alpha2.ContactPrivacy} - */ -public enum ContactPrivacy implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * The contact privacy settings are undefined.
-   * 
- * - * CONTACT_PRIVACY_UNSPECIFIED = 0; - */ - CONTACT_PRIVACY_UNSPECIFIED(0), - /** - * - * - *
-   * All the data from `ContactSettings` is publicly available. When setting
-   * this option, you must also provide a
-   * `PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT` in the `contact_notices` field of the
-   * request.
-   * 
- * - * PUBLIC_CONTACT_DATA = 1; - */ - PUBLIC_CONTACT_DATA(1), - /** - * - * - *
-   * None of the data from `ContactSettings` is publicly available. Instead,
-   * proxy contact data is published for your domain. Email sent to the proxy
-   * email address is forwarded to the registrant's email address. Cloud Domains
-   * provides this privacy proxy service at no additional cost.
-   * 
- * - * PRIVATE_CONTACT_DATA = 2; - */ - PRIVATE_CONTACT_DATA(2), - /** - * - * - *
-   * Some data from `ContactSettings` is publicly available. The actual
-   * information redacted depends on the domain. For details, see [the
-   * registration privacy
-   * article](https://support.google.com/domains/answer/3251242).
-   * 
- * - * REDACTED_CONTACT_DATA = 3; - */ - REDACTED_CONTACT_DATA(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * The contact privacy settings are undefined.
-   * 
- * - * CONTACT_PRIVACY_UNSPECIFIED = 0; - */ - public static final int CONTACT_PRIVACY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * All the data from `ContactSettings` is publicly available. When setting
-   * this option, you must also provide a
-   * `PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT` in the `contact_notices` field of the
-   * request.
-   * 
- * - * PUBLIC_CONTACT_DATA = 1; - */ - public static final int PUBLIC_CONTACT_DATA_VALUE = 1; - /** - * - * - *
-   * None of the data from `ContactSettings` is publicly available. Instead,
-   * proxy contact data is published for your domain. Email sent to the proxy
-   * email address is forwarded to the registrant's email address. Cloud Domains
-   * provides this privacy proxy service at no additional cost.
-   * 
- * - * PRIVATE_CONTACT_DATA = 2; - */ - public static final int PRIVATE_CONTACT_DATA_VALUE = 2; - /** - * - * - *
-   * Some data from `ContactSettings` is publicly available. The actual
-   * information redacted depends on the domain. For details, see [the
-   * registration privacy
-   * article](https://support.google.com/domains/answer/3251242).
-   * 
- * - * REDACTED_CONTACT_DATA = 3; - */ - public static final int REDACTED_CONTACT_DATA_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 ContactPrivacy 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 ContactPrivacy forNumber(int value) { - switch (value) { - case 0: - return CONTACT_PRIVACY_UNSPECIFIED; - case 1: - return PUBLIC_CONTACT_DATA; - case 2: - return PRIVATE_CONTACT_DATA; - case 3: - return REDACTED_CONTACT_DATA; - 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 ContactPrivacy findValueByNumber(int number) { - return ContactPrivacy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto.getDescriptor().getEnumTypes().get(0); - } - - private static final ContactPrivacy[] VALUES = values(); - - public static ContactPrivacy 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 ContactPrivacy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1alpha2.ContactPrivacy) -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ContactSettings.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ContactSettings.java deleted file mode 100644 index c05199c4..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ContactSettings.java +++ /dev/null @@ -1,2956 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Defines the contact information associated with a `Registration`.
- * [ICANN](https://icann.org/) requires all domain names to have associated
- * contact information. The `registrant_contact` is considered the
- * domain's legal owner, and often the other contacts are identical.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ContactSettings} - */ -public final class ContactSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.ContactSettings) - ContactSettingsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ContactSettings.newBuilder() to construct. - private ContactSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ContactSettings() { - privacy_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ContactSettings(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ContactSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ContactSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ContactSettings.class, - com.google.cloud.domains.v1alpha2.ContactSettings.Builder.class); - } - - public interface ContactOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.ContactSettings.Contact) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the postalAddress field is set. - */ - boolean hasPostalAddress(); - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The postalAddress. - */ - com.google.type.PostalAddress getPostalAddress(); - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder(); - - /** - * - * - *
-     * Required. Email address of the contact.
-     * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The email. - */ - java.lang.String getEmail(); - /** - * - * - *
-     * Required. Email address of the contact.
-     * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for email. - */ - com.google.protobuf.ByteString getEmailBytes(); - - /** - * - * - *
-     * Required. Phone number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The phoneNumber. - */ - java.lang.String getPhoneNumber(); - /** - * - * - *
-     * Required. Phone number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for phoneNumber. - */ - com.google.protobuf.ByteString getPhoneNumberBytes(); - - /** - * - * - *
-     * Fax number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string fax_number = 4; - * - * @return The faxNumber. - */ - java.lang.String getFaxNumber(); - /** - * - * - *
-     * Fax number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string fax_number = 4; - * - * @return The bytes for faxNumber. - */ - com.google.protobuf.ByteString getFaxNumberBytes(); - } - /** - * - * - *
-   * Details required for a contact associated with a `Registration`.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ContactSettings.Contact} - */ - public static final class Contact extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.ContactSettings.Contact) - ContactOrBuilder { - private static final long serialVersionUID = 0L; - // Use Contact.newBuilder() to construct. - private Contact(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Contact() { - email_ = ""; - phoneNumber_ = ""; - faxNumber_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Contact(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ContactSettings_Contact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ContactSettings_Contact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.class, - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.Builder.class); - } - - public static final int POSTAL_ADDRESS_FIELD_NUMBER = 1; - private com.google.type.PostalAddress postalAddress_; - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the postalAddress field is set. - */ - @java.lang.Override - public boolean hasPostalAddress() { - return postalAddress_ != null; - } - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The postalAddress. - */ - @java.lang.Override - public com.google.type.PostalAddress getPostalAddress() { - return postalAddress_ == null - ? com.google.type.PostalAddress.getDefaultInstance() - : postalAddress_; - } - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { - return getPostalAddress(); - } - - public static final int EMAIL_FIELD_NUMBER = 2; - private volatile java.lang.Object email_; - /** - * - * - *
-     * Required. Email address of the contact.
-     * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The email. - */ - @java.lang.Override - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - email_ = s; - return s; - } - } - /** - * - * - *
-     * Required. Email address of the contact.
-     * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for email. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PHONE_NUMBER_FIELD_NUMBER = 3; - private volatile java.lang.Object phoneNumber_; - /** - * - * - *
-     * Required. Phone number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The phoneNumber. - */ - @java.lang.Override - public java.lang.String getPhoneNumber() { - java.lang.Object ref = phoneNumber_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - phoneNumber_ = s; - return s; - } - } - /** - * - * - *
-     * Required. Phone number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for phoneNumber. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPhoneNumberBytes() { - java.lang.Object ref = phoneNumber_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - phoneNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FAX_NUMBER_FIELD_NUMBER = 4; - private volatile java.lang.Object faxNumber_; - /** - * - * - *
-     * Fax number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string fax_number = 4; - * - * @return The faxNumber. - */ - @java.lang.Override - public java.lang.String getFaxNumber() { - java.lang.Object ref = faxNumber_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - faxNumber_ = s; - return s; - } - } - /** - * - * - *
-     * Fax number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string fax_number = 4; - * - * @return The bytes for faxNumber. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFaxNumberBytes() { - java.lang.Object ref = faxNumber_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - faxNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (postalAddress_ != null) { - output.writeMessage(1, getPostalAddress()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, email_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumber_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, phoneNumber_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(faxNumber_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, faxNumber_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (postalAddress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPostalAddress()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumber_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, phoneNumber_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(faxNumber_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, faxNumber_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.ContactSettings.Contact)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.ContactSettings.Contact other = - (com.google.cloud.domains.v1alpha2.ContactSettings.Contact) obj; - - if (hasPostalAddress() != other.hasPostalAddress()) return false; - if (hasPostalAddress()) { - if (!getPostalAddress().equals(other.getPostalAddress())) return false; - } - if (!getEmail().equals(other.getEmail())) return false; - if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; - if (!getFaxNumber().equals(other.getFaxNumber())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPostalAddress()) { - hash = (37 * hash) + POSTAL_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getPostalAddress().hashCode(); - } - hash = (37 * hash) + EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getEmail().hashCode(); - hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getPhoneNumber().hashCode(); - hash = (37 * hash) + FAX_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getFaxNumber().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings.Contact parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings.Contact parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings.Contact parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings.Contact parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings.Contact parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings.Contact parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings.Contact parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings.Contact parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings.Contact parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings.Contact parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings.Contact parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings.Contact parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.ContactSettings.Contact prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Details required for a contact associated with a `Registration`.
-     * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ContactSettings.Contact} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.ContactSettings.Contact) - com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ContactSettings_Contact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ContactSettings_Contact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.class, - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.ContactSettings.Contact.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (postalAddressBuilder_ == null) { - postalAddress_ = null; - } else { - postalAddress_ = null; - postalAddressBuilder_ = null; - } - email_ = ""; - - phoneNumber_ = ""; - - faxNumber_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ContactSettings_Contact_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettings.Contact getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.ContactSettings.Contact.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettings.Contact build() { - com.google.cloud.domains.v1alpha2.ContactSettings.Contact result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettings.Contact buildPartial() { - com.google.cloud.domains.v1alpha2.ContactSettings.Contact result = - new com.google.cloud.domains.v1alpha2.ContactSettings.Contact(this); - if (postalAddressBuilder_ == null) { - result.postalAddress_ = postalAddress_; - } else { - result.postalAddress_ = postalAddressBuilder_.build(); - } - result.email_ = email_; - result.phoneNumber_ = phoneNumber_; - result.faxNumber_ = faxNumber_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.ContactSettings.Contact) { - return mergeFrom((com.google.cloud.domains.v1alpha2.ContactSettings.Contact) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.ContactSettings.Contact other) { - if (other == com.google.cloud.domains.v1alpha2.ContactSettings.Contact.getDefaultInstance()) - return this; - if (other.hasPostalAddress()) { - mergePostalAddress(other.getPostalAddress()); - } - if (!other.getEmail().isEmpty()) { - email_ = other.email_; - onChanged(); - } - if (!other.getPhoneNumber().isEmpty()) { - phoneNumber_ = other.phoneNumber_; - onChanged(); - } - if (!other.getFaxNumber().isEmpty()) { - faxNumber_ = other.faxNumber_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getPostalAddressFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - email_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - phoneNumber_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - faxNumber_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.type.PostalAddress postalAddress_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.PostalAddress, - com.google.type.PostalAddress.Builder, - com.google.type.PostalAddressOrBuilder> - postalAddressBuilder_; - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the postalAddress field is set. - */ - public boolean hasPostalAddress() { - return postalAddressBuilder_ != null || postalAddress_ != null; - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The postalAddress. - */ - public com.google.type.PostalAddress getPostalAddress() { - if (postalAddressBuilder_ == null) { - return postalAddress_ == null - ? com.google.type.PostalAddress.getDefaultInstance() - : postalAddress_; - } else { - return postalAddressBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPostalAddress(com.google.type.PostalAddress value) { - if (postalAddressBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - postalAddress_ = value; - onChanged(); - } else { - postalAddressBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPostalAddress(com.google.type.PostalAddress.Builder builderForValue) { - if (postalAddressBuilder_ == null) { - postalAddress_ = builderForValue.build(); - onChanged(); - } else { - postalAddressBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergePostalAddress(com.google.type.PostalAddress value) { - if (postalAddressBuilder_ == null) { - if (postalAddress_ != null) { - postalAddress_ = - com.google.type.PostalAddress.newBuilder(postalAddress_) - .mergeFrom(value) - .buildPartial(); - } else { - postalAddress_ = value; - } - onChanged(); - } else { - postalAddressBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearPostalAddress() { - if (postalAddressBuilder_ == null) { - postalAddress_ = null; - onChanged(); - } else { - postalAddress_ = null; - postalAddressBuilder_ = null; - } - - return this; - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.type.PostalAddress.Builder getPostalAddressBuilder() { - - onChanged(); - return getPostalAddressFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { - if (postalAddressBuilder_ != null) { - return postalAddressBuilder_.getMessageOrBuilder(); - } else { - return postalAddress_ == null - ? com.google.type.PostalAddress.getDefaultInstance() - : postalAddress_; - } - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.PostalAddress, - com.google.type.PostalAddress.Builder, - com.google.type.PostalAddressOrBuilder> - getPostalAddressFieldBuilder() { - if (postalAddressBuilder_ == null) { - postalAddressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.PostalAddress, - com.google.type.PostalAddress.Builder, - com.google.type.PostalAddressOrBuilder>( - getPostalAddress(), getParentForChildren(), isClean()); - postalAddress_ = null; - } - return postalAddressBuilder_; - } - - private java.lang.Object email_ = ""; - /** - * - * - *
-       * Required. Email address of the contact.
-       * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The email. - */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - email_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Required. Email address of the contact.
-       * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for email. - */ - public com.google.protobuf.ByteString getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Required. Email address of the contact.
-       * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The email to set. - * @return This builder for chaining. - */ - public Builder setEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - email_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Email address of the contact.
-       * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearEmail() { - - email_ = getDefaultInstance().getEmail(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Email address of the contact.
-       * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for email to set. - * @return This builder for chaining. - */ - public Builder setEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - email_ = value; - onChanged(); - return this; - } - - private java.lang.Object phoneNumber_ = ""; - /** - * - * - *
-       * Required. Phone number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The phoneNumber. - */ - public java.lang.String getPhoneNumber() { - java.lang.Object ref = phoneNumber_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - phoneNumber_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Required. Phone number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for phoneNumber. - */ - public com.google.protobuf.ByteString getPhoneNumberBytes() { - java.lang.Object ref = phoneNumber_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - phoneNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Required. Phone number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The phoneNumber to set. - * @return This builder for chaining. - */ - public Builder setPhoneNumber(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - phoneNumber_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Phone number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearPhoneNumber() { - - phoneNumber_ = getDefaultInstance().getPhoneNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Phone number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for phoneNumber to set. - * @return This builder for chaining. - */ - public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - phoneNumber_ = value; - onChanged(); - return this; - } - - private java.lang.Object faxNumber_ = ""; - /** - * - * - *
-       * Fax number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string fax_number = 4; - * - * @return The faxNumber. - */ - public java.lang.String getFaxNumber() { - java.lang.Object ref = faxNumber_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - faxNumber_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Fax number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string fax_number = 4; - * - * @return The bytes for faxNumber. - */ - public com.google.protobuf.ByteString getFaxNumberBytes() { - java.lang.Object ref = faxNumber_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - faxNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Fax number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string fax_number = 4; - * - * @param value The faxNumber to set. - * @return This builder for chaining. - */ - public Builder setFaxNumber(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - faxNumber_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Fax number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string fax_number = 4; - * - * @return This builder for chaining. - */ - public Builder clearFaxNumber() { - - faxNumber_ = getDefaultInstance().getFaxNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Fax number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string fax_number = 4; - * - * @param value The bytes for faxNumber to set. - * @return This builder for chaining. - */ - public Builder setFaxNumberBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - faxNumber_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.ContactSettings.Contact) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.ContactSettings.Contact) - private static final com.google.cloud.domains.v1alpha2.ContactSettings.Contact DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.ContactSettings.Contact(); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings.Contact getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Contact parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettings.Contact getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int PRIVACY_FIELD_NUMBER = 1; - private int privacy_; - /** - * - * - *
-   * Required. Privacy setting for the contacts associated with the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for privacy. - */ - @java.lang.Override - public int getPrivacyValue() { - return privacy_; - } - /** - * - * - *
-   * Required. Privacy setting for the contacts associated with the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The privacy. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactPrivacy getPrivacy() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.ContactPrivacy result = - com.google.cloud.domains.v1alpha2.ContactPrivacy.valueOf(privacy_); - return result == null ? com.google.cloud.domains.v1alpha2.ContactPrivacy.UNRECOGNIZED : result; - } - - public static final int REGISTRANT_CONTACT_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1alpha2.ContactSettings.Contact registrantContact_; - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registrantContact field is set. - */ - @java.lang.Override - public boolean hasRegistrantContact() { - return registrantContact_ != null; - } - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registrantContact. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettings.Contact getRegistrantContact() { - return registrantContact_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.Contact.getDefaultInstance() - : registrantContact_; - } - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder - getRegistrantContactOrBuilder() { - return getRegistrantContact(); - } - - public static final int ADMIN_CONTACT_FIELD_NUMBER = 3; - private com.google.cloud.domains.v1alpha2.ContactSettings.Contact adminContact_; - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the adminContact field is set. - */ - @java.lang.Override - public boolean hasAdminContact() { - return adminContact_ != null; - } - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The adminContact. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettings.Contact getAdminContact() { - return adminContact_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.Contact.getDefaultInstance() - : adminContact_; - } - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder - getAdminContactOrBuilder() { - return getAdminContact(); - } - - public static final int TECHNICAL_CONTACT_FIELD_NUMBER = 4; - private com.google.cloud.domains.v1alpha2.ContactSettings.Contact technicalContact_; - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the technicalContact field is set. - */ - @java.lang.Override - public boolean hasTechnicalContact() { - return technicalContact_ != null; - } - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The technicalContact. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettings.Contact getTechnicalContact() { - return technicalContact_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.Contact.getDefaultInstance() - : technicalContact_; - } - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder - getTechnicalContactOrBuilder() { - return getTechnicalContact(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (privacy_ - != com.google.cloud.domains.v1alpha2.ContactPrivacy.CONTACT_PRIVACY_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, privacy_); - } - if (registrantContact_ != null) { - output.writeMessage(2, getRegistrantContact()); - } - if (adminContact_ != null) { - output.writeMessage(3, getAdminContact()); - } - if (technicalContact_ != null) { - output.writeMessage(4, getTechnicalContact()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (privacy_ - != com.google.cloud.domains.v1alpha2.ContactPrivacy.CONTACT_PRIVACY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, privacy_); - } - if (registrantContact_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRegistrantContact()); - } - if (adminContact_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAdminContact()); - } - if (technicalContact_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTechnicalContact()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.ContactSettings)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.ContactSettings other = - (com.google.cloud.domains.v1alpha2.ContactSettings) obj; - - if (privacy_ != other.privacy_) return false; - if (hasRegistrantContact() != other.hasRegistrantContact()) return false; - if (hasRegistrantContact()) { - if (!getRegistrantContact().equals(other.getRegistrantContact())) return false; - } - if (hasAdminContact() != other.hasAdminContact()) return false; - if (hasAdminContact()) { - if (!getAdminContact().equals(other.getAdminContact())) return false; - } - if (hasTechnicalContact() != other.hasTechnicalContact()) return false; - if (hasTechnicalContact()) { - if (!getTechnicalContact().equals(other.getTechnicalContact())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PRIVACY_FIELD_NUMBER; - hash = (53 * hash) + privacy_; - if (hasRegistrantContact()) { - hash = (37 * hash) + REGISTRANT_CONTACT_FIELD_NUMBER; - hash = (53 * hash) + getRegistrantContact().hashCode(); - } - if (hasAdminContact()) { - hash = (37 * hash) + ADMIN_CONTACT_FIELD_NUMBER; - hash = (53 * hash) + getAdminContact().hashCode(); - } - if (hasTechnicalContact()) { - hash = (37 * hash) + TECHNICAL_CONTACT_FIELD_NUMBER; - hash = (53 * hash) + getTechnicalContact().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1alpha2.ContactSettings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Defines the contact information associated with a `Registration`.
-   * [ICANN](https://icann.org/) requires all domain names to have associated
-   * contact information. The `registrant_contact` is considered the
-   * domain's legal owner, and often the other contacts are identical.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ContactSettings} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.ContactSettings) - com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ContactSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ContactSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ContactSettings.class, - com.google.cloud.domains.v1alpha2.ContactSettings.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.ContactSettings.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - privacy_ = 0; - - if (registrantContactBuilder_ == null) { - registrantContact_ = null; - } else { - registrantContact_ = null; - registrantContactBuilder_ = null; - } - if (adminContactBuilder_ == null) { - adminContact_ = null; - } else { - adminContact_ = null; - adminContactBuilder_ = null; - } - if (technicalContactBuilder_ == null) { - technicalContact_ = null; - } else { - technicalContact_ = null; - technicalContactBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ContactSettings_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettings getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.ContactSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettings build() { - com.google.cloud.domains.v1alpha2.ContactSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettings buildPartial() { - com.google.cloud.domains.v1alpha2.ContactSettings result = - new com.google.cloud.domains.v1alpha2.ContactSettings(this); - result.privacy_ = privacy_; - if (registrantContactBuilder_ == null) { - result.registrantContact_ = registrantContact_; - } else { - result.registrantContact_ = registrantContactBuilder_.build(); - } - if (adminContactBuilder_ == null) { - result.adminContact_ = adminContact_; - } else { - result.adminContact_ = adminContactBuilder_.build(); - } - if (technicalContactBuilder_ == null) { - result.technicalContact_ = technicalContact_; - } else { - result.technicalContact_ = technicalContactBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.ContactSettings) { - return mergeFrom((com.google.cloud.domains.v1alpha2.ContactSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.ContactSettings other) { - if (other == com.google.cloud.domains.v1alpha2.ContactSettings.getDefaultInstance()) - return this; - if (other.privacy_ != 0) { - setPrivacyValue(other.getPrivacyValue()); - } - if (other.hasRegistrantContact()) { - mergeRegistrantContact(other.getRegistrantContact()); - } - if (other.hasAdminContact()) { - mergeAdminContact(other.getAdminContact()); - } - if (other.hasTechnicalContact()) { - mergeTechnicalContact(other.getTechnicalContact()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - privacy_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getRegistrantContactFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getAdminContactFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage( - getTechnicalContactFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int privacy_ = 0; - /** - * - * - *
-     * Required. Privacy setting for the contacts associated with the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for privacy. - */ - @java.lang.Override - public int getPrivacyValue() { - return privacy_; - } - /** - * - * - *
-     * Required. Privacy setting for the contacts associated with the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for privacy to set. - * @return This builder for chaining. - */ - public Builder setPrivacyValue(int value) { - - privacy_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Privacy setting for the contacts associated with the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The privacy. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactPrivacy getPrivacy() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.ContactPrivacy result = - com.google.cloud.domains.v1alpha2.ContactPrivacy.valueOf(privacy_); - return result == null - ? com.google.cloud.domains.v1alpha2.ContactPrivacy.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Required. Privacy setting for the contacts associated with the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The privacy to set. - * @return This builder for chaining. - */ - public Builder setPrivacy(com.google.cloud.domains.v1alpha2.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - - privacy_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Privacy setting for the contacts associated with the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearPrivacy() { - - privacy_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1alpha2.ContactSettings.Contact registrantContact_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings.Contact, - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder> - registrantContactBuilder_; - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registrantContact field is set. - */ - public boolean hasRegistrantContact() { - return registrantContactBuilder_ != null || registrantContact_ != null; - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registrantContact. - */ - public com.google.cloud.domains.v1alpha2.ContactSettings.Contact getRegistrantContact() { - if (registrantContactBuilder_ == null) { - return registrantContact_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.Contact.getDefaultInstance() - : registrantContact_; - } else { - return registrantContactBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistrantContact( - com.google.cloud.domains.v1alpha2.ContactSettings.Contact value) { - if (registrantContactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - registrantContact_ = value; - onChanged(); - } else { - registrantContactBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistrantContact( - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.Builder builderForValue) { - if (registrantContactBuilder_ == null) { - registrantContact_ = builderForValue.build(); - onChanged(); - } else { - registrantContactBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRegistrantContact( - com.google.cloud.domains.v1alpha2.ContactSettings.Contact value) { - if (registrantContactBuilder_ == null) { - if (registrantContact_ != null) { - registrantContact_ = - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.newBuilder( - registrantContact_) - .mergeFrom(value) - .buildPartial(); - } else { - registrantContact_ = value; - } - onChanged(); - } else { - registrantContactBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRegistrantContact() { - if (registrantContactBuilder_ == null) { - registrantContact_ = null; - onChanged(); - } else { - registrantContact_ = null; - registrantContactBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1alpha2.ContactSettings.Contact.Builder - getRegistrantContactBuilder() { - - onChanged(); - return getRegistrantContactFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder - getRegistrantContactOrBuilder() { - if (registrantContactBuilder_ != null) { - return registrantContactBuilder_.getMessageOrBuilder(); - } else { - return registrantContact_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.Contact.getDefaultInstance() - : registrantContact_; - } - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings.Contact, - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder> - getRegistrantContactFieldBuilder() { - if (registrantContactBuilder_ == null) { - registrantContactBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings.Contact, - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder>( - getRegistrantContact(), getParentForChildren(), isClean()); - registrantContact_ = null; - } - return registrantContactBuilder_; - } - - private com.google.cloud.domains.v1alpha2.ContactSettings.Contact adminContact_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings.Contact, - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder> - adminContactBuilder_; - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the adminContact field is set. - */ - public boolean hasAdminContact() { - return adminContactBuilder_ != null || adminContact_ != null; - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The adminContact. - */ - public com.google.cloud.domains.v1alpha2.ContactSettings.Contact getAdminContact() { - if (adminContactBuilder_ == null) { - return adminContact_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.Contact.getDefaultInstance() - : adminContact_; - } else { - return adminContactBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAdminContact( - com.google.cloud.domains.v1alpha2.ContactSettings.Contact value) { - if (adminContactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - adminContact_ = value; - onChanged(); - } else { - adminContactBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAdminContact( - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.Builder builderForValue) { - if (adminContactBuilder_ == null) { - adminContact_ = builderForValue.build(); - onChanged(); - } else { - adminContactBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeAdminContact( - com.google.cloud.domains.v1alpha2.ContactSettings.Contact value) { - if (adminContactBuilder_ == null) { - if (adminContact_ != null) { - adminContact_ = - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.newBuilder(adminContact_) - .mergeFrom(value) - .buildPartial(); - } else { - adminContact_ = value; - } - onChanged(); - } else { - adminContactBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearAdminContact() { - if (adminContactBuilder_ == null) { - adminContact_ = null; - onChanged(); - } else { - adminContact_ = null; - adminContactBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1alpha2.ContactSettings.Contact.Builder - getAdminContactBuilder() { - - onChanged(); - return getAdminContactFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder - getAdminContactOrBuilder() { - if (adminContactBuilder_ != null) { - return adminContactBuilder_.getMessageOrBuilder(); - } else { - return adminContact_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.Contact.getDefaultInstance() - : adminContact_; - } - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings.Contact, - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder> - getAdminContactFieldBuilder() { - if (adminContactBuilder_ == null) { - adminContactBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings.Contact, - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder>( - getAdminContact(), getParentForChildren(), isClean()); - adminContact_ = null; - } - return adminContactBuilder_; - } - - private com.google.cloud.domains.v1alpha2.ContactSettings.Contact technicalContact_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings.Contact, - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder> - technicalContactBuilder_; - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the technicalContact field is set. - */ - public boolean hasTechnicalContact() { - return technicalContactBuilder_ != null || technicalContact_ != null; - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The technicalContact. - */ - public com.google.cloud.domains.v1alpha2.ContactSettings.Contact getTechnicalContact() { - if (technicalContactBuilder_ == null) { - return technicalContact_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.Contact.getDefaultInstance() - : technicalContact_; - } else { - return technicalContactBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTechnicalContact( - com.google.cloud.domains.v1alpha2.ContactSettings.Contact value) { - if (technicalContactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - technicalContact_ = value; - onChanged(); - } else { - technicalContactBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTechnicalContact( - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.Builder builderForValue) { - if (technicalContactBuilder_ == null) { - technicalContact_ = builderForValue.build(); - onChanged(); - } else { - technicalContactBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTechnicalContact( - com.google.cloud.domains.v1alpha2.ContactSettings.Contact value) { - if (technicalContactBuilder_ == null) { - if (technicalContact_ != null) { - technicalContact_ = - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.newBuilder( - technicalContact_) - .mergeFrom(value) - .buildPartial(); - } else { - technicalContact_ = value; - } - onChanged(); - } else { - technicalContactBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTechnicalContact() { - if (technicalContactBuilder_ == null) { - technicalContact_ = null; - onChanged(); - } else { - technicalContact_ = null; - technicalContactBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1alpha2.ContactSettings.Contact.Builder - getTechnicalContactBuilder() { - - onChanged(); - return getTechnicalContactFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder - getTechnicalContactOrBuilder() { - if (technicalContactBuilder_ != null) { - return technicalContactBuilder_.getMessageOrBuilder(); - } else { - return technicalContact_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.Contact.getDefaultInstance() - : technicalContact_; - } - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings.Contact, - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder> - getTechnicalContactFieldBuilder() { - if (technicalContactBuilder_ == null) { - technicalContactBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings.Contact, - com.google.cloud.domains.v1alpha2.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder>( - getTechnicalContact(), getParentForChildren(), isClean()); - technicalContact_ = null; - } - return technicalContactBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.ContactSettings) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.ContactSettings) - private static final com.google.cloud.domains.v1alpha2.ContactSettings DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.ContactSettings(); - } - - public static com.google.cloud.domains.v1alpha2.ContactSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContactSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ContactSettingsOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ContactSettingsOrBuilder.java deleted file mode 100644 index b6413f5d..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ContactSettingsOrBuilder.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface ContactSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.ContactSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Privacy setting for the contacts associated with the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for privacy. - */ - int getPrivacyValue(); - /** - * - * - *
-   * Required. Privacy setting for the contacts associated with the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The privacy. - */ - com.google.cloud.domains.v1alpha2.ContactPrivacy getPrivacy(); - - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registrantContact field is set. - */ - boolean hasRegistrantContact(); - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registrantContact. - */ - com.google.cloud.domains.v1alpha2.ContactSettings.Contact getRegistrantContact(); - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder - getRegistrantContactOrBuilder(); - - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the adminContact field is set. - */ - boolean hasAdminContact(); - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The adminContact. - */ - com.google.cloud.domains.v1alpha2.ContactSettings.Contact getAdminContact(); - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder getAdminContactOrBuilder(); - - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the technicalContact field is set. - */ - boolean hasTechnicalContact(); - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The technicalContact. - */ - com.google.cloud.domains.v1alpha2.ContactSettings.Contact getTechnicalContact(); - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1alpha2.ContactSettings.ContactOrBuilder getTechnicalContactOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DeleteRegistrationRequest.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DeleteRegistrationRequest.java deleted file mode 100644 index 56f3c929..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DeleteRegistrationRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Request for the `DeleteRegistration` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.DeleteRegistrationRequest} - */ -public final class DeleteRegistrationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.DeleteRegistrationRequest) - DeleteRegistrationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteRegistrationRequest.newBuilder() to construct. - private DeleteRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteRegistrationRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteRegistrationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DeleteRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DeleteRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest.class, - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the `Registration` to delete,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` to delete,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest other = - (com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `DeleteRegistration` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.DeleteRegistrationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.DeleteRegistrationRequest) - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DeleteRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DeleteRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest.class, - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DeleteRegistrationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest build() { - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest buildPartial() { - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest result = - new com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest) { - return mergeFrom((com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest other) { - if (other == com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` to delete,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to delete,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to delete,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to delete,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to delete,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.DeleteRegistrationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.DeleteRegistrationRequest) - private static final com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest(); - } - - public static com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRegistrationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DeleteRegistrationRequestOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DeleteRegistrationRequestOrBuilder.java deleted file mode 100644 index 8b2892a3..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DeleteRegistrationRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface DeleteRegistrationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.DeleteRegistrationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` to delete,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the `Registration` to delete,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DnsSettings.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DnsSettings.java deleted file mode 100644 index 06a4065b..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DnsSettings.java +++ /dev/null @@ -1,8082 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Defines the DNS configuration of a `Registration`, including name servers,
- * DNSSEC, and glue records.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.DnsSettings} - */ -public final class DnsSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.DnsSettings) - DnsSettingsOrBuilder { - private static final long serialVersionUID = 0L; - // Use DnsSettings.newBuilder() to construct. - private DnsSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DnsSettings() { - glueRecords_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DnsSettings(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.DnsSettings.class, - com.google.cloud.domains.v1alpha2.DnsSettings.Builder.class); - } - - /** - * - * - *
-   * The publication state of DS records for a `Registration`.
-   * 
- * - * Protobuf enum {@code google.cloud.domains.v1alpha2.DnsSettings.DsState} - */ - public enum DsState implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * DS state is unspecified.
-     * 
- * - * DS_STATE_UNSPECIFIED = 0; - */ - DS_STATE_UNSPECIFIED(0), - /** - * - * - *
-     * DNSSEC is disabled for this domain. No DS records for this domain are
-     * published in the parent DNS zone.
-     * 
- * - * DS_RECORDS_UNPUBLISHED = 1; - */ - DS_RECORDS_UNPUBLISHED(1), - /** - * - * - *
-     * DNSSEC is enabled for this domain. Appropriate DS records for this domain
-     * are published in the parent DNS zone. This option is valid only if the
-     * DNS zone referenced in the `Registration`'s `dns_provider` field is
-     * already DNSSEC-signed.
-     * 
- * - * DS_RECORDS_PUBLISHED = 2; - */ - DS_RECORDS_PUBLISHED(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * DS state is unspecified.
-     * 
- * - * DS_STATE_UNSPECIFIED = 0; - */ - public static final int DS_STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * DNSSEC is disabled for this domain. No DS records for this domain are
-     * published in the parent DNS zone.
-     * 
- * - * DS_RECORDS_UNPUBLISHED = 1; - */ - public static final int DS_RECORDS_UNPUBLISHED_VALUE = 1; - /** - * - * - *
-     * DNSSEC is enabled for this domain. Appropriate DS records for this domain
-     * are published in the parent DNS zone. This option is valid only if the
-     * DNS zone referenced in the `Registration`'s `dns_provider` field is
-     * already DNSSEC-signed.
-     * 
- * - * DS_RECORDS_PUBLISHED = 2; - */ - public static final int DS_RECORDS_PUBLISHED_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 DsState 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 DsState forNumber(int value) { - switch (value) { - case 0: - return DS_STATE_UNSPECIFIED; - case 1: - return DS_RECORDS_UNPUBLISHED; - case 2: - return DS_RECORDS_PUBLISHED; - 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 DsState findValueByNumber(int number) { - return DsState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DnsSettings.getDescriptor().getEnumTypes().get(0); - } - - private static final DsState[] VALUES = values(); - - public static DsState 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 DsState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1alpha2.DnsSettings.DsState) - } - - public interface CustomDnsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.DnsSettings.CustomDns) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the nameServers. - */ - java.util.List getNameServersList(); - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of nameServers. - */ - int getNameServersCount(); - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - java.lang.String getNameServers(int index); - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - com.google.protobuf.ByteString getNameServersBytes(int index); - - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - java.util.List getDsRecordsList(); - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord getDsRecords(int index); - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - int getDsRecordsCount(); - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - java.util.List - getDsRecordsOrBuilderList(); - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder( - int index); - } - /** - * - * - *
-   * Configuration for an arbitrary DNS provider.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.DnsSettings.CustomDns} - */ - public static final class CustomDns extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.DnsSettings.CustomDns) - CustomDnsOrBuilder { - private static final long serialVersionUID = 0L; - // Use CustomDns.newBuilder() to construct. - private CustomDns(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CustomDns() { - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - dsRecords_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CustomDns(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_CustomDns_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_CustomDns_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.class, - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.Builder.class); - } - - public static final int NAME_SERVERS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList nameServers_; - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_; - } - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - - public static final int DS_RECORDS_FIELD_NUMBER = 2; - private java.util.List dsRecords_; - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - @java.lang.Override - public java.util.List - getDsRecordsList() { - return dsRecords_; - } - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - @java.lang.Override - public java.util.List - getDsRecordsOrBuilderList() { - return dsRecords_; - } - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - @java.lang.Override - public int getDsRecordsCount() { - return dsRecords_.size(); - } - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord getDsRecords(int index) { - return dsRecords_.get(index); - } - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder( - int index) { - return dsRecords_.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 < nameServers_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nameServers_.getRaw(i)); - } - for (int i = 0; i < dsRecords_.size(); i++) { - output.writeMessage(2, dsRecords_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < nameServers_.size(); i++) { - dataSize += computeStringSizeNoTag(nameServers_.getRaw(i)); - } - size += dataSize; - size += 1 * getNameServersList().size(); - } - for (int i = 0; i < dsRecords_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dsRecords_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns other = - (com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns) obj; - - if (!getNameServersList().equals(other.getNameServersList())) return false; - if (!getDsRecordsList().equals(other.getDsRecordsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNameServersCount() > 0) { - hash = (37 * hash) + NAME_SERVERS_FIELD_NUMBER; - hash = (53 * hash) + getNameServersList().hashCode(); - } - if (getDsRecordsCount() > 0) { - hash = (37 * hash) + DS_RECORDS_FIELD_NUMBER; - hash = (53 * hash) + getDsRecordsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 an arbitrary DNS provider.
-     * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.DnsSettings.CustomDns} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.DnsSettings.CustomDns) - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDnsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_CustomDns_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_CustomDns_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.class, - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (dsRecordsBuilder_ == null) { - dsRecords_ = java.util.Collections.emptyList(); - } else { - dsRecords_ = null; - dsRecordsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_CustomDns_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns build() { - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns buildPartial() { - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns result = - new com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - nameServers_ = nameServers_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nameServers_ = nameServers_; - if (dsRecordsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - dsRecords_ = java.util.Collections.unmodifiableList(dsRecords_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.dsRecords_ = dsRecords_; - } else { - result.dsRecords_ = dsRecordsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns) { - return mergeFrom((com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns other) { - if (other == com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.getDefaultInstance()) - return this; - if (!other.nameServers_.isEmpty()) { - if (nameServers_.isEmpty()) { - nameServers_ = other.nameServers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNameServersIsMutable(); - nameServers_.addAll(other.nameServers_); - } - onChanged(); - } - if (dsRecordsBuilder_ == null) { - if (!other.dsRecords_.isEmpty()) { - if (dsRecords_.isEmpty()) { - dsRecords_ = other.dsRecords_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDsRecordsIsMutable(); - dsRecords_.addAll(other.dsRecords_); - } - onChanged(); - } - } else { - if (!other.dsRecords_.isEmpty()) { - if (dsRecordsBuilder_.isEmpty()) { - dsRecordsBuilder_.dispose(); - dsRecordsBuilder_ = null; - dsRecords_ = other.dsRecords_; - bitField0_ = (bitField0_ & ~0x00000002); - dsRecordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDsRecordsFieldBuilder() - : null; - } else { - dsRecordsBuilder_.addAllMessages(other.dsRecords_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureNameServersIsMutable(); - nameServers_.add(s); - break; - } // case 10 - case 18: - { - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord m = - input.readMessage( - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.parser(), - extensionRegistry); - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(m); - } else { - dsRecordsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList nameServers_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureNameServersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nameServers_ = new com.google.protobuf.LazyStringArrayList(nameServers_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_.getUnmodifiableView(); - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index to set the value at. - * @param value The nameServers to set. - * @return This builder for chaining. - */ - public Builder setNameServers(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServers(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param values The nameServers to add. - * @return This builder for chaining. - */ - public Builder addAllNameServers(java.lang.Iterable values) { - ensureNameServersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nameServers_); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearNameServers() { - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes of the nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServersBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - - private java.util.List dsRecords_ = - java.util.Collections.emptyList(); - - private void ensureDsRecordsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - dsRecords_ = - new java.util.ArrayList( - dsRecords_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecordOrBuilder> - dsRecordsBuilder_; - - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public java.util.List - getDsRecordsList() { - if (dsRecordsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dsRecords_); - } else { - return dsRecordsBuilder_.getMessageList(); - } - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public int getDsRecordsCount() { - if (dsRecordsBuilder_ == null) { - return dsRecords_.size(); - } else { - return dsRecordsBuilder_.getCount(); - } - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord getDsRecords(int index) { - if (dsRecordsBuilder_ == null) { - return dsRecords_.get(index); - } else { - return dsRecordsBuilder_.getMessage(index); - } - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public Builder setDsRecords( - int index, com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.set(index, value); - onChanged(); - } else { - dsRecordsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public Builder setDsRecords( - int index, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.set(index, builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public Builder addDsRecords(com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.add(value); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public Builder addDsRecords( - int index, com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.add(index, value); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public Builder addDsRecords( - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public Builder addDsRecords( - int index, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(index, builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public Builder addAllDsRecords( - java.lang.Iterable - values) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dsRecords_); - onChanged(); - } else { - dsRecordsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public Builder clearDsRecords() { - if (dsRecordsBuilder_ == null) { - dsRecords_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - dsRecordsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public Builder removeDsRecords(int index) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.remove(index); - onChanged(); - } else { - dsRecordsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder getDsRecordsBuilder( - int index) { - return getDsRecordsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder( - int index) { - if (dsRecordsBuilder_ == null) { - return dsRecords_.get(index); - } else { - return dsRecordsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public java.util.List< - ? extends com.google.cloud.domains.v1alpha2.DnsSettings.DsRecordOrBuilder> - getDsRecordsOrBuilderList() { - if (dsRecordsBuilder_ != null) { - return dsRecordsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dsRecords_); - } - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder addDsRecordsBuilder() { - return getDsRecordsFieldBuilder() - .addBuilder( - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.getDefaultInstance()); - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder addDsRecordsBuilder( - int index) { - return getDsRecordsFieldBuilder() - .addBuilder( - index, com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.getDefaultInstance()); - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2; - */ - public java.util.List - getDsRecordsBuilderList() { - return getDsRecordsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecordOrBuilder> - getDsRecordsFieldBuilder() { - if (dsRecordsBuilder_ == null) { - dsRecordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecordOrBuilder>( - dsRecords_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - dsRecords_ = null; - } - return dsRecordsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.DnsSettings.CustomDns) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.DnsSettings.CustomDns) - private static final com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns(); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomDns parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface GoogleDomainsDnsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the nameServers. - */ - java.util.List getNameServersList(); - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of nameServers. - */ - int getNameServersCount(); - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - java.lang.String getNameServers(int index); - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - com.google.protobuf.ByteString getNameServersBytes(int index); - - /** - * - * - *
-     * Required. The state of DS records for this domain. Used to enable or disable
-     * automatic DNSSEC.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for dsState. - */ - int getDsStateValue(); - /** - * - * - *
-     * Required. The state of DS records for this domain. Used to enable or disable
-     * automatic DNSSEC.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dsState. - */ - com.google.cloud.domains.v1alpha2.DnsSettings.DsState getDsState(); - - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getDsRecordsList(); - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord getDsRecords(int index); - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getDsRecordsCount(); - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getDsRecordsOrBuilderList(); - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder( - int index); - } - /** - * - * - *
-   * Configuration for using the free DNS zone provided by Google Domains as a
-   * `Registration`'s `dns_provider`. You cannot configure the DNS zone itself
-   * using the API. To configure the DNS zone, go to
-   * [Google Domains](https://domains.google/).
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns} - */ - public static final class GoogleDomainsDns extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns) - GoogleDomainsDnsOrBuilder { - private static final long serialVersionUID = 0L; - // Use GoogleDomainsDns.newBuilder() to construct. - private GoogleDomainsDns(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GoogleDomainsDns() { - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - dsState_ = 0; - dsRecords_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GoogleDomainsDns(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_GoogleDomainsDns_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_GoogleDomainsDns_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.class, - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.Builder.class); - } - - public static final int NAME_SERVERS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList nameServers_; - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_; - } - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - - public static final int DS_STATE_FIELD_NUMBER = 2; - private int dsState_; - /** - * - * - *
-     * Required. The state of DS records for this domain. Used to enable or disable
-     * automatic DNSSEC.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for dsState. - */ - @java.lang.Override - public int getDsStateValue() { - return dsState_; - } - /** - * - * - *
-     * Required. The state of DS records for this domain. Used to enable or disable
-     * automatic DNSSEC.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dsState. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.DsState getDsState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.DnsSettings.DsState result = - com.google.cloud.domains.v1alpha2.DnsSettings.DsState.valueOf(dsState_); - return result == null - ? com.google.cloud.domains.v1alpha2.DnsSettings.DsState.UNRECOGNIZED - : result; - } - - public static final int DS_RECORDS_FIELD_NUMBER = 3; - private java.util.List dsRecords_; - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getDsRecordsList() { - return dsRecords_; - } - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getDsRecordsOrBuilderList() { - return dsRecords_; - } - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getDsRecordsCount() { - return dsRecords_.size(); - } - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord getDsRecords(int index) { - return dsRecords_.get(index); - } - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder( - int index) { - return dsRecords_.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 < nameServers_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nameServers_.getRaw(i)); - } - if (dsState_ - != com.google.cloud.domains.v1alpha2.DnsSettings.DsState.DS_STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, dsState_); - } - for (int i = 0; i < dsRecords_.size(); i++) { - output.writeMessage(3, dsRecords_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < nameServers_.size(); i++) { - dataSize += computeStringSizeNoTag(nameServers_.getRaw(i)); - } - size += dataSize; - size += 1 * getNameServersList().size(); - } - if (dsState_ - != com.google.cloud.domains.v1alpha2.DnsSettings.DsState.DS_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, dsState_); - } - for (int i = 0; i < dsRecords_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, dsRecords_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns other = - (com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns) obj; - - if (!getNameServersList().equals(other.getNameServersList())) return false; - if (dsState_ != other.dsState_) return false; - if (!getDsRecordsList().equals(other.getDsRecordsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNameServersCount() > 0) { - hash = (37 * hash) + NAME_SERVERS_FIELD_NUMBER; - hash = (53 * hash) + getNameServersList().hashCode(); - } - hash = (37 * hash) + DS_STATE_FIELD_NUMBER; - hash = (53 * hash) + dsState_; - if (getDsRecordsCount() > 0) { - hash = (37 * hash) + DS_RECORDS_FIELD_NUMBER; - hash = (53 * hash) + getDsRecordsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 using the free DNS zone provided by Google Domains as a
-     * `Registration`'s `dns_provider`. You cannot configure the DNS zone itself
-     * using the API. To configure the DNS zone, go to
-     * [Google Domains](https://domains.google/).
-     * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns) - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDnsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_GoogleDomainsDns_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_GoogleDomainsDns_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.class, - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - dsState_ = 0; - - if (dsRecordsBuilder_ == null) { - dsRecords_ = java.util.Collections.emptyList(); - } else { - dsRecords_ = null; - dsRecordsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_GoogleDomainsDns_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns - getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns build() { - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns buildPartial() { - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns result = - new com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - nameServers_ = nameServers_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nameServers_ = nameServers_; - result.dsState_ = dsState_; - if (dsRecordsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - dsRecords_ = java.util.Collections.unmodifiableList(dsRecords_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.dsRecords_ = dsRecords_; - } else { - result.dsRecords_ = dsRecordsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns) { - return mergeFrom((com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns other) { - if (other - == com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.getDefaultInstance()) - return this; - if (!other.nameServers_.isEmpty()) { - if (nameServers_.isEmpty()) { - nameServers_ = other.nameServers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNameServersIsMutable(); - nameServers_.addAll(other.nameServers_); - } - onChanged(); - } - if (other.dsState_ != 0) { - setDsStateValue(other.getDsStateValue()); - } - if (dsRecordsBuilder_ == null) { - if (!other.dsRecords_.isEmpty()) { - if (dsRecords_.isEmpty()) { - dsRecords_ = other.dsRecords_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDsRecordsIsMutable(); - dsRecords_.addAll(other.dsRecords_); - } - onChanged(); - } - } else { - if (!other.dsRecords_.isEmpty()) { - if (dsRecordsBuilder_.isEmpty()) { - dsRecordsBuilder_.dispose(); - dsRecordsBuilder_ = null; - dsRecords_ = other.dsRecords_; - bitField0_ = (bitField0_ & ~0x00000002); - dsRecordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDsRecordsFieldBuilder() - : null; - } else { - dsRecordsBuilder_.addAllMessages(other.dsRecords_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureNameServersIsMutable(); - nameServers_.add(s); - break; - } // case 10 - case 16: - { - dsState_ = input.readEnum(); - - break; - } // case 16 - case 26: - { - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord m = - input.readMessage( - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.parser(), - extensionRegistry); - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(m); - } else { - dsRecordsBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList nameServers_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureNameServersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nameServers_ = new com.google.protobuf.LazyStringArrayList(nameServers_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_.getUnmodifiableView(); - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index to set the value at. - * @param value The nameServers to set. - * @return This builder for chaining. - */ - public Builder setNameServers(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServers(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param values The nameServers to add. - * @return This builder for chaining. - */ - public Builder addAllNameServers(java.lang.Iterable values) { - ensureNameServersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nameServers_); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearNameServers() { - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes of the nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServersBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - - private int dsState_ = 0; - /** - * - * - *
-       * Required. The state of DS records for this domain. Used to enable or disable
-       * automatic DNSSEC.
-       * 
- * - * - * .google.cloud.domains.v1alpha2.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for dsState. - */ - @java.lang.Override - public int getDsStateValue() { - return dsState_; - } - /** - * - * - *
-       * Required. The state of DS records for this domain. Used to enable or disable
-       * automatic DNSSEC.
-       * 
- * - * - * .google.cloud.domains.v1alpha2.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for dsState to set. - * @return This builder for chaining. - */ - public Builder setDsStateValue(int value) { - - dsState_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Required. The state of DS records for this domain. Used to enable or disable
-       * automatic DNSSEC.
-       * 
- * - * - * .google.cloud.domains.v1alpha2.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dsState. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.DsState getDsState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.DnsSettings.DsState result = - com.google.cloud.domains.v1alpha2.DnsSettings.DsState.valueOf(dsState_); - return result == null - ? com.google.cloud.domains.v1alpha2.DnsSettings.DsState.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Required. The state of DS records for this domain. Used to enable or disable
-       * automatic DNSSEC.
-       * 
- * - * - * .google.cloud.domains.v1alpha2.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The dsState to set. - * @return This builder for chaining. - */ - public Builder setDsState(com.google.cloud.domains.v1alpha2.DnsSettings.DsState value) { - if (value == null) { - throw new NullPointerException(); - } - - dsState_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. The state of DS records for this domain. Used to enable or disable
-       * automatic DNSSEC.
-       * 
- * - * - * .google.cloud.domains.v1alpha2.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearDsState() { - - dsState_ = 0; - onChanged(); - return this; - } - - private java.util.List dsRecords_ = - java.util.Collections.emptyList(); - - private void ensureDsRecordsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - dsRecords_ = - new java.util.ArrayList( - dsRecords_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecordOrBuilder> - dsRecordsBuilder_; - - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getDsRecordsList() { - if (dsRecordsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dsRecords_); - } else { - return dsRecordsBuilder_.getMessageList(); - } - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getDsRecordsCount() { - if (dsRecordsBuilder_ == null) { - return dsRecords_.size(); - } else { - return dsRecordsBuilder_.getCount(); - } - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord getDsRecords(int index) { - if (dsRecordsBuilder_ == null) { - return dsRecords_.get(index); - } else { - return dsRecordsBuilder_.getMessage(index); - } - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDsRecords( - int index, com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.set(index, value); - onChanged(); - } else { - dsRecordsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDsRecords( - int index, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.set(index, builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addDsRecords(com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.add(value); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addDsRecords( - int index, com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.add(index, value); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addDsRecords( - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addDsRecords( - int index, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(index, builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllDsRecords( - java.lang.Iterable - values) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dsRecords_); - onChanged(); - } else { - dsRecordsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearDsRecords() { - if (dsRecordsBuilder_ == null) { - dsRecords_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - dsRecordsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeDsRecords(int index) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.remove(index); - onChanged(); - } else { - dsRecordsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder getDsRecordsBuilder( - int index) { - return getDsRecordsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder( - int index) { - if (dsRecordsBuilder_ == null) { - return dsRecords_.get(index); - } else { - return dsRecordsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List< - ? extends com.google.cloud.domains.v1alpha2.DnsSettings.DsRecordOrBuilder> - getDsRecordsOrBuilderList() { - if (dsRecordsBuilder_ != null) { - return dsRecordsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dsRecords_); - } - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder addDsRecordsBuilder() { - return getDsRecordsFieldBuilder() - .addBuilder( - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.getDefaultInstance()); - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder addDsRecordsBuilder( - int index) { - return getDsRecordsFieldBuilder() - .addBuilder( - index, com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.getDefaultInstance()); - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getDsRecordsBuilderList() { - return getDsRecordsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecordOrBuilder> - getDsRecordsFieldBuilder() { - if (dsRecordsBuilder_ == null) { - dsRecordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecordOrBuilder>( - dsRecords_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - dsRecords_ = null; - } - return dsRecordsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns) - private static final com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns(); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GoogleDomainsDns parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface DsRecordOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.DnsSettings.DsRecord) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The key tag of the record. Must be set in range 0 -- 65535.
-     * 
- * - * int32 key_tag = 1; - * - * @return The keyTag. - */ - int getKeyTag(); - - /** - * - * - *
-     * The algorithm used to generate the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The enum numeric value on the wire for algorithm. - */ - int getAlgorithmValue(); - /** - * - * - *
-     * The algorithm used to generate the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The algorithm. - */ - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm getAlgorithm(); - - /** - * - * - *
-     * The hash function used to generate the digest of the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return The enum numeric value on the wire for digestType. - */ - int getDigestTypeValue(); - /** - * - * - *
-     * The hash function used to generate the digest of the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return The digestType. - */ - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType getDigestType(); - - /** - * - * - *
-     * The digest generated from the referenced DNSKEY.
-     * 
- * - * string digest = 4; - * - * @return The digest. - */ - java.lang.String getDigest(); - /** - * - * - *
-     * The digest generated from the referenced DNSKEY.
-     * 
- * - * string digest = 4; - * - * @return The bytes for digest. - */ - com.google.protobuf.ByteString getDigestBytes(); - } - /** - * - * - *
-   * Defines a Delegation Signer (DS) record, which is needed to enable DNSSEC
-   * for a domain. It contains a digest (hash) of a DNSKEY record that must be
-   * present in the domain's DNS zone.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.DnsSettings.DsRecord} - */ - public static final class DsRecord extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.DnsSettings.DsRecord) - DsRecordOrBuilder { - private static final long serialVersionUID = 0L; - // Use DsRecord.newBuilder() to construct. - private DsRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DsRecord() { - algorithm_ = 0; - digestType_ = 0; - digest_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DsRecord(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_DsRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_DsRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.class, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder.class); - } - - /** - * - * - *
-     * List of algorithms used to create a DNSKEY. Certain
-     * algorithms are not supported for particular domains.
-     * 
- * - * Protobuf enum {@code google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm} - */ - public enum Algorithm implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * The algorithm is unspecified.
-       * 
- * - * ALGORITHM_UNSPECIFIED = 0; - */ - ALGORITHM_UNSPECIFIED(0), - /** - * - * - *
-       * RSA/MD5. Cannot be used for new deployments.
-       * 
- * - * RSAMD5 = 1; - */ - RSAMD5(1), - /** - * - * - *
-       * Diffie-Hellman. Cannot be used for new deployments.
-       * 
- * - * DH = 2; - */ - DH(2), - /** - * - * - *
-       * DSA/SHA1. Not recommended for new deployments.
-       * 
- * - * DSA = 3; - */ - DSA(3), - /** - * - * - *
-       * ECC. Not recommended for new deployments.
-       * 
- * - * ECC = 4; - */ - ECC(4), - /** - * - * - *
-       * RSA/SHA-1. Not recommended for new deployments.
-       * 
- * - * RSASHA1 = 5; - */ - RSASHA1(5), - /** - * - * - *
-       * DSA-NSEC3-SHA1. Not recommended for new deployments.
-       * 
- * - * DSANSEC3SHA1 = 6; - */ - DSANSEC3SHA1(6), - /** - * - * - *
-       * RSA/SHA1-NSEC3-SHA1. Not recommended for new deployments.
-       * 
- * - * RSASHA1NSEC3SHA1 = 7; - */ - RSASHA1NSEC3SHA1(7), - /** - * - * - *
-       * RSA/SHA-256.
-       * 
- * - * RSASHA256 = 8; - */ - RSASHA256(8), - /** - * - * - *
-       * RSA/SHA-512.
-       * 
- * - * RSASHA512 = 10; - */ - RSASHA512(10), - /** - * - * - *
-       * GOST R 34.10-2001.
-       * 
- * - * ECCGOST = 12; - */ - ECCGOST(12), - /** - * - * - *
-       * ECDSA Curve P-256 with SHA-256.
-       * 
- * - * ECDSAP256SHA256 = 13; - */ - ECDSAP256SHA256(13), - /** - * - * - *
-       * ECDSA Curve P-384 with SHA-384.
-       * 
- * - * ECDSAP384SHA384 = 14; - */ - ECDSAP384SHA384(14), - /** - * - * - *
-       * Ed25519.
-       * 
- * - * ED25519 = 15; - */ - ED25519(15), - /** - * - * - *
-       * Ed448.
-       * 
- * - * ED448 = 16; - */ - ED448(16), - /** - * - * - *
-       * Reserved for Indirect Keys. Cannot be used for new deployments.
-       * 
- * - * INDIRECT = 252; - */ - INDIRECT(252), - /** - * - * - *
-       * Private algorithm. Cannot be used for new deployments.
-       * 
- * - * PRIVATEDNS = 253; - */ - PRIVATEDNS(253), - /** - * - * - *
-       * Private algorithm OID. Cannot be used for new deployments.
-       * 
- * - * PRIVATEOID = 254; - */ - PRIVATEOID(254), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * The algorithm is unspecified.
-       * 
- * - * ALGORITHM_UNSPECIFIED = 0; - */ - public static final int ALGORITHM_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * RSA/MD5. Cannot be used for new deployments.
-       * 
- * - * RSAMD5 = 1; - */ - public static final int RSAMD5_VALUE = 1; - /** - * - * - *
-       * Diffie-Hellman. Cannot be used for new deployments.
-       * 
- * - * DH = 2; - */ - public static final int DH_VALUE = 2; - /** - * - * - *
-       * DSA/SHA1. Not recommended for new deployments.
-       * 
- * - * DSA = 3; - */ - public static final int DSA_VALUE = 3; - /** - * - * - *
-       * ECC. Not recommended for new deployments.
-       * 
- * - * ECC = 4; - */ - public static final int ECC_VALUE = 4; - /** - * - * - *
-       * RSA/SHA-1. Not recommended for new deployments.
-       * 
- * - * RSASHA1 = 5; - */ - public static final int RSASHA1_VALUE = 5; - /** - * - * - *
-       * DSA-NSEC3-SHA1. Not recommended for new deployments.
-       * 
- * - * DSANSEC3SHA1 = 6; - */ - public static final int DSANSEC3SHA1_VALUE = 6; - /** - * - * - *
-       * RSA/SHA1-NSEC3-SHA1. Not recommended for new deployments.
-       * 
- * - * RSASHA1NSEC3SHA1 = 7; - */ - public static final int RSASHA1NSEC3SHA1_VALUE = 7; - /** - * - * - *
-       * RSA/SHA-256.
-       * 
- * - * RSASHA256 = 8; - */ - public static final int RSASHA256_VALUE = 8; - /** - * - * - *
-       * RSA/SHA-512.
-       * 
- * - * RSASHA512 = 10; - */ - public static final int RSASHA512_VALUE = 10; - /** - * - * - *
-       * GOST R 34.10-2001.
-       * 
- * - * ECCGOST = 12; - */ - public static final int ECCGOST_VALUE = 12; - /** - * - * - *
-       * ECDSA Curve P-256 with SHA-256.
-       * 
- * - * ECDSAP256SHA256 = 13; - */ - public static final int ECDSAP256SHA256_VALUE = 13; - /** - * - * - *
-       * ECDSA Curve P-384 with SHA-384.
-       * 
- * - * ECDSAP384SHA384 = 14; - */ - public static final int ECDSAP384SHA384_VALUE = 14; - /** - * - * - *
-       * Ed25519.
-       * 
- * - * ED25519 = 15; - */ - public static final int ED25519_VALUE = 15; - /** - * - * - *
-       * Ed448.
-       * 
- * - * ED448 = 16; - */ - public static final int ED448_VALUE = 16; - /** - * - * - *
-       * Reserved for Indirect Keys. Cannot be used for new deployments.
-       * 
- * - * INDIRECT = 252; - */ - public static final int INDIRECT_VALUE = 252; - /** - * - * - *
-       * Private algorithm. Cannot be used for new deployments.
-       * 
- * - * PRIVATEDNS = 253; - */ - public static final int PRIVATEDNS_VALUE = 253; - /** - * - * - *
-       * Private algorithm OID. Cannot be used for new deployments.
-       * 
- * - * PRIVATEOID = 254; - */ - public static final int PRIVATEOID_VALUE = 254; - - 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 Algorithm 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 Algorithm forNumber(int value) { - switch (value) { - case 0: - return ALGORITHM_UNSPECIFIED; - case 1: - return RSAMD5; - case 2: - return DH; - case 3: - return DSA; - case 4: - return ECC; - case 5: - return RSASHA1; - case 6: - return DSANSEC3SHA1; - case 7: - return RSASHA1NSEC3SHA1; - case 8: - return RSASHA256; - case 10: - return RSASHA512; - case 12: - return ECCGOST; - case 13: - return ECDSAP256SHA256; - case 14: - return ECDSAP384SHA384; - case 15: - return ED25519; - case 16: - return ED448; - case 252: - return INDIRECT; - case 253: - return PRIVATEDNS; - case 254: - return PRIVATEOID; - 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 Algorithm findValueByNumber(int number) { - return Algorithm.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Algorithm[] VALUES = values(); - - public static Algorithm 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 Algorithm(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm) - } - - /** - * - * - *
-     * List of hash functions that may have been used to generate a digest of a
-     * DNSKEY.
-     * 
- * - * Protobuf enum {@code google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType} - */ - public enum DigestType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * The DigestType is unspecified.
-       * 
- * - * DIGEST_TYPE_UNSPECIFIED = 0; - */ - DIGEST_TYPE_UNSPECIFIED(0), - /** - * - * - *
-       * SHA-1. Not recommended for new deployments.
-       * 
- * - * SHA1 = 1; - */ - SHA1(1), - /** - * - * - *
-       * SHA-256.
-       * 
- * - * SHA256 = 2; - */ - SHA256(2), - /** - * - * - *
-       * GOST R 34.11-94.
-       * 
- * - * GOST3411 = 3; - */ - GOST3411(3), - /** - * - * - *
-       * SHA-384.
-       * 
- * - * SHA384 = 4; - */ - SHA384(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * The DigestType is unspecified.
-       * 
- * - * DIGEST_TYPE_UNSPECIFIED = 0; - */ - public static final int DIGEST_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * SHA-1. Not recommended for new deployments.
-       * 
- * - * SHA1 = 1; - */ - public static final int SHA1_VALUE = 1; - /** - * - * - *
-       * SHA-256.
-       * 
- * - * SHA256 = 2; - */ - public static final int SHA256_VALUE = 2; - /** - * - * - *
-       * GOST R 34.11-94.
-       * 
- * - * GOST3411 = 3; - */ - public static final int GOST3411_VALUE = 3; - /** - * - * - *
-       * SHA-384.
-       * 
- * - * SHA384 = 4; - */ - public static final int SHA384_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 DigestType 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 DigestType forNumber(int value) { - switch (value) { - case 0: - return DIGEST_TYPE_UNSPECIFIED; - case 1: - return SHA1; - case 2: - return SHA256; - case 3: - return GOST3411; - case 4: - return SHA384; - 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 DigestType findValueByNumber(int number) { - return DigestType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.getDescriptor() - .getEnumTypes() - .get(1); - } - - private static final DigestType[] VALUES = values(); - - public static DigestType 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 DigestType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType) - } - - public static final int KEY_TAG_FIELD_NUMBER = 1; - private int keyTag_; - /** - * - * - *
-     * The key tag of the record. Must be set in range 0 -- 65535.
-     * 
- * - * int32 key_tag = 1; - * - * @return The keyTag. - */ - @java.lang.Override - public int getKeyTag() { - return keyTag_; - } - - public static final int ALGORITHM_FIELD_NUMBER = 2; - private int algorithm_; - /** - * - * - *
-     * The algorithm used to generate the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The enum numeric value on the wire for algorithm. - */ - @java.lang.Override - public int getAlgorithmValue() { - return algorithm_; - } - /** - * - * - *
-     * The algorithm used to generate the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The algorithm. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm getAlgorithm() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm result = - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm.valueOf(algorithm_); - return result == null - ? com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm.UNRECOGNIZED - : result; - } - - public static final int DIGEST_TYPE_FIELD_NUMBER = 3; - private int digestType_; - /** - * - * - *
-     * The hash function used to generate the digest of the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return The enum numeric value on the wire for digestType. - */ - @java.lang.Override - public int getDigestTypeValue() { - return digestType_; - } - /** - * - * - *
-     * The hash function used to generate the digest of the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return The digestType. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType getDigestType() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType result = - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType.valueOf(digestType_); - return result == null - ? com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType.UNRECOGNIZED - : result; - } - - public static final int DIGEST_FIELD_NUMBER = 4; - private volatile java.lang.Object digest_; - /** - * - * - *
-     * The digest generated from the referenced DNSKEY.
-     * 
- * - * string digest = 4; - * - * @return The digest. - */ - @java.lang.Override - public java.lang.String getDigest() { - java.lang.Object ref = digest_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - digest_ = s; - return s; - } - } - /** - * - * - *
-     * The digest generated from the referenced DNSKEY.
-     * 
- * - * string digest = 4; - * - * @return The bytes for digest. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDigestBytes() { - java.lang.Object ref = digest_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - digest_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (keyTag_ != 0) { - output.writeInt32(1, keyTag_); - } - if (algorithm_ - != com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm.ALGORITHM_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, algorithm_); - } - if (digestType_ - != com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType - .DIGEST_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(3, digestType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(digest_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, digest_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (keyTag_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, keyTag_); - } - if (algorithm_ - != com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm.ALGORITHM_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, algorithm_); - } - if (digestType_ - != com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType - .DIGEST_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, digestType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(digest_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, digest_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord other = - (com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord) obj; - - if (getKeyTag() != other.getKeyTag()) return false; - if (algorithm_ != other.algorithm_) return false; - if (digestType_ != other.digestType_) return false; - if (!getDigest().equals(other.getDigest())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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_TAG_FIELD_NUMBER; - hash = (53 * hash) + getKeyTag(); - hash = (37 * hash) + ALGORITHM_FIELD_NUMBER; - hash = (53 * hash) + algorithm_; - hash = (37 * hash) + DIGEST_TYPE_FIELD_NUMBER; - hash = (53 * hash) + digestType_; - hash = (37 * hash) + DIGEST_FIELD_NUMBER; - hash = (53 * hash) + getDigest().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Defines a Delegation Signer (DS) record, which is needed to enable DNSSEC
-     * for a domain. It contains a digest (hash) of a DNSKEY record that must be
-     * present in the domain's DNS zone.
-     * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.DnsSettings.DsRecord} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.DnsSettings.DsRecord) - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_DsRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_DsRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.class, - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - keyTag_ = 0; - - algorithm_ = 0; - - digestType_ = 0; - - digest_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_DsRecord_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord build() { - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord buildPartial() { - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord result = - new com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord(this); - result.keyTag_ = keyTag_; - result.algorithm_ = algorithm_; - result.digestType_ = digestType_; - result.digest_ = digest_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord) { - return mergeFrom((com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord other) { - if (other == com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.getDefaultInstance()) - return this; - if (other.getKeyTag() != 0) { - setKeyTag(other.getKeyTag()); - } - if (other.algorithm_ != 0) { - setAlgorithmValue(other.getAlgorithmValue()); - } - if (other.digestType_ != 0) { - setDigestTypeValue(other.getDigestTypeValue()); - } - if (!other.getDigest().isEmpty()) { - digest_ = other.digest_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - keyTag_ = input.readInt32(); - - break; - } // case 8 - case 16: - { - algorithm_ = input.readEnum(); - - break; - } // case 16 - case 24: - { - digestType_ = input.readEnum(); - - break; - } // case 24 - case 34: - { - digest_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int keyTag_; - /** - * - * - *
-       * The key tag of the record. Must be set in range 0 -- 65535.
-       * 
- * - * int32 key_tag = 1; - * - * @return The keyTag. - */ - @java.lang.Override - public int getKeyTag() { - return keyTag_; - } - /** - * - * - *
-       * The key tag of the record. Must be set in range 0 -- 65535.
-       * 
- * - * int32 key_tag = 1; - * - * @param value The keyTag to set. - * @return This builder for chaining. - */ - public Builder setKeyTag(int value) { - - keyTag_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The key tag of the record. Must be set in range 0 -- 65535.
-       * 
- * - * int32 key_tag = 1; - * - * @return This builder for chaining. - */ - public Builder clearKeyTag() { - - keyTag_ = 0; - onChanged(); - return this; - } - - private int algorithm_ = 0; - /** - * - * - *
-       * The algorithm used to generate the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The enum numeric value on the wire for algorithm. - */ - @java.lang.Override - public int getAlgorithmValue() { - return algorithm_; - } - /** - * - * - *
-       * The algorithm used to generate the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @param value The enum numeric value on the wire for algorithm to set. - * @return This builder for chaining. - */ - public Builder setAlgorithmValue(int value) { - - algorithm_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The algorithm used to generate the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The algorithm. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm getAlgorithm() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm result = - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm.valueOf(algorithm_); - return result == null - ? com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * The algorithm used to generate the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @param value The algorithm to set. - * @return This builder for chaining. - */ - public Builder setAlgorithm( - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm value) { - if (value == null) { - throw new NullPointerException(); - } - - algorithm_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * The algorithm used to generate the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return This builder for chaining. - */ - public Builder clearAlgorithm() { - - algorithm_ = 0; - onChanged(); - return this; - } - - private int digestType_ = 0; - /** - * - * - *
-       * The hash function used to generate the digest of the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * - * @return The enum numeric value on the wire for digestType. - */ - @java.lang.Override - public int getDigestTypeValue() { - return digestType_; - } - /** - * - * - *
-       * The hash function used to generate the digest of the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * - * @param value The enum numeric value on the wire for digestType to set. - * @return This builder for chaining. - */ - public Builder setDigestTypeValue(int value) { - - digestType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The hash function used to generate the digest of the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * - * @return The digestType. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType getDigestType() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType result = - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType.valueOf(digestType_); - return result == null - ? com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * The hash function used to generate the digest of the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * - * @param value The digestType to set. - * @return This builder for chaining. - */ - public Builder setDigestType( - com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType value) { - if (value == null) { - throw new NullPointerException(); - } - - digestType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * The hash function used to generate the digest of the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * - * @return This builder for chaining. - */ - public Builder clearDigestType() { - - digestType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object digest_ = ""; - /** - * - * - *
-       * The digest generated from the referenced DNSKEY.
-       * 
- * - * string digest = 4; - * - * @return The digest. - */ - public java.lang.String getDigest() { - java.lang.Object ref = digest_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - digest_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The digest generated from the referenced DNSKEY.
-       * 
- * - * string digest = 4; - * - * @return The bytes for digest. - */ - public com.google.protobuf.ByteString getDigestBytes() { - java.lang.Object ref = digest_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - digest_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The digest generated from the referenced DNSKEY.
-       * 
- * - * string digest = 4; - * - * @param value The digest to set. - * @return This builder for chaining. - */ - public Builder setDigest(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - digest_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The digest generated from the referenced DNSKEY.
-       * 
- * - * string digest = 4; - * - * @return This builder for chaining. - */ - public Builder clearDigest() { - - digest_ = getDefaultInstance().getDigest(); - onChanged(); - return this; - } - /** - * - * - *
-       * The digest generated from the referenced DNSKEY.
-       * 
- * - * string digest = 4; - * - * @param value The bytes for digest to set. - * @return This builder for chaining. - */ - public Builder setDigestBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - digest_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.DnsSettings.DsRecord) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.DnsSettings.DsRecord) - private static final com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord(); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DsRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface GlueRecordOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.DnsSettings.GlueRecord) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Required. Domain name of the host in Punycode format.
-     * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The hostName. - */ - java.lang.String getHostName(); - /** - * - * - *
-     * Required. Domain name of the host in Punycode format.
-     * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for hostName. - */ - com.google.protobuf.ByteString getHostNameBytes(); - - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @return A list containing the ipv4Addresses. - */ - java.util.List getIpv4AddressesList(); - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @return The count of ipv4Addresses. - */ - int getIpv4AddressesCount(); - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the element to return. - * @return The ipv4Addresses at the given index. - */ - java.lang.String getIpv4Addresses(int index); - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the value to return. - * @return The bytes of the ipv4Addresses at the given index. - */ - com.google.protobuf.ByteString getIpv4AddressesBytes(int index); - - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @return A list containing the ipv6Addresses. - */ - java.util.List getIpv6AddressesList(); - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @return The count of ipv6Addresses. - */ - int getIpv6AddressesCount(); - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the element to return. - * @return The ipv6Addresses at the given index. - */ - java.lang.String getIpv6Addresses(int index); - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the value to return. - * @return The bytes of the ipv6Addresses at the given index. - */ - com.google.protobuf.ByteString getIpv6AddressesBytes(int index); - } - /** - * - * - *
-   * Defines a host on your domain that is a DNS name server for your domain
-   * and/or other domains. Glue records are a way of making the IP address of a
-   * name server known, even when it serves DNS queries for its parent domain.
-   * For example, when `ns.example.com` is a name server for `example.com`, the
-   * host `ns.example.com` must have a glue record to break the circular DNS
-   * reference.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.DnsSettings.GlueRecord} - */ - public static final class GlueRecord extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.DnsSettings.GlueRecord) - GlueRecordOrBuilder { - private static final long serialVersionUID = 0L; - // Use GlueRecord.newBuilder() to construct. - private GlueRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GlueRecord() { - hostName_ = ""; - ipv4Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - ipv6Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GlueRecord(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_GlueRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_GlueRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.class, - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.Builder.class); - } - - public static final int HOST_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object hostName_; - /** - * - * - *
-     * Required. Domain name of the host in Punycode format.
-     * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The hostName. - */ - @java.lang.Override - public java.lang.String getHostName() { - java.lang.Object ref = hostName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hostName_ = s; - return s; - } - } - /** - * - * - *
-     * Required. Domain name of the host in Punycode format.
-     * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for hostName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getHostNameBytes() { - java.lang.Object ref = hostName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - hostName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IPV4_ADDRESSES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList ipv4Addresses_; - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @return A list containing the ipv4Addresses. - */ - public com.google.protobuf.ProtocolStringList getIpv4AddressesList() { - return ipv4Addresses_; - } - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @return The count of ipv4Addresses. - */ - public int getIpv4AddressesCount() { - return ipv4Addresses_.size(); - } - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the element to return. - * @return The ipv4Addresses at the given index. - */ - public java.lang.String getIpv4Addresses(int index) { - return ipv4Addresses_.get(index); - } - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the value to return. - * @return The bytes of the ipv4Addresses at the given index. - */ - public com.google.protobuf.ByteString getIpv4AddressesBytes(int index) { - return ipv4Addresses_.getByteString(index); - } - - public static final int IPV6_ADDRESSES_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList ipv6Addresses_; - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @return A list containing the ipv6Addresses. - */ - public com.google.protobuf.ProtocolStringList getIpv6AddressesList() { - return ipv6Addresses_; - } - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @return The count of ipv6Addresses. - */ - public int getIpv6AddressesCount() { - return ipv6Addresses_.size(); - } - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the element to return. - * @return The ipv6Addresses at the given index. - */ - public java.lang.String getIpv6Addresses(int index) { - return ipv6Addresses_.get(index); - } - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the value to return. - * @return The bytes of the ipv6Addresses at the given index. - */ - public com.google.protobuf.ByteString getIpv6AddressesBytes(int index) { - return ipv6Addresses_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostName_); - } - for (int i = 0; i < ipv4Addresses_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipv4Addresses_.getRaw(i)); - } - for (int i = 0; i < ipv6Addresses_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipv6Addresses_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostName_); - } - { - int dataSize = 0; - for (int i = 0; i < ipv4Addresses_.size(); i++) { - dataSize += computeStringSizeNoTag(ipv4Addresses_.getRaw(i)); - } - size += dataSize; - size += 1 * getIpv4AddressesList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < ipv6Addresses_.size(); i++) { - dataSize += computeStringSizeNoTag(ipv6Addresses_.getRaw(i)); - } - size += dataSize; - size += 1 * getIpv6AddressesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord other = - (com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord) obj; - - if (!getHostName().equals(other.getHostName())) return false; - if (!getIpv4AddressesList().equals(other.getIpv4AddressesList())) return false; - if (!getIpv6AddressesList().equals(other.getIpv6AddressesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HOST_NAME_FIELD_NUMBER; - hash = (53 * hash) + getHostName().hashCode(); - if (getIpv4AddressesCount() > 0) { - hash = (37 * hash) + IPV4_ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + getIpv4AddressesList().hashCode(); - } - if (getIpv6AddressesCount() > 0) { - hash = (37 * hash) + IPV6_ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + getIpv6AddressesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Defines a host on your domain that is a DNS name server for your domain
-     * and/or other domains. Glue records are a way of making the IP address of a
-     * name server known, even when it serves DNS queries for its parent domain.
-     * For example, when `ns.example.com` is a name server for `example.com`, the
-     * host `ns.example.com` must have a glue record to break the circular DNS
-     * reference.
-     * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.DnsSettings.GlueRecord} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.DnsSettings.GlueRecord) - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_GlueRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_GlueRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.class, - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - hostName_ = ""; - - ipv4Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - ipv6Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_GlueRecord_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord build() { - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord buildPartial() { - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord result = - new com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord(this); - int from_bitField0_ = bitField0_; - result.hostName_ = hostName_; - if (((bitField0_ & 0x00000001) != 0)) { - ipv4Addresses_ = ipv4Addresses_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.ipv4Addresses_ = ipv4Addresses_; - if (((bitField0_ & 0x00000002) != 0)) { - ipv6Addresses_ = ipv6Addresses_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.ipv6Addresses_ = ipv6Addresses_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord) { - return mergeFrom((com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord other) { - if (other == com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.getDefaultInstance()) - return this; - if (!other.getHostName().isEmpty()) { - hostName_ = other.hostName_; - onChanged(); - } - if (!other.ipv4Addresses_.isEmpty()) { - if (ipv4Addresses_.isEmpty()) { - ipv4Addresses_ = other.ipv4Addresses_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIpv4AddressesIsMutable(); - ipv4Addresses_.addAll(other.ipv4Addresses_); - } - onChanged(); - } - if (!other.ipv6Addresses_.isEmpty()) { - if (ipv6Addresses_.isEmpty()) { - ipv6Addresses_ = other.ipv6Addresses_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureIpv6AddressesIsMutable(); - ipv6Addresses_.addAll(other.ipv6Addresses_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - hostName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpv4AddressesIsMutable(); - ipv4Addresses_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpv6AddressesIsMutable(); - ipv6Addresses_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object hostName_ = ""; - /** - * - * - *
-       * Required. Domain name of the host in Punycode format.
-       * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The hostName. - */ - public java.lang.String getHostName() { - java.lang.Object ref = hostName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hostName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Required. Domain name of the host in Punycode format.
-       * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for hostName. - */ - public com.google.protobuf.ByteString getHostNameBytes() { - java.lang.Object ref = hostName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - hostName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Required. Domain name of the host in Punycode format.
-       * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The hostName to set. - * @return This builder for chaining. - */ - public Builder setHostName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - hostName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Domain name of the host in Punycode format.
-       * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearHostName() { - - hostName_ = getDefaultInstance().getHostName(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Domain name of the host in Punycode format.
-       * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for hostName to set. - * @return This builder for chaining. - */ - public Builder setHostNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - hostName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList ipv4Addresses_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureIpv4AddressesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - ipv4Addresses_ = new com.google.protobuf.LazyStringArrayList(ipv4Addresses_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @return A list containing the ipv4Addresses. - */ - public com.google.protobuf.ProtocolStringList getIpv4AddressesList() { - return ipv4Addresses_.getUnmodifiableView(); - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @return The count of ipv4Addresses. - */ - public int getIpv4AddressesCount() { - return ipv4Addresses_.size(); - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the element to return. - * @return The ipv4Addresses at the given index. - */ - public java.lang.String getIpv4Addresses(int index) { - return ipv4Addresses_.get(index); - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the value to return. - * @return The bytes of the ipv4Addresses at the given index. - */ - public com.google.protobuf.ByteString getIpv4AddressesBytes(int index) { - return ipv4Addresses_.getByteString(index); - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index to set the value at. - * @param value The ipv4Addresses to set. - * @return This builder for chaining. - */ - public Builder setIpv4Addresses(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIpv4AddressesIsMutable(); - ipv4Addresses_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param value The ipv4Addresses to add. - * @return This builder for chaining. - */ - public Builder addIpv4Addresses(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIpv4AddressesIsMutable(); - ipv4Addresses_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param values The ipv4Addresses to add. - * @return This builder for chaining. - */ - public Builder addAllIpv4Addresses(java.lang.Iterable values) { - ensureIpv4AddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipv4Addresses_); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @return This builder for chaining. - */ - public Builder clearIpv4Addresses() { - ipv4Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param value The bytes of the ipv4Addresses to add. - * @return This builder for chaining. - */ - public Builder addIpv4AddressesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIpv4AddressesIsMutable(); - ipv4Addresses_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList ipv6Addresses_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureIpv6AddressesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - ipv6Addresses_ = new com.google.protobuf.LazyStringArrayList(ipv6Addresses_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @return A list containing the ipv6Addresses. - */ - public com.google.protobuf.ProtocolStringList getIpv6AddressesList() { - return ipv6Addresses_.getUnmodifiableView(); - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @return The count of ipv6Addresses. - */ - public int getIpv6AddressesCount() { - return ipv6Addresses_.size(); - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the element to return. - * @return The ipv6Addresses at the given index. - */ - public java.lang.String getIpv6Addresses(int index) { - return ipv6Addresses_.get(index); - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the value to return. - * @return The bytes of the ipv6Addresses at the given index. - */ - public com.google.protobuf.ByteString getIpv6AddressesBytes(int index) { - return ipv6Addresses_.getByteString(index); - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index to set the value at. - * @param value The ipv6Addresses to set. - * @return This builder for chaining. - */ - public Builder setIpv6Addresses(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIpv6AddressesIsMutable(); - ipv6Addresses_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param value The ipv6Addresses to add. - * @return This builder for chaining. - */ - public Builder addIpv6Addresses(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIpv6AddressesIsMutable(); - ipv6Addresses_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param values The ipv6Addresses to add. - * @return This builder for chaining. - */ - public Builder addAllIpv6Addresses(java.lang.Iterable values) { - ensureIpv6AddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipv6Addresses_); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @return This builder for chaining. - */ - public Builder clearIpv6Addresses() { - ipv6Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param value The bytes of the ipv6Addresses to add. - * @return This builder for chaining. - */ - public Builder addIpv6AddressesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIpv6AddressesIsMutable(); - ipv6Addresses_.add(value); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.DnsSettings.GlueRecord) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.DnsSettings.GlueRecord) - private static final com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord(); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GlueRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int dnsProviderCase_ = 0; - private java.lang.Object dnsProvider_; - - public enum DnsProviderCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CUSTOM_DNS(1), - GOOGLE_DOMAINS_DNS(2), - DNSPROVIDER_NOT_SET(0); - private final int value; - - private DnsProviderCase(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 DnsProviderCase valueOf(int value) { - return forNumber(value); - } - - public static DnsProviderCase forNumber(int value) { - switch (value) { - case 1: - return CUSTOM_DNS; - case 2: - return GOOGLE_DOMAINS_DNS; - case 0: - return DNSPROVIDER_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public DnsProviderCase getDnsProviderCase() { - return DnsProviderCase.forNumber(dnsProviderCase_); - } - - public static final int CUSTOM_DNS_FIELD_NUMBER = 1; - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.CustomDns custom_dns = 1; - * - * @return Whether the customDns field is set. - */ - @java.lang.Override - public boolean hasCustomDns() { - return dnsProviderCase_ == 1; - } - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.CustomDns custom_dns = 1; - * - * @return The customDns. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns getCustomDns() { - if (dnsProviderCase_ == 1) { - return (com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns) dnsProvider_; - } - return com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.getDefaultInstance(); - } - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.CustomDns custom_dns = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.CustomDnsOrBuilder getCustomDnsOrBuilder() { - if (dnsProviderCase_ == 1) { - return (com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns) dnsProvider_; - } - return com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.getDefaultInstance(); - } - - public static final int GOOGLE_DOMAINS_DNS_FIELD_NUMBER = 2; - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * - * @return Whether the googleDomainsDns field is set. - */ - @java.lang.Override - public boolean hasGoogleDomainsDns() { - return dnsProviderCase_ == 2; - } - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * - * @return The googleDomainsDns. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns getGoogleDomainsDns() { - if (dnsProviderCase_ == 2) { - return (com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns) dnsProvider_; - } - return com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDnsOrBuilder - getGoogleDomainsDnsOrBuilder() { - if (dnsProviderCase_ == 2) { - return (com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns) dnsProvider_; - } - return com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - - public static final int GLUE_RECORDS_FIELD_NUMBER = 4; - private java.util.List glueRecords_; - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - @java.lang.Override - public java.util.List - getGlueRecordsList() { - return glueRecords_; - } - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - @java.lang.Override - public java.util.List - getGlueRecordsOrBuilderList() { - return glueRecords_; - } - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - @java.lang.Override - public int getGlueRecordsCount() { - return glueRecords_.size(); - } - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord getGlueRecords(int index) { - return glueRecords_.get(index); - } - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecordOrBuilder getGlueRecordsOrBuilder( - int index) { - return glueRecords_.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 (dnsProviderCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns) dnsProvider_); - } - if (dnsProviderCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns) dnsProvider_); - } - for (int i = 0; i < glueRecords_.size(); i++) { - output.writeMessage(4, glueRecords_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dnsProviderCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns) dnsProvider_); - } - if (dnsProviderCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns) dnsProvider_); - } - for (int i = 0; i < glueRecords_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, glueRecords_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.DnsSettings)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.DnsSettings other = - (com.google.cloud.domains.v1alpha2.DnsSettings) obj; - - if (!getGlueRecordsList().equals(other.getGlueRecordsList())) return false; - if (!getDnsProviderCase().equals(other.getDnsProviderCase())) return false; - switch (dnsProviderCase_) { - case 1: - if (!getCustomDns().equals(other.getCustomDns())) return false; - break; - case 2: - if (!getGoogleDomainsDns().equals(other.getGoogleDomainsDns())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getGlueRecordsCount() > 0) { - hash = (37 * hash) + GLUE_RECORDS_FIELD_NUMBER; - hash = (53 * hash) + getGlueRecordsList().hashCode(); - } - switch (dnsProviderCase_) { - case 1: - hash = (37 * hash) + CUSTOM_DNS_FIELD_NUMBER; - hash = (53 * hash) + getCustomDns().hashCode(); - break; - case 2: - hash = (37 * hash) + GOOGLE_DOMAINS_DNS_FIELD_NUMBER; - hash = (53 * hash) + getGoogleDomainsDns().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1alpha2.DnsSettings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Defines the DNS configuration of a `Registration`, including name servers,
-   * DNSSEC, and glue records.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.DnsSettings} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.DnsSettings) - com.google.cloud.domains.v1alpha2.DnsSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.DnsSettings.class, - com.google.cloud.domains.v1alpha2.DnsSettings.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.DnsSettings.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (customDnsBuilder_ != null) { - customDnsBuilder_.clear(); - } - if (googleDomainsDnsBuilder_ != null) { - googleDomainsDnsBuilder_.clear(); - } - if (glueRecordsBuilder_ == null) { - glueRecords_ = java.util.Collections.emptyList(); - } else { - glueRecords_ = null; - glueRecordsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - dnsProviderCase_ = 0; - dnsProvider_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_DnsSettings_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.DnsSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings build() { - com.google.cloud.domains.v1alpha2.DnsSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings buildPartial() { - com.google.cloud.domains.v1alpha2.DnsSettings result = - new com.google.cloud.domains.v1alpha2.DnsSettings(this); - int from_bitField0_ = bitField0_; - if (dnsProviderCase_ == 1) { - if (customDnsBuilder_ == null) { - result.dnsProvider_ = dnsProvider_; - } else { - result.dnsProvider_ = customDnsBuilder_.build(); - } - } - if (dnsProviderCase_ == 2) { - if (googleDomainsDnsBuilder_ == null) { - result.dnsProvider_ = dnsProvider_; - } else { - result.dnsProvider_ = googleDomainsDnsBuilder_.build(); - } - } - if (glueRecordsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - glueRecords_ = java.util.Collections.unmodifiableList(glueRecords_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.glueRecords_ = glueRecords_; - } else { - result.glueRecords_ = glueRecordsBuilder_.build(); - } - result.dnsProviderCase_ = dnsProviderCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.DnsSettings) { - return mergeFrom((com.google.cloud.domains.v1alpha2.DnsSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.DnsSettings other) { - if (other == com.google.cloud.domains.v1alpha2.DnsSettings.getDefaultInstance()) return this; - if (glueRecordsBuilder_ == null) { - if (!other.glueRecords_.isEmpty()) { - if (glueRecords_.isEmpty()) { - glueRecords_ = other.glueRecords_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureGlueRecordsIsMutable(); - glueRecords_.addAll(other.glueRecords_); - } - onChanged(); - } - } else { - if (!other.glueRecords_.isEmpty()) { - if (glueRecordsBuilder_.isEmpty()) { - glueRecordsBuilder_.dispose(); - glueRecordsBuilder_ = null; - glueRecords_ = other.glueRecords_; - bitField0_ = (bitField0_ & ~0x00000001); - glueRecordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGlueRecordsFieldBuilder() - : null; - } else { - glueRecordsBuilder_.addAllMessages(other.glueRecords_); - } - } - } - switch (other.getDnsProviderCase()) { - case CUSTOM_DNS: - { - mergeCustomDns(other.getCustomDns()); - break; - } - case GOOGLE_DOMAINS_DNS: - { - mergeGoogleDomainsDns(other.getGoogleDomainsDns()); - break; - } - case DNSPROVIDER_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getCustomDnsFieldBuilder().getBuilder(), extensionRegistry); - dnsProviderCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - getGoogleDomainsDnsFieldBuilder().getBuilder(), extensionRegistry); - dnsProviderCase_ = 2; - break; - } // case 18 - case 34: - { - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord m = - input.readMessage( - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.parser(), - extensionRegistry); - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - glueRecords_.add(m); - } else { - glueRecordsBuilder_.addMessage(m); - } - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int dnsProviderCase_ = 0; - private java.lang.Object dnsProvider_; - - public DnsProviderCase getDnsProviderCase() { - return DnsProviderCase.forNumber(dnsProviderCase_); - } - - public Builder clearDnsProvider() { - dnsProviderCase_ = 0; - dnsProvider_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns, - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.Builder, - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDnsOrBuilder> - customDnsBuilder_; - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.CustomDns custom_dns = 1; - * - * @return Whether the customDns field is set. - */ - @java.lang.Override - public boolean hasCustomDns() { - return dnsProviderCase_ == 1; - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.CustomDns custom_dns = 1; - * - * @return The customDns. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns getCustomDns() { - if (customDnsBuilder_ == null) { - if (dnsProviderCase_ == 1) { - return (com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns) dnsProvider_; - } - return com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.getDefaultInstance(); - } else { - if (dnsProviderCase_ == 1) { - return customDnsBuilder_.getMessage(); - } - return com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.getDefaultInstance(); - } - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.CustomDns custom_dns = 1; - */ - public Builder setCustomDns(com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns value) { - if (customDnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsProvider_ = value; - onChanged(); - } else { - customDnsBuilder_.setMessage(value); - } - dnsProviderCase_ = 1; - return this; - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.CustomDns custom_dns = 1; - */ - public Builder setCustomDns( - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.Builder builderForValue) { - if (customDnsBuilder_ == null) { - dnsProvider_ = builderForValue.build(); - onChanged(); - } else { - customDnsBuilder_.setMessage(builderForValue.build()); - } - dnsProviderCase_ = 1; - return this; - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.CustomDns custom_dns = 1; - */ - public Builder mergeCustomDns(com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns value) { - if (customDnsBuilder_ == null) { - if (dnsProviderCase_ == 1 - && dnsProvider_ - != com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.getDefaultInstance()) { - dnsProvider_ = - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.newBuilder( - (com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns) dnsProvider_) - .mergeFrom(value) - .buildPartial(); - } else { - dnsProvider_ = value; - } - onChanged(); - } else { - if (dnsProviderCase_ == 1) { - customDnsBuilder_.mergeFrom(value); - } else { - customDnsBuilder_.setMessage(value); - } - } - dnsProviderCase_ = 1; - return this; - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.CustomDns custom_dns = 1; - */ - public Builder clearCustomDns() { - if (customDnsBuilder_ == null) { - if (dnsProviderCase_ == 1) { - dnsProviderCase_ = 0; - dnsProvider_ = null; - onChanged(); - } - } else { - if (dnsProviderCase_ == 1) { - dnsProviderCase_ = 0; - dnsProvider_ = null; - } - customDnsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.CustomDns custom_dns = 1; - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.Builder getCustomDnsBuilder() { - return getCustomDnsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.CustomDns custom_dns = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.CustomDnsOrBuilder - getCustomDnsOrBuilder() { - if ((dnsProviderCase_ == 1) && (customDnsBuilder_ != null)) { - return customDnsBuilder_.getMessageOrBuilder(); - } else { - if (dnsProviderCase_ == 1) { - return (com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns) dnsProvider_; - } - return com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.getDefaultInstance(); - } - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.CustomDns custom_dns = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns, - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.Builder, - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDnsOrBuilder> - getCustomDnsFieldBuilder() { - if (customDnsBuilder_ == null) { - if (!(dnsProviderCase_ == 1)) { - dnsProvider_ = - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.getDefaultInstance(); - } - customDnsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns, - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns.Builder, - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDnsOrBuilder>( - (com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns) dnsProvider_, - getParentForChildren(), - isClean()); - dnsProvider_ = null; - } - dnsProviderCase_ = 1; - onChanged(); - ; - return customDnsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns, - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.Builder, - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDnsOrBuilder> - googleDomainsDnsBuilder_; - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * - * @return Whether the googleDomainsDns field is set. - */ - @java.lang.Override - public boolean hasGoogleDomainsDns() { - return dnsProviderCase_ == 2; - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * - * @return The googleDomainsDns. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns getGoogleDomainsDns() { - if (googleDomainsDnsBuilder_ == null) { - if (dnsProviderCase_ == 2) { - return (com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns) dnsProvider_; - } - return com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } else { - if (dnsProviderCase_ == 2) { - return googleDomainsDnsBuilder_.getMessage(); - } - return com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - */ - public Builder setGoogleDomainsDns( - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns value) { - if (googleDomainsDnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsProvider_ = value; - onChanged(); - } else { - googleDomainsDnsBuilder_.setMessage(value); - } - dnsProviderCase_ = 2; - return this; - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - */ - public Builder setGoogleDomainsDns( - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.Builder builderForValue) { - if (googleDomainsDnsBuilder_ == null) { - dnsProvider_ = builderForValue.build(); - onChanged(); - } else { - googleDomainsDnsBuilder_.setMessage(builderForValue.build()); - } - dnsProviderCase_ = 2; - return this; - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - */ - public Builder mergeGoogleDomainsDns( - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns value) { - if (googleDomainsDnsBuilder_ == null) { - if (dnsProviderCase_ == 2 - && dnsProvider_ - != com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns - .getDefaultInstance()) { - dnsProvider_ = - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.newBuilder( - (com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns) dnsProvider_) - .mergeFrom(value) - .buildPartial(); - } else { - dnsProvider_ = value; - } - onChanged(); - } else { - if (dnsProviderCase_ == 2) { - googleDomainsDnsBuilder_.mergeFrom(value); - } else { - googleDomainsDnsBuilder_.setMessage(value); - } - } - dnsProviderCase_ = 2; - return this; - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - */ - public Builder clearGoogleDomainsDns() { - if (googleDomainsDnsBuilder_ == null) { - if (dnsProviderCase_ == 2) { - dnsProviderCase_ = 0; - dnsProvider_ = null; - onChanged(); - } - } else { - if (dnsProviderCase_ == 2) { - dnsProviderCase_ = 0; - dnsProvider_ = null; - } - googleDomainsDnsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.Builder - getGoogleDomainsDnsBuilder() { - return getGoogleDomainsDnsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDnsOrBuilder - getGoogleDomainsDnsOrBuilder() { - if ((dnsProviderCase_ == 2) && (googleDomainsDnsBuilder_ != null)) { - return googleDomainsDnsBuilder_.getMessageOrBuilder(); - } else { - if (dnsProviderCase_ == 2) { - return (com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns) dnsProvider_; - } - return com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns, - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.Builder, - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDnsOrBuilder> - getGoogleDomainsDnsFieldBuilder() { - if (googleDomainsDnsBuilder_ == null) { - if (!(dnsProviderCase_ == 2)) { - dnsProvider_ = - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - googleDomainsDnsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns, - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.Builder, - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDnsOrBuilder>( - (com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns) dnsProvider_, - getParentForChildren(), - isClean()); - dnsProvider_ = null; - } - dnsProviderCase_ = 2; - onChanged(); - ; - return googleDomainsDnsBuilder_; - } - - private java.util.List glueRecords_ = - java.util.Collections.emptyList(); - - private void ensureGlueRecordsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - glueRecords_ = - new java.util.ArrayList( - glueRecords_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord, - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.Builder, - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecordOrBuilder> - glueRecordsBuilder_; - - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public java.util.List - getGlueRecordsList() { - if (glueRecordsBuilder_ == null) { - return java.util.Collections.unmodifiableList(glueRecords_); - } else { - return glueRecordsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public int getGlueRecordsCount() { - if (glueRecordsBuilder_ == null) { - return glueRecords_.size(); - } else { - return glueRecordsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord getGlueRecords(int index) { - if (glueRecordsBuilder_ == null) { - return glueRecords_.get(index); - } else { - return glueRecordsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder setGlueRecords( - int index, com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord value) { - if (glueRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGlueRecordsIsMutable(); - glueRecords_.set(index, value); - onChanged(); - } else { - glueRecordsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder setGlueRecords( - int index, - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.Builder builderForValue) { - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - glueRecords_.set(index, builderForValue.build()); - onChanged(); - } else { - glueRecordsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder addGlueRecords(com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord value) { - if (glueRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGlueRecordsIsMutable(); - glueRecords_.add(value); - onChanged(); - } else { - glueRecordsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder addGlueRecords( - int index, com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord value) { - if (glueRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGlueRecordsIsMutable(); - glueRecords_.add(index, value); - onChanged(); - } else { - glueRecordsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder addGlueRecords( - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.Builder builderForValue) { - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - glueRecords_.add(builderForValue.build()); - onChanged(); - } else { - glueRecordsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder addGlueRecords( - int index, - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.Builder builderForValue) { - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - glueRecords_.add(index, builderForValue.build()); - onChanged(); - } else { - glueRecordsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder addAllGlueRecords( - java.lang.Iterable - values) { - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glueRecords_); - onChanged(); - } else { - glueRecordsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder clearGlueRecords() { - if (glueRecordsBuilder_ == null) { - glueRecords_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - glueRecordsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder removeGlueRecords(int index) { - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - glueRecords_.remove(index); - onChanged(); - } else { - glueRecordsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.Builder getGlueRecordsBuilder( - int index) { - return getGlueRecordsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecordOrBuilder - getGlueRecordsOrBuilder(int index) { - if (glueRecordsBuilder_ == null) { - return glueRecords_.get(index); - } else { - return glueRecordsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public java.util.List< - ? extends com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecordOrBuilder> - getGlueRecordsOrBuilderList() { - if (glueRecordsBuilder_ != null) { - return glueRecordsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(glueRecords_); - } - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.Builder - addGlueRecordsBuilder() { - return getGlueRecordsFieldBuilder() - .addBuilder( - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.getDefaultInstance()); - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.Builder addGlueRecordsBuilder( - int index) { - return getGlueRecordsFieldBuilder() - .addBuilder( - index, com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.getDefaultInstance()); - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - public java.util.List - getGlueRecordsBuilderList() { - return getGlueRecordsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord, - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.Builder, - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecordOrBuilder> - getGlueRecordsFieldBuilder() { - if (glueRecordsBuilder_ == null) { - glueRecordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord, - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.Builder, - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecordOrBuilder>( - glueRecords_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - glueRecords_ = null; - } - return glueRecordsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.DnsSettings) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.DnsSettings) - private static final com.google.cloud.domains.v1alpha2.DnsSettings DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.DnsSettings(); - } - - public static com.google.cloud.domains.v1alpha2.DnsSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DnsSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DnsSettingsOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DnsSettingsOrBuilder.java deleted file mode 100644 index a1c2c483..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DnsSettingsOrBuilder.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface DnsSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.DnsSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.CustomDns custom_dns = 1; - * - * @return Whether the customDns field is set. - */ - boolean hasCustomDns(); - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.CustomDns custom_dns = 1; - * - * @return The customDns. - */ - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDns getCustomDns(); - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.CustomDns custom_dns = 1; - */ - com.google.cloud.domains.v1alpha2.DnsSettings.CustomDnsOrBuilder getCustomDnsOrBuilder(); - - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * - * @return Whether the googleDomainsDns field is set. - */ - boolean hasGoogleDomainsDns(); - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * - * @return The googleDomainsDns. - */ - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns getGoogleDomainsDns(); - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - */ - com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDnsOrBuilder - getGoogleDomainsDnsOrBuilder(); - - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - java.util.List getGlueRecordsList(); - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord getGlueRecords(int index); - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - int getGlueRecordsCount(); - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - java.util.List - getGlueRecordsOrBuilderList(); - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DnsSettings.GlueRecord glue_records = 4; - */ - com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecordOrBuilder getGlueRecordsOrBuilder( - int index); - - public com.google.cloud.domains.v1alpha2.DnsSettings.DnsProviderCase getDnsProviderCase(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DomainNotice.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DomainNotice.java deleted file mode 100644 index 6b7bcaf7..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DomainNotice.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Notices about special properties of certain domains.
- * 
- * - * Protobuf enum {@code google.cloud.domains.v1alpha2.DomainNotice} - */ -public enum DomainNotice implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * The notice is undefined.
-   * 
- * - * DOMAIN_NOTICE_UNSPECIFIED = 0; - */ - DOMAIN_NOTICE_UNSPECIFIED(0), - /** - * - * - *
-   * Indicates that the domain is preloaded on the HTTP Strict Transport
-   * Security list in browsers. Serving a website on such domain requires
-   * an SSL certificate. For details, see
-   * [how to get an SSL
-   * certificate](https://support.google.com/domains/answer/7638036).
-   * 
- * - * HSTS_PRELOADED = 1; - */ - HSTS_PRELOADED(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * The notice is undefined.
-   * 
- * - * DOMAIN_NOTICE_UNSPECIFIED = 0; - */ - public static final int DOMAIN_NOTICE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Indicates that the domain is preloaded on the HTTP Strict Transport
-   * Security list in browsers. Serving a website on such domain requires
-   * an SSL certificate. For details, see
-   * [how to get an SSL
-   * certificate](https://support.google.com/domains/answer/7638036).
-   * 
- * - * HSTS_PRELOADED = 1; - */ - public static final int HSTS_PRELOADED_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 DomainNotice 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 DomainNotice forNumber(int value) { - switch (value) { - case 0: - return DOMAIN_NOTICE_UNSPECIFIED; - case 1: - return HSTS_PRELOADED; - 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 DomainNotice findValueByNumber(int number) { - return DomainNotice.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto.getDescriptor().getEnumTypes().get(1); - } - - private static final DomainNotice[] VALUES = values(); - - public static DomainNotice 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 DomainNotice(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1alpha2.DomainNotice) -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DomainsProto.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DomainsProto.java deleted file mode 100644 index 951dc21b..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DomainsProto.java +++ /dev/null @@ -1,817 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public final class DomainsProto { - private DomainsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_Registration_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_Registration_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_Registration_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_Registration_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_ManagementSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_ManagementSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_DnsSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_DnsSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_DnsSettings_CustomDns_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_DnsSettings_CustomDns_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_DnsSettings_GoogleDomainsDns_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_DnsSettings_GoogleDomainsDns_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_DnsSettings_DsRecord_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_DnsSettings_DsRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_DnsSettings_GlueRecord_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_DnsSettings_GlueRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_ContactSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_ContactSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_ContactSettings_Contact_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_ContactSettings_Contact_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_SearchDomainsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_SearchDomainsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_SearchDomainsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_SearchDomainsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_RegisterDomainRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_RegisterDomainRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_TransferDomainRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_TransferDomainRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_ListRegistrationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_ListRegistrationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_ListRegistrationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_ListRegistrationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_GetRegistrationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_GetRegistrationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_UpdateRegistrationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_UpdateRegistrationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_ConfigureManagementSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_ConfigureManagementSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_ConfigureDnsSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_ConfigureDnsSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_ConfigureContactSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_ConfigureContactSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_ExportRegistrationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_ExportRegistrationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_DeleteRegistrationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_DeleteRegistrationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_RetrieveAuthorizationCodeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_RetrieveAuthorizationCodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_ResetAuthorizationCodeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_ResetAuthorizationCodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_RegisterParameters_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_RegisterParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_TransferParameters_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_TransferParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_AuthorizationCode_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_AuthorizationCode_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1alpha2_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1alpha2_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/domains/v1alpha2/domains." - + "proto\022\035google.cloud.domains.v1alpha2\032\034go" - + "ogle/api/annotations.proto\032\027google/api/c" - + "lient.proto\032\037google/api/field_behavior.p" - + "roto\032\031google/api/resource.proto\032#google/" - + "longrunning/operations.proto\032 google/pro" - + "tobuf/field_mask.proto\032\037google/protobuf/" - + "timestamp.proto\032\027google/type/money.proto" - + "\032 google/type/postal_address.proto\"\233\t\n\014R" - + "egistration\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\033\n\013domain" - + "_name\030\002 \001(\tB\006\340A\002\340A\005\0224\n\013create_time\030\003 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013exp" - + "ire_time\030\006 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\022E\n\005state\030\007 \001(\01621.google.cloud.do" - + "mains.v1alpha2.Registration.StateB\003\340A\003\022F" - + "\n\006issues\030\010 \003(\01621.google.cloud.domains.v1" - + "alpha2.Registration.IssueB\003\340A\003\022G\n\006labels" - + "\030\t \003(\01327.google.cloud.domains.v1alpha2.R" - + "egistration.LabelsEntry\022N\n\023management_se" - + "ttings\030\n \001(\01321.google.cloud.domains.v1al" - + "pha2.ManagementSettings\022@\n\014dns_settings\030" - + "\013 \001(\0132*.google.cloud.domains.v1alpha2.Dn" - + "sSettings\022M\n\020contact_settings\030\014 \001(\0132..go" - + "ogle.cloud.domains.v1alpha2.ContactSetti" - + "ngsB\003\340A\002\022U\n\030pending_contact_settings\030\r \001" - + "(\0132..google.cloud.domains.v1alpha2.Conta" - + "ctSettingsB\003\340A\003\022M\n\021supported_privacy\030\016 \003" - + "(\0162-.google.cloud.domains.v1alpha2.Conta" - + "ctPrivacyB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\245\001\n\005State\022\025\n\021STATE" - + "_UNSPECIFIED\020\000\022\030\n\024REGISTRATION_PENDING\020\001" - + "\022\027\n\023REGISTRATION_FAILED\020\002\022\024\n\020TRANSFER_PE" - + "NDING\020\003\022\023\n\017TRANSFER_FAILED\020\004\022\n\n\006ACTIVE\020\006" - + "\022\r\n\tSUSPENDED\020\007\022\014\n\010EXPORTED\020\010\"I\n\005Issue\022\025" - + "\n\021ISSUE_UNSPECIFIED\020\000\022\023\n\017CONTACT_SUPPORT" - + "\020\001\022\024\n\020UNVERIFIED_EMAIL\020\002:n\352Ak\n#domains.g" - + "oogleapis.com/Registration\022Dprojects/{pr" - + "oject}/locations/{location}/registration" - + "s/{registration}\"\235\002\n\022ManagementSettings\022" - + "\\\n\016renewal_method\030\003 \001(\0162?.google.cloud.d" - + "omains.v1alpha2.ManagementSettings.Renew" - + "alMethodB\003\340A\003\022M\n\023transfer_lock_state\030\004 \001" - + "(\01620.google.cloud.domains.v1alpha2.Trans" - + "ferLockState\"Z\n\rRenewalMethod\022\036\n\032RENEWAL" - + "_METHOD_UNSPECIFIED\020\000\022\025\n\021AUTOMATIC_RENEW" - + "AL\020\001\022\022\n\016MANUAL_RENEWAL\020\002\"\316\n\n\013DnsSettings" - + "\022J\n\ncustom_dns\030\001 \001(\01324.google.cloud.doma" - + "ins.v1alpha2.DnsSettings.CustomDnsH\000\022Y\n\022" - + "google_domains_dns\030\002 \001(\0132;.google.cloud." - + "domains.v1alpha2.DnsSettings.GoogleDomai" - + "nsDnsH\000\022K\n\014glue_records\030\004 \003(\01325.google.c" - + "loud.domains.v1alpha2.DnsSettings.GlueRe" - + "cord\032o\n\tCustomDns\022\031\n\014name_servers\030\001 \003(\tB" - + "\003\340A\002\022G\n\nds_records\030\002 \003(\01323.google.cloud." - + "domains.v1alpha2.DnsSettings.DsRecord\032\306\001" - + "\n\020GoogleDomainsDns\022\031\n\014name_servers\030\001 \003(\t" - + "B\003\340A\003\022I\n\010ds_state\030\002 \001(\01622.google.cloud.d" - + "omains.v1alpha2.DnsSettings.DsStateB\003\340A\002" - + "\022L\n\nds_records\030\003 \003(\01323.google.cloud.doma" - + "ins.v1alpha2.DnsSettings.DsRecordB\003\340A\003\032\317" - + "\004\n\010DsRecord\022\017\n\007key_tag\030\001 \001(\005\022P\n\talgorith" - + "m\030\002 \001(\0162=.google.cloud.domains.v1alpha2." - + "DnsSettings.DsRecord.Algorithm\022S\n\013digest" - + "_type\030\003 \001(\0162>.google.cloud.domains.v1alp" - + "ha2.DnsSettings.DsRecord.DigestType\022\016\n\006d" - + "igest\030\004 \001(\t\"\237\002\n\tAlgorithm\022\031\n\025ALGORITHM_U" - + "NSPECIFIED\020\000\022\n\n\006RSAMD5\020\001\022\006\n\002DH\020\002\022\007\n\003DSA\020" - + "\003\022\007\n\003ECC\020\004\022\013\n\007RSASHA1\020\005\022\020\n\014DSANSEC3SHA1\020" - + "\006\022\024\n\020RSASHA1NSEC3SHA1\020\007\022\r\n\tRSASHA256\020\010\022\r" - + "\n\tRSASHA512\020\n\022\013\n\007ECCGOST\020\014\022\023\n\017ECDSAP256S" - + "HA256\020\r\022\023\n\017ECDSAP384SHA384\020\016\022\013\n\007ED25519\020" - + "\017\022\t\n\005ED448\020\020\022\r\n\010INDIRECT\020\374\001\022\017\n\nPRIVATEDN" - + "S\020\375\001\022\017\n\nPRIVATEOID\020\376\001\"Y\n\nDigestType\022\033\n\027D" - + "IGEST_TYPE_UNSPECIFIED\020\000\022\010\n\004SHA1\020\001\022\n\n\006SH" - + "A256\020\002\022\014\n\010GOST3411\020\003\022\n\n\006SHA384\020\004\032T\n\nGlue" - + "Record\022\026\n\thost_name\030\001 \001(\tB\003\340A\002\022\026\n\016ipv4_a" - + "ddresses\030\002 \003(\t\022\026\n\016ipv6_addresses\030\003 \003(\t\"Y" - + "\n\007DsState\022\030\n\024DS_STATE_UNSPECIFIED\020\000\022\032\n\026D" - + "S_RECORDS_UNPUBLISHED\020\001\022\030\n\024DS_RECORDS_PU" - + "BLISHED\020\002B\016\n\014dns_provider\"\343\003\n\017ContactSet" - + "tings\022C\n\007privacy\030\001 \001(\0162-.google.cloud.do" - + "mains.v1alpha2.ContactPrivacyB\003\340A\002\022W\n\022re" - + "gistrant_contact\030\002 \001(\01326.google.cloud.do" - + "mains.v1alpha2.ContactSettings.ContactB\003" - + "\340A\002\022R\n\radmin_contact\030\003 \001(\01326.google.clou" - + "d.domains.v1alpha2.ContactSettings.Conta" - + "ctB\003\340A\002\022V\n\021technical_contact\030\004 \001(\01326.goo" - + "gle.cloud.domains.v1alpha2.ContactSettin" - + "gs.ContactB\003\340A\002\032\205\001\n\007Contact\0227\n\016postal_ad" - + "dress\030\001 \001(\0132\032.google.type.PostalAddressB" - + "\003\340A\002\022\022\n\005email\030\002 \001(\tB\003\340A\002\022\031\n\014phone_number" - + "\030\003 \001(\tB\003\340A\002\022\022\n\nfax_number\030\004 \001(\t\"g\n\024Searc" - + "hDomainsRequest\022\022\n\005query\030\001 \001(\tB\003\340A\002\022;\n\010l" - + "ocation\030\002 \001(\tB)\340A\002\372A#\n!locations.googlea" - + "pis.com/Location\"g\n\025SearchDomainsRespons" - + "e\022N\n\023register_parameters\030\001 \003(\01321.google." - + "cloud.domains.v1alpha2.RegisterParameter" - + "s\"z\n!RetrieveRegisterParametersRequest\022\030" - + "\n\013domain_name\030\001 \001(\tB\003\340A\002\022;\n\010location\030\002 \001" - + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" - + "ation\"t\n\"RetrieveRegisterParametersRespo" - + "nse\022N\n\023register_parameters\030\001 \001(\01321.googl" - + "e.cloud.domains.v1alpha2.RegisterParamet" - + "ers\"\354\002\n\025RegisterDomainRequest\0229\n\006parent\030" - + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" - + "Location\022F\n\014registration\030\002 \001(\0132+.google." - + "cloud.domains.v1alpha2.RegistrationB\003\340A\002" - + "\022C\n\016domain_notices\030\003 \003(\0162+.google.cloud." - + "domains.v1alpha2.DomainNotice\022E\n\017contact" - + "_notices\030\004 \003(\0162,.google.cloud.domains.v1" - + "alpha2.ContactNotice\022-\n\014yearly_price\030\005 \001" - + "(\0132\022.google.type.MoneyB\003\340A\002\022\025\n\rvalidate_" - + "only\030\006 \001(\010\"z\n!RetrieveTransferParameters" - + "Request\022\030\n\013domain_name\030\001 \001(\tB\003\340A\002\022;\n\010loc" - + "ation\030\002 \001(\tB)\340A\002\372A#\n!locations.googleapi" - + "s.com/Location\"t\n\"RetrieveTransferParame" - + "tersResponse\022N\n\023transfer_parameters\030\001 \001(" - + "\01321.google.cloud.domains.v1alpha2.Transf" - + "erParameters\"\365\002\n\025TransferDomainRequest\0229" - + "\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.google" - + "apis.com/Location\022F\n\014registration\030\002 \001(\0132" - + "+.google.cloud.domains.v1alpha2.Registra" - + "tionB\003\340A\002\022E\n\017contact_notices\030\003 \003(\0162,.goo" - + "gle.cloud.domains.v1alpha2.ContactNotice" - + "\022-\n\014yearly_price\030\004 \001(\0132\022.google.type.Mon" - + "eyB\003\340A\002\022L\n\022authorization_code\030\005 \001(\01320.go" - + "ogle.cloud.domains.v1alpha2.Authorizatio" - + "nCode\022\025\n\rvalidate_only\030\006 \001(\010\"\214\001\n\030ListReg" - + "istrationsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A" - + "#\n!locations.googleapis.com/Location\022\021\n\t" - + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006f" - + "ilter\030\004 \001(\t\"x\n\031ListRegistrationsResponse" - + "\022B\n\rregistrations\030\001 \003(\0132+.google.cloud.d" - + "omains.v1alpha2.Registration\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"S\n\026GetRegistrationRequest\022" - + "9\n\004name\030\001 \001(\tB+\340A\002\372A%\n#domains.googleapi" - + "s.com/Registration\"\224\001\n\031UpdateRegistratio" - + "nRequest\022A\n\014registration\030\001 \001(\0132+.google." - + "cloud.domains.v1alpha2.Registration\0224\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "MaskB\003\340A\002\"\355\001\n\"ConfigureManagementSetting" - + "sRequest\022A\n\014registration\030\001 \001(\tB+\340A\002\372A%\n#" - + "domains.googleapis.com/Registration\022N\n\023m" - + "anagement_settings\030\002 \001(\01321.google.cloud." - + "domains.v1alpha2.ManagementSettings\0224\n\013u" - + "pdate_mask\030\003 \001(\0132\032.google.protobuf.Field" - + "MaskB\003\340A\002\"\357\001\n\033ConfigureDnsSettingsReques" - + "t\022A\n\014registration\030\001 \001(\tB+\340A\002\372A%\n#domains" - + ".googleapis.com/Registration\022@\n\014dns_sett" - + "ings\030\002 \001(\0132*.google.cloud.domains.v1alph" - + "a2.DnsSettings\0224\n\013update_mask\030\003 \001(\0132\032.go" - + "ogle.protobuf.FieldMaskB\003\340A\002\022\025\n\rvalidate" - + "_only\030\004 \001(\010\"\302\002\n\037ConfigureContactSettings" - + "Request\022A\n\014registration\030\001 \001(\tB+\340A\002\372A%\n#d" - + "omains.googleapis.com/Registration\022H\n\020co" - + "ntact_settings\030\002 \001(\0132..google.cloud.doma" - + "ins.v1alpha2.ContactSettings\0224\n\013update_m" - + "ask\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340" - + "A\002\022E\n\017contact_notices\030\004 \003(\0162,.google.clo" - + "ud.domains.v1alpha2.ContactNotice\022\025\n\rval" - + "idate_only\030\005 \001(\010\"V\n\031ExportRegistrationRe" - + "quest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#domains.goo" - + "gleapis.com/Registration\"V\n\031DeleteRegist" - + "rationRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#dom" - + "ains.googleapis.com/Registration\"e\n Retr" - + "ieveAuthorizationCodeRequest\022A\n\014registra" - + "tion\030\001 \001(\tB+\340A\002\372A%\n#domains.googleapis.c" - + "om/Registration\"b\n\035ResetAuthorizationCod" - + "eRequest\022A\n\014registration\030\001 \001(\tB+\340A\002\372A%\n#" - + "domains.googleapis.com/Registration\"\244\003\n\022" - + "RegisterParameters\022\023\n\013domain_name\030\001 \001(\t\022" - + "T\n\014availability\030\002 \001(\0162>.google.cloud.dom" - + "ains.v1alpha2.RegisterParameters.Availab" - + "ility\022H\n\021supported_privacy\030\003 \003(\0162-.googl" - + "e.cloud.domains.v1alpha2.ContactPrivacy\022" - + "C\n\016domain_notices\030\004 \003(\0162+.google.cloud.d" - + "omains.v1alpha2.DomainNotice\022(\n\014yearly_p" - + "rice\030\005 \001(\0132\022.google.type.Money\"j\n\014Availa" - + "bility\022\034\n\030AVAILABILITY_UNSPECIFIED\020\000\022\r\n\t" - + "AVAILABLE\020\001\022\017\n\013UNAVAILABLE\020\002\022\017\n\013UNSUPPOR" - + "TED\020\003\022\013\n\007UNKNOWN\020\004\"\235\002\n\022TransferParameter" - + "s\022\023\n\013domain_name\030\001 \001(\t\022\031\n\021current_regist" - + "rar\030\002 \001(\t\022\024\n\014name_servers\030\003 \003(\t\022M\n\023trans" - + "fer_lock_state\030\004 \001(\01620.google.cloud.doma" - + "ins.v1alpha2.TransferLockState\022H\n\021suppor" - + "ted_privacy\030\005 \003(\0162-.google.cloud.domains" - + ".v1alpha2.ContactPrivacy\022(\n\014yearly_price" - + "\030\006 \001(\0132\022.google.type.Money\"!\n\021Authorizat" - + "ionCode\022\014\n\004code\030\001 \001(\t\"\274\001\n\021OperationMetad" - + "ata\022/\n\013create_time\030\001 \001(\0132\032.google.protob" - + "uf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.google." - + "protobuf.Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004ve" - + "rb\030\004 \001(\t\022\025\n\rstatus_detail\030\005 \001(\t\022\023\n\013api_v" - + "ersion\030\006 \001(\t*\177\n\016ContactPrivacy\022\037\n\033CONTAC" - + "T_PRIVACY_UNSPECIFIED\020\000\022\027\n\023PUBLIC_CONTAC" - + "T_DATA\020\001\022\030\n\024PRIVATE_CONTACT_DATA\020\002\022\031\n\025RE" - + "DACTED_CONTACT_DATA\020\003*A\n\014DomainNotice\022\035\n" - + "\031DOMAIN_NOTICE_UNSPECIFIED\020\000\022\022\n\016HSTS_PRE" - + "LOADED\020\001*X\n\rContactNotice\022\036\n\032CONTACT_NOT" - + "ICE_UNSPECIFIED\020\000\022\'\n#PUBLIC_CONTACT_DATA" - + "_ACKNOWLEDGEMENT\020\001*R\n\021TransferLockState\022" - + "#\n\037TRANSFER_LOCK_STATE_UNSPECIFIED\020\000\022\014\n\010" - + "UNLOCKED\020\001\022\n\n\006LOCKED\020\0022\357\036\n\007Domains\022\334\001\n\rS" - + "earchDomains\0223.google.cloud.domains.v1al" - + "pha2.SearchDomainsRequest\0324.google.cloud" - + ".domains.v1alpha2.SearchDomainsResponse\"" - + "`\202\323\344\223\002I\022G/v1alpha2/{location=projects/*/" - + "locations/*}/registrations:searchDomains" - + "\332A\016location,query\022\226\002\n\032RetrieveRegisterPa" - + "rameters\022@.google.cloud.domains.v1alpha2" - + ".RetrieveRegisterParametersRequest\032A.goo" - + "gle.cloud.domains.v1alpha2.RetrieveRegis" - + "terParametersResponse\"s\202\323\344\223\002V\022T/v1alpha2" - + "/{location=projects/*/locations/*}/regis" - + "trations:retrieveRegisterParameters\332A\024lo" - + "cation,domain_name\022\372\001\n\016RegisterDomain\0224." - + "google.cloud.domains.v1alpha2.RegisterDo" - + "mainRequest\032\035.google.longrunning.Operati" - + "on\"\222\001\202\323\344\223\002E\"@/v1alpha2/{parent=projects/" - + "*/locations/*}/registrations:register:\001*" - + "\332A parent,registration,yearly_price\312A!\n\014" - + "Registration\022\021OperationMetadata\022\226\002\n\032Retr" - + "ieveTransferParameters\022@.google.cloud.do" - + "mains.v1alpha2.RetrieveTransferParameter" - + "sRequest\032A.google.cloud.domains.v1alpha2" - + ".RetrieveTransferParametersResponse\"s\202\323\344" - + "\223\002V\022T/v1alpha2/{location=projects/*/loca" - + "tions/*}/registrations:retrieveTransferP" - + "arameters\332A\024location,domain_name\022\215\002\n\016Tra" - + "nsferDomain\0224.google.cloud.domains.v1alp" - + "ha2.TransferDomainRequest\032\035.google.longr" - + "unning.Operation\"\245\001\202\323\344\223\002E\"@/v1alpha2/{pa" - + "rent=projects/*/locations/*}/registratio" - + "ns:transfer:\001*\332A3parent,registration,yea" - + "rly_price,authorization_code\312A!\n\014Registr" - + "ation\022\021OperationMetadata\022\320\001\n\021ListRegistr" - + "ations\0227.google.cloud.domains.v1alpha2.L" - + "istRegistrationsRequest\0328.google.cloud.d" - + "omains.v1alpha2.ListRegistrationsRespons" - + "e\"H\202\323\344\223\0029\0227/v1alpha2/{parent=projects/*/" - + "locations/*}/registrations\332A\006parent\022\275\001\n\017" - + "GetRegistration\0225.google.cloud.domains.v" - + "1alpha2.GetRegistrationRequest\032+.google." - + "cloud.domains.v1alpha2.Registration\"F\202\323\344" - + "\223\0029\0227/v1alpha2/{name=projects/*/location" - + "s/*/registrations/*}\332A\004name\022\211\002\n\022UpdateRe" - + "gistration\0228.google.cloud.domains.v1alph" - + "a2.UpdateRegistrationRequest\032\035.google.lo" - + "ngrunning.Operation\"\231\001\202\323\344\223\002T2D/v1alpha2/" - + "{registration.name=projects/*/locations/" - + "*/registrations/*}:\014registration\332A\030regis" - + "tration,update_mask\312A!\n\014Registration\022\021Op" - + "erationMetadata\022\273\002\n\033ConfigureManagementS" - + "ettings\022A.google.cloud.domains.v1alpha2." - + "ConfigureManagementSettingsRequest\032\035.goo" - + "gle.longrunning.Operation\"\271\001\202\323\344\223\002`\"[/v1a" - + "lpha2/{registration=projects/*/locations" - + "/*/registrations/*}:configureManagementS" - + "ettings:\001*\332A,registration,management_set" - + "tings,update_mask\312A!\n\014Registration\022\021Oper" - + "ationMetadata\022\237\002\n\024ConfigureDnsSettings\022:" - + ".google.cloud.domains.v1alpha2.Configure" - + "DnsSettingsRequest\032\035.google.longrunning." - + "Operation\"\253\001\202\323\344\223\002Y\"T/v1alpha2/{registrat" - + "ion=projects/*/locations/*/registrations" - + "/*}:configureDnsSettings:\001*\332A%registrati" - + "on,dns_settings,update_mask\312A!\n\014Registra" - + "tion\022\021OperationMetadata\022\257\002\n\030ConfigureCon" - + "tactSettings\022>.google.cloud.domains.v1al" - + "pha2.ConfigureContactSettingsRequest\032\035.g" - + "oogle.longrunning.Operation\"\263\001\202\323\344\223\002]\"X/v" - + "1alpha2/{registration=projects/*/locatio" - + "ns/*/registrations/*}:configureContactSe" - + "ttings:\001*\332A)registration,contact_setting" - + "s,update_mask\312A!\n\014Registration\022\021Operatio" - + "nMetadata\022\343\001\n\022ExportRegistration\0228.googl" - + "e.cloud.domains.v1alpha2.ExportRegistrat" - + "ionRequest\032\035.google.longrunning.Operatio" - + "n\"t\202\323\344\223\002C\">/v1alpha2/{name=projects/*/lo" - + "cations/*/registrations/*}:export:\001*\332A\004n" - + "ame\312A!\n\014Registration\022\021OperationMetadata\022" - + "\342\001\n\022DeleteRegistration\0228.google.cloud.do" - + "mains.v1alpha2.DeleteRegistrationRequest" - + "\032\035.google.longrunning.Operation\"s\202\323\344\223\0029*" - + "7/v1alpha2/{name=projects/*/locations/*/" - + "registrations/*}\332A\004name\312A*\n\025google.proto" - + "buf.Empty\022\021OperationMetadata\022\200\002\n\031Retriev" - + "eAuthorizationCode\022?.google.cloud.domain" - + "s.v1alpha2.RetrieveAuthorizationCodeRequ" - + "est\0320.google.cloud.domains.v1alpha2.Auth" - + "orizationCode\"p\202\323\344\223\002[\022Y/v1alpha2/{regist" - + "ration=projects/*/locations/*/registrati" - + "ons/*}:retrieveAuthorizationCode\332A\014regis" - + "tration\022\372\001\n\026ResetAuthorizationCode\022<.goo" - + "gle.cloud.domains.v1alpha2.ResetAuthoriz" - + "ationCodeRequest\0320.google.cloud.domains." - + "v1alpha2.AuthorizationCode\"p\202\323\344\223\002[\"V/v1a" - + "lpha2/{registration=projects/*/locations" - + "/*/registrations/*}:resetAuthorizationCo" - + "de:\001*\332A\014registration\032J\312A\026domains.googlea" - + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformBy\n!com.google.cloud.dom" - + "ains.v1alpha2B\014DomainsProtoP\001ZDgoogle.go" - + "lang.org/genproto/googleapis/cloud/domai" - + "ns/v1alpha2;domainsb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.MoneyProto.getDescriptor(), - com.google.type.PostalAddressProto.getDescriptor(), - }); - internal_static_google_cloud_domains_v1alpha2_Registration_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_domains_v1alpha2_Registration_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_Registration_descriptor, - new java.lang.String[] { - "Name", - "DomainName", - "CreateTime", - "ExpireTime", - "State", - "Issues", - "Labels", - "ManagementSettings", - "DnsSettings", - "ContactSettings", - "PendingContactSettings", - "SupportedPrivacy", - }); - internal_static_google_cloud_domains_v1alpha2_Registration_LabelsEntry_descriptor = - internal_static_google_cloud_domains_v1alpha2_Registration_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_domains_v1alpha2_Registration_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_Registration_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_domains_v1alpha2_ManagementSettings_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_domains_v1alpha2_ManagementSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_ManagementSettings_descriptor, - new java.lang.String[] { - "RenewalMethod", "TransferLockState", - }); - internal_static_google_cloud_domains_v1alpha2_DnsSettings_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_domains_v1alpha2_DnsSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_DnsSettings_descriptor, - new java.lang.String[] { - "CustomDns", "GoogleDomainsDns", "GlueRecords", "DnsProvider", - }); - internal_static_google_cloud_domains_v1alpha2_DnsSettings_CustomDns_descriptor = - internal_static_google_cloud_domains_v1alpha2_DnsSettings_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_domains_v1alpha2_DnsSettings_CustomDns_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_DnsSettings_CustomDns_descriptor, - new java.lang.String[] { - "NameServers", "DsRecords", - }); - internal_static_google_cloud_domains_v1alpha2_DnsSettings_GoogleDomainsDns_descriptor = - internal_static_google_cloud_domains_v1alpha2_DnsSettings_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_domains_v1alpha2_DnsSettings_GoogleDomainsDns_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_DnsSettings_GoogleDomainsDns_descriptor, - new java.lang.String[] { - "NameServers", "DsState", "DsRecords", - }); - internal_static_google_cloud_domains_v1alpha2_DnsSettings_DsRecord_descriptor = - internal_static_google_cloud_domains_v1alpha2_DnsSettings_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_domains_v1alpha2_DnsSettings_DsRecord_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_DnsSettings_DsRecord_descriptor, - new java.lang.String[] { - "KeyTag", "Algorithm", "DigestType", "Digest", - }); - internal_static_google_cloud_domains_v1alpha2_DnsSettings_GlueRecord_descriptor = - internal_static_google_cloud_domains_v1alpha2_DnsSettings_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_domains_v1alpha2_DnsSettings_GlueRecord_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_DnsSettings_GlueRecord_descriptor, - new java.lang.String[] { - "HostName", "Ipv4Addresses", "Ipv6Addresses", - }); - internal_static_google_cloud_domains_v1alpha2_ContactSettings_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_domains_v1alpha2_ContactSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_ContactSettings_descriptor, - new java.lang.String[] { - "Privacy", "RegistrantContact", "AdminContact", "TechnicalContact", - }); - internal_static_google_cloud_domains_v1alpha2_ContactSettings_Contact_descriptor = - internal_static_google_cloud_domains_v1alpha2_ContactSettings_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_domains_v1alpha2_ContactSettings_Contact_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_ContactSettings_Contact_descriptor, - new java.lang.String[] { - "PostalAddress", "Email", "PhoneNumber", "FaxNumber", - }); - internal_static_google_cloud_domains_v1alpha2_SearchDomainsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_domains_v1alpha2_SearchDomainsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_SearchDomainsRequest_descriptor, - new java.lang.String[] { - "Query", "Location", - }); - internal_static_google_cloud_domains_v1alpha2_SearchDomainsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_domains_v1alpha2_SearchDomainsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_SearchDomainsResponse_descriptor, - new java.lang.String[] { - "RegisterParameters", - }); - internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersRequest_descriptor, - new java.lang.String[] { - "DomainName", "Location", - }); - internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersResponse_descriptor, - new java.lang.String[] { - "RegisterParameters", - }); - internal_static_google_cloud_domains_v1alpha2_RegisterDomainRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_domains_v1alpha2_RegisterDomainRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_RegisterDomainRequest_descriptor, - new java.lang.String[] { - "Parent", - "Registration", - "DomainNotices", - "ContactNotices", - "YearlyPrice", - "ValidateOnly", - }); - internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersRequest_descriptor, - new java.lang.String[] { - "DomainName", "Location", - }); - internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersResponse_descriptor, - new java.lang.String[] { - "TransferParameters", - }); - internal_static_google_cloud_domains_v1alpha2_TransferDomainRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_domains_v1alpha2_TransferDomainRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_TransferDomainRequest_descriptor, - new java.lang.String[] { - "Parent", - "Registration", - "ContactNotices", - "YearlyPrice", - "AuthorizationCode", - "ValidateOnly", - }); - internal_static_google_cloud_domains_v1alpha2_ListRegistrationsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_domains_v1alpha2_ListRegistrationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_ListRegistrationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_domains_v1alpha2_ListRegistrationsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_domains_v1alpha2_ListRegistrationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_ListRegistrationsResponse_descriptor, - new java.lang.String[] { - "Registrations", "NextPageToken", - }); - internal_static_google_cloud_domains_v1alpha2_GetRegistrationRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_domains_v1alpha2_GetRegistrationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_GetRegistrationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_domains_v1alpha2_UpdateRegistrationRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_domains_v1alpha2_UpdateRegistrationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_UpdateRegistrationRequest_descriptor, - new java.lang.String[] { - "Registration", "UpdateMask", - }); - internal_static_google_cloud_domains_v1alpha2_ConfigureManagementSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_domains_v1alpha2_ConfigureManagementSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_ConfigureManagementSettingsRequest_descriptor, - new java.lang.String[] { - "Registration", "ManagementSettings", "UpdateMask", - }); - internal_static_google_cloud_domains_v1alpha2_ConfigureDnsSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_domains_v1alpha2_ConfigureDnsSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_ConfigureDnsSettingsRequest_descriptor, - new java.lang.String[] { - "Registration", "DnsSettings", "UpdateMask", "ValidateOnly", - }); - internal_static_google_cloud_domains_v1alpha2_ConfigureContactSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_domains_v1alpha2_ConfigureContactSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_ConfigureContactSettingsRequest_descriptor, - new java.lang.String[] { - "Registration", "ContactSettings", "UpdateMask", "ContactNotices", "ValidateOnly", - }); - internal_static_google_cloud_domains_v1alpha2_ExportRegistrationRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_domains_v1alpha2_ExportRegistrationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_ExportRegistrationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_domains_v1alpha2_DeleteRegistrationRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_domains_v1alpha2_DeleteRegistrationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_DeleteRegistrationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_domains_v1alpha2_RetrieveAuthorizationCodeRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_domains_v1alpha2_RetrieveAuthorizationCodeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_RetrieveAuthorizationCodeRequest_descriptor, - new java.lang.String[] { - "Registration", - }); - internal_static_google_cloud_domains_v1alpha2_ResetAuthorizationCodeRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_domains_v1alpha2_ResetAuthorizationCodeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_ResetAuthorizationCodeRequest_descriptor, - new java.lang.String[] { - "Registration", - }); - internal_static_google_cloud_domains_v1alpha2_RegisterParameters_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_domains_v1alpha2_RegisterParameters_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_RegisterParameters_descriptor, - new java.lang.String[] { - "DomainName", "Availability", "SupportedPrivacy", "DomainNotices", "YearlyPrice", - }); - internal_static_google_cloud_domains_v1alpha2_TransferParameters_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_domains_v1alpha2_TransferParameters_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_TransferParameters_descriptor, - new java.lang.String[] { - "DomainName", - "CurrentRegistrar", - "NameServers", - "TransferLockState", - "SupportedPrivacy", - "YearlyPrice", - }); - internal_static_google_cloud_domains_v1alpha2_AuthorizationCode_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_domains_v1alpha2_AuthorizationCode_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_AuthorizationCode_descriptor, - new java.lang.String[] { - "Code", - }); - internal_static_google_cloud_domains_v1alpha2_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_domains_v1alpha2_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1alpha2_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "ApiVersion", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.MoneyProto.getDescriptor(); - com.google.type.PostalAddressProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ExportRegistrationRequest.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ExportRegistrationRequest.java deleted file mode 100644 index 45761126..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ExportRegistrationRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Request for the `ExportRegistration` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ExportRegistrationRequest} - */ -public final class ExportRegistrationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.ExportRegistrationRequest) - ExportRegistrationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExportRegistrationRequest.newBuilder() to construct. - private ExportRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ExportRegistrationRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ExportRegistrationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ExportRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ExportRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ExportRegistrationRequest.class, - com.google.cloud.domains.v1alpha2.ExportRegistrationRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the `Registration` to export,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` to export,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.ExportRegistrationRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.ExportRegistrationRequest other = - (com.google.cloud.domains.v1alpha2.ExportRegistrationRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.ExportRegistrationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ExportRegistrationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ExportRegistrationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ExportRegistrationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ExportRegistrationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ExportRegistrationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ExportRegistrationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ExportRegistrationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ExportRegistrationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ExportRegistrationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ExportRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ExportRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.ExportRegistrationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ExportRegistration` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ExportRegistrationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.ExportRegistrationRequest) - com.google.cloud.domains.v1alpha2.ExportRegistrationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ExportRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ExportRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ExportRegistrationRequest.class, - com.google.cloud.domains.v1alpha2.ExportRegistrationRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.ExportRegistrationRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ExportRegistrationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ExportRegistrationRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.ExportRegistrationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ExportRegistrationRequest build() { - com.google.cloud.domains.v1alpha2.ExportRegistrationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ExportRegistrationRequest buildPartial() { - com.google.cloud.domains.v1alpha2.ExportRegistrationRequest result = - new com.google.cloud.domains.v1alpha2.ExportRegistrationRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.ExportRegistrationRequest) { - return mergeFrom((com.google.cloud.domains.v1alpha2.ExportRegistrationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.ExportRegistrationRequest other) { - if (other == com.google.cloud.domains.v1alpha2.ExportRegistrationRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` to export,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to export,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to export,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to export,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to export,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.ExportRegistrationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.ExportRegistrationRequest) - private static final com.google.cloud.domains.v1alpha2.ExportRegistrationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.ExportRegistrationRequest(); - } - - public static com.google.cloud.domains.v1alpha2.ExportRegistrationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportRegistrationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ExportRegistrationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ExportRegistrationRequestOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ExportRegistrationRequestOrBuilder.java deleted file mode 100644 index 8ef26cf2..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ExportRegistrationRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface ExportRegistrationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.ExportRegistrationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` to export,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the `Registration` to export,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/GetRegistrationRequest.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/GetRegistrationRequest.java deleted file mode 100644 index b61d9995..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/GetRegistrationRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Request for the `GetRegistration` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.GetRegistrationRequest} - */ -public final class GetRegistrationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.GetRegistrationRequest) - GetRegistrationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetRegistrationRequest.newBuilder() to construct. - private GetRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetRegistrationRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetRegistrationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_GetRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_GetRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.GetRegistrationRequest.class, - com.google.cloud.domains.v1alpha2.GetRegistrationRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the `Registration` to get, in the format
-   * `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` to get, in the format
-   * `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.GetRegistrationRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.GetRegistrationRequest other = - (com.google.cloud.domains.v1alpha2.GetRegistrationRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.GetRegistrationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.GetRegistrationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.GetRegistrationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.GetRegistrationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.GetRegistrationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.GetRegistrationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.GetRegistrationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.GetRegistrationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.GetRegistrationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.GetRegistrationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.GetRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.GetRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.GetRegistrationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `GetRegistration` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.GetRegistrationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.GetRegistrationRequest) - com.google.cloud.domains.v1alpha2.GetRegistrationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_GetRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_GetRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.GetRegistrationRequest.class, - com.google.cloud.domains.v1alpha2.GetRegistrationRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.GetRegistrationRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_GetRegistrationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.GetRegistrationRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.GetRegistrationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.GetRegistrationRequest build() { - com.google.cloud.domains.v1alpha2.GetRegistrationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.GetRegistrationRequest buildPartial() { - com.google.cloud.domains.v1alpha2.GetRegistrationRequest result = - new com.google.cloud.domains.v1alpha2.GetRegistrationRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.GetRegistrationRequest) { - return mergeFrom((com.google.cloud.domains.v1alpha2.GetRegistrationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.GetRegistrationRequest other) { - if (other == com.google.cloud.domains.v1alpha2.GetRegistrationRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` to get, in the format
-     * `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to get, in the format
-     * `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to get, in the format
-     * `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to get, in the format
-     * `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to get, in the format
-     * `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.GetRegistrationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.GetRegistrationRequest) - private static final com.google.cloud.domains.v1alpha2.GetRegistrationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.GetRegistrationRequest(); - } - - public static com.google.cloud.domains.v1alpha2.GetRegistrationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRegistrationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.GetRegistrationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/GetRegistrationRequestOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/GetRegistrationRequestOrBuilder.java deleted file mode 100644 index d5ace1cb..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/GetRegistrationRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface GetRegistrationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.GetRegistrationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` to get, in the format
-   * `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the `Registration` to get, in the format
-   * `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ListRegistrationsRequest.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ListRegistrationsRequest.java deleted file mode 100644 index e20937e0..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ListRegistrationsRequest.java +++ /dev/null @@ -1,1175 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Request for the `ListRegistrations` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ListRegistrationsRequest} - */ -public final class ListRegistrationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.ListRegistrationsRequest) - ListRegistrationsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListRegistrationsRequest.newBuilder() to construct. - private ListRegistrationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListRegistrationsRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListRegistrationsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ListRegistrationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ListRegistrationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ListRegistrationsRequest.class, - com.google.cloud.domains.v1alpha2.ListRegistrationsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The project and location from which to list `Registration`s, specified in
-   * the format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The project and location from which to list `Registration`s, specified in
-   * the format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * Maximum number of results to return.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * When set to the `next_page_token` from a prior response, provides the next
-   * page of results.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * When set to the `next_page_token` from a prior response, provides the next
-   * page of results.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * Filter expression to restrict the `Registration`s returned.
-   * The expression must specify the field name, a comparison operator, and the
-   * value that you want to use for filtering. The value must be a string, a
-   * number, a boolean, or an enum value. The comparison operator should be one
-   * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-   * For example, to filter to a specific domain name, use an expression like
-   * `domainName="example.com"`. You can also check for the existence of a
-   * field; for example, to find domains using custom DNS settings, use an
-   * expression like `dnsSettings.customDns:*`.
-   * You can also create compound filters by combining expressions with the
-   * `AND` and `OR` operators. For example, to find domains that are suspended
-   * or have specific issues flagged, use an expression like
-   * `(state=SUSPENDED) OR (issue:*)`.
-   * 
- * - * string filter = 4; - * - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * Filter expression to restrict the `Registration`s returned.
-   * The expression must specify the field name, a comparison operator, and the
-   * value that you want to use for filtering. The value must be a string, a
-   * number, a boolean, or an enum value. The comparison operator should be one
-   * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-   * For example, to filter to a specific domain name, use an expression like
-   * `domainName="example.com"`. You can also check for the existence of a
-   * field; for example, to find domains using custom DNS settings, use an
-   * expression like `dnsSettings.customDns:*`.
-   * You can also create compound filters by combining expressions with the
-   * `AND` and `OR` operators. For example, to find domains that are suspended
-   * or have specific issues flagged, use an expression like
-   * `(state=SUSPENDED) OR (issue:*)`.
-   * 
- * - * string filter = 4; - * - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.ListRegistrationsRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.ListRegistrationsRequest other = - (com.google.cloud.domains.v1alpha2.ListRegistrationsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.ListRegistrationsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ListRegistrations` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ListRegistrationsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.ListRegistrationsRequest) - com.google.cloud.domains.v1alpha2.ListRegistrationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ListRegistrationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ListRegistrationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ListRegistrationsRequest.class, - com.google.cloud.domains.v1alpha2.ListRegistrationsRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.ListRegistrationsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - filter_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ListRegistrationsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ListRegistrationsRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.ListRegistrationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ListRegistrationsRequest build() { - com.google.cloud.domains.v1alpha2.ListRegistrationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ListRegistrationsRequest buildPartial() { - com.google.cloud.domains.v1alpha2.ListRegistrationsRequest result = - new com.google.cloud.domains.v1alpha2.ListRegistrationsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.ListRegistrationsRequest) { - return mergeFrom((com.google.cloud.domains.v1alpha2.ListRegistrationsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.ListRegistrationsRequest other) { - if (other == com.google.cloud.domains.v1alpha2.ListRegistrationsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The project and location from which to list `Registration`s, specified in
-     * the format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The project and location from which to list `Registration`s, specified in
-     * the format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The project and location from which to list `Registration`s, specified in
-     * the format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The project and location from which to list `Registration`s, specified in
-     * the format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The project and location from which to list `Registration`s, specified in
-     * the format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * Maximum number of results to return.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Maximum number of results to return.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Maximum number of results to return.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * When set to the `next_page_token` from a prior response, provides the next
-     * page of results.
-     * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * When set to the `next_page_token` from a prior response, provides the next
-     * page of results.
-     * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * When set to the `next_page_token` from a prior response, provides the next
-     * page of results.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * When set to the `next_page_token` from a prior response, provides the next
-     * page of results.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * When set to the `next_page_token` from a prior response, provides the next
-     * page of results.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * Filter expression to restrict the `Registration`s returned.
-     * The expression must specify the field name, a comparison operator, and the
-     * value that you want to use for filtering. The value must be a string, a
-     * number, a boolean, or an enum value. The comparison operator should be one
-     * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-     * For example, to filter to a specific domain name, use an expression like
-     * `domainName="example.com"`. You can also check for the existence of a
-     * field; for example, to find domains using custom DNS settings, use an
-     * expression like `dnsSettings.customDns:*`.
-     * You can also create compound filters by combining expressions with the
-     * `AND` and `OR` operators. For example, to find domains that are suspended
-     * or have specific issues flagged, use an expression like
-     * `(state=SUSPENDED) OR (issue:*)`.
-     * 
- * - * string filter = 4; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Filter expression to restrict the `Registration`s returned.
-     * The expression must specify the field name, a comparison operator, and the
-     * value that you want to use for filtering. The value must be a string, a
-     * number, a boolean, or an enum value. The comparison operator should be one
-     * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-     * For example, to filter to a specific domain name, use an expression like
-     * `domainName="example.com"`. You can also check for the existence of a
-     * field; for example, to find domains using custom DNS settings, use an
-     * expression like `dnsSettings.customDns:*`.
-     * You can also create compound filters by combining expressions with the
-     * `AND` and `OR` operators. For example, to find domains that are suspended
-     * or have specific issues flagged, use an expression like
-     * `(state=SUSPENDED) OR (issue:*)`.
-     * 
- * - * string filter = 4; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Filter expression to restrict the `Registration`s returned.
-     * The expression must specify the field name, a comparison operator, and the
-     * value that you want to use for filtering. The value must be a string, a
-     * number, a boolean, or an enum value. The comparison operator should be one
-     * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-     * For example, to filter to a specific domain name, use an expression like
-     * `domainName="example.com"`. You can also check for the existence of a
-     * field; for example, to find domains using custom DNS settings, use an
-     * expression like `dnsSettings.customDns:*`.
-     * You can also create compound filters by combining expressions with the
-     * `AND` and `OR` operators. For example, to find domains that are suspended
-     * or have specific issues flagged, use an expression like
-     * `(state=SUSPENDED) OR (issue:*)`.
-     * 
- * - * string filter = 4; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Filter expression to restrict the `Registration`s returned.
-     * The expression must specify the field name, a comparison operator, and the
-     * value that you want to use for filtering. The value must be a string, a
-     * number, a boolean, or an enum value. The comparison operator should be one
-     * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-     * For example, to filter to a specific domain name, use an expression like
-     * `domainName="example.com"`. You can also check for the existence of a
-     * field; for example, to find domains using custom DNS settings, use an
-     * expression like `dnsSettings.customDns:*`.
-     * You can also create compound filters by combining expressions with the
-     * `AND` and `OR` operators. For example, to find domains that are suspended
-     * or have specific issues flagged, use an expression like
-     * `(state=SUSPENDED) OR (issue:*)`.
-     * 
- * - * string filter = 4; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * Filter expression to restrict the `Registration`s returned.
-     * The expression must specify the field name, a comparison operator, and the
-     * value that you want to use for filtering. The value must be a string, a
-     * number, a boolean, or an enum value. The comparison operator should be one
-     * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-     * For example, to filter to a specific domain name, use an expression like
-     * `domainName="example.com"`. You can also check for the existence of a
-     * field; for example, to find domains using custom DNS settings, use an
-     * expression like `dnsSettings.customDns:*`.
-     * You can also create compound filters by combining expressions with the
-     * `AND` and `OR` operators. For example, to find domains that are suspended
-     * or have specific issues flagged, use an expression like
-     * `(state=SUSPENDED) OR (issue:*)`.
-     * 
- * - * string filter = 4; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.ListRegistrationsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.ListRegistrationsRequest) - private static final com.google.cloud.domains.v1alpha2.ListRegistrationsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.ListRegistrationsRequest(); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRegistrationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ListRegistrationsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ListRegistrationsRequestOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ListRegistrationsRequestOrBuilder.java deleted file mode 100644 index b1a289ff..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ListRegistrationsRequestOrBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface ListRegistrationsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.ListRegistrationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The project and location from which to list `Registration`s, specified in
-   * the format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The project and location from which to list `Registration`s, specified in
-   * the format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Maximum number of results to return.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * When set to the `next_page_token` from a prior response, provides the next
-   * page of results.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * When set to the `next_page_token` from a prior response, provides the next
-   * page of results.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * Filter expression to restrict the `Registration`s returned.
-   * The expression must specify the field name, a comparison operator, and the
-   * value that you want to use for filtering. The value must be a string, a
-   * number, a boolean, or an enum value. The comparison operator should be one
-   * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-   * For example, to filter to a specific domain name, use an expression like
-   * `domainName="example.com"`. You can also check for the existence of a
-   * field; for example, to find domains using custom DNS settings, use an
-   * expression like `dnsSettings.customDns:*`.
-   * You can also create compound filters by combining expressions with the
-   * `AND` and `OR` operators. For example, to find domains that are suspended
-   * or have specific issues flagged, use an expression like
-   * `(state=SUSPENDED) OR (issue:*)`.
-   * 
- * - * string filter = 4; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * Filter expression to restrict the `Registration`s returned.
-   * The expression must specify the field name, a comparison operator, and the
-   * value that you want to use for filtering. The value must be a string, a
-   * number, a boolean, or an enum value. The comparison operator should be one
-   * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-   * For example, to filter to a specific domain name, use an expression like
-   * `domainName="example.com"`. You can also check for the existence of a
-   * field; for example, to find domains using custom DNS settings, use an
-   * expression like `dnsSettings.customDns:*`.
-   * You can also create compound filters by combining expressions with the
-   * `AND` and `OR` operators. For example, to find domains that are suspended
-   * or have specific issues flagged, use an expression like
-   * `(state=SUSPENDED) OR (issue:*)`.
-   * 
- * - * string filter = 4; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ListRegistrationsResponse.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ListRegistrationsResponse.java deleted file mode 100644 index 00f435ed..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ListRegistrationsResponse.java +++ /dev/null @@ -1,1123 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Response for the `ListRegistrations` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ListRegistrationsResponse} - */ -public final class ListRegistrationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.ListRegistrationsResponse) - ListRegistrationsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListRegistrationsResponse.newBuilder() to construct. - private ListRegistrationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListRegistrationsResponse() { - registrations_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListRegistrationsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ListRegistrationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ListRegistrationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ListRegistrationsResponse.class, - com.google.cloud.domains.v1alpha2.ListRegistrationsResponse.Builder.class); - } - - public static final int REGISTRATIONS_FIELD_NUMBER = 1; - private java.util.List registrations_; - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - @java.lang.Override - public java.util.List getRegistrationsList() { - return registrations_; - } - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - @java.lang.Override - public java.util.List - getRegistrationsOrBuilderList() { - return registrations_; - } - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - @java.lang.Override - public int getRegistrationsCount() { - return registrations_.size(); - } - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.Registration getRegistrations(int index) { - return registrations_.get(index); - } - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegistrationOrBuilder getRegistrationsOrBuilder( - int index) { - return registrations_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * When present, there are more results to retrieve. Set `page_token` to this
-   * value on a subsequent call to get the next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * When present, there are more results to retrieve. Set `page_token` to this
-   * value on a subsequent call to get the next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < registrations_.size(); i++) { - output.writeMessage(1, registrations_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < registrations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, registrations_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.ListRegistrationsResponse)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.ListRegistrationsResponse other = - (com.google.cloud.domains.v1alpha2.ListRegistrationsResponse) obj; - - if (!getRegistrationsList().equals(other.getRegistrationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRegistrationsCount() > 0) { - hash = (37 * hash) + REGISTRATIONS_FIELD_NUMBER; - hash = (53 * hash) + getRegistrationsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.ListRegistrationsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response for the `ListRegistrations` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ListRegistrationsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.ListRegistrationsResponse) - com.google.cloud.domains.v1alpha2.ListRegistrationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ListRegistrationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ListRegistrationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ListRegistrationsResponse.class, - com.google.cloud.domains.v1alpha2.ListRegistrationsResponse.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.ListRegistrationsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (registrationsBuilder_ == null) { - registrations_ = java.util.Collections.emptyList(); - } else { - registrations_ = null; - registrationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ListRegistrationsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ListRegistrationsResponse getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.ListRegistrationsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ListRegistrationsResponse build() { - com.google.cloud.domains.v1alpha2.ListRegistrationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ListRegistrationsResponse buildPartial() { - com.google.cloud.domains.v1alpha2.ListRegistrationsResponse result = - new com.google.cloud.domains.v1alpha2.ListRegistrationsResponse(this); - int from_bitField0_ = bitField0_; - if (registrationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - registrations_ = java.util.Collections.unmodifiableList(registrations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.registrations_ = registrations_; - } else { - result.registrations_ = registrationsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.ListRegistrationsResponse) { - return mergeFrom((com.google.cloud.domains.v1alpha2.ListRegistrationsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.ListRegistrationsResponse other) { - if (other == com.google.cloud.domains.v1alpha2.ListRegistrationsResponse.getDefaultInstance()) - return this; - if (registrationsBuilder_ == null) { - if (!other.registrations_.isEmpty()) { - if (registrations_.isEmpty()) { - registrations_ = other.registrations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRegistrationsIsMutable(); - registrations_.addAll(other.registrations_); - } - onChanged(); - } - } else { - if (!other.registrations_.isEmpty()) { - if (registrationsBuilder_.isEmpty()) { - registrationsBuilder_.dispose(); - registrationsBuilder_ = null; - registrations_ = other.registrations_; - bitField0_ = (bitField0_ & ~0x00000001); - registrationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRegistrationsFieldBuilder() - : null; - } else { - registrationsBuilder_.addAllMessages(other.registrations_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.domains.v1alpha2.Registration m = - input.readMessage( - com.google.cloud.domains.v1alpha2.Registration.parser(), extensionRegistry); - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - registrations_.add(m); - } else { - registrationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List registrations_ = - java.util.Collections.emptyList(); - - private void ensureRegistrationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - registrations_ = - new java.util.ArrayList(registrations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1alpha2.Registration, - com.google.cloud.domains.v1alpha2.Registration.Builder, - com.google.cloud.domains.v1alpha2.RegistrationOrBuilder> - registrationsBuilder_; - - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public java.util.List getRegistrationsList() { - if (registrationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(registrations_); - } else { - return registrationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public int getRegistrationsCount() { - if (registrationsBuilder_ == null) { - return registrations_.size(); - } else { - return registrationsBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public com.google.cloud.domains.v1alpha2.Registration getRegistrations(int index) { - if (registrationsBuilder_ == null) { - return registrations_.get(index); - } else { - return registrationsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public Builder setRegistrations( - int index, com.google.cloud.domains.v1alpha2.Registration value) { - if (registrationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegistrationsIsMutable(); - registrations_.set(index, value); - onChanged(); - } else { - registrationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public Builder setRegistrations( - int index, com.google.cloud.domains.v1alpha2.Registration.Builder builderForValue) { - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - registrations_.set(index, builderForValue.build()); - onChanged(); - } else { - registrationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public Builder addRegistrations(com.google.cloud.domains.v1alpha2.Registration value) { - if (registrationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegistrationsIsMutable(); - registrations_.add(value); - onChanged(); - } else { - registrationsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public Builder addRegistrations( - int index, com.google.cloud.domains.v1alpha2.Registration value) { - if (registrationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegistrationsIsMutable(); - registrations_.add(index, value); - onChanged(); - } else { - registrationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public Builder addRegistrations( - com.google.cloud.domains.v1alpha2.Registration.Builder builderForValue) { - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - registrations_.add(builderForValue.build()); - onChanged(); - } else { - registrationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public Builder addRegistrations( - int index, com.google.cloud.domains.v1alpha2.Registration.Builder builderForValue) { - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - registrations_.add(index, builderForValue.build()); - onChanged(); - } else { - registrationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public Builder addAllRegistrations( - java.lang.Iterable values) { - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, registrations_); - onChanged(); - } else { - registrationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public Builder clearRegistrations() { - if (registrationsBuilder_ == null) { - registrations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - registrationsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public Builder removeRegistrations(int index) { - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - registrations_.remove(index); - onChanged(); - } else { - registrationsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public com.google.cloud.domains.v1alpha2.Registration.Builder getRegistrationsBuilder( - int index) { - return getRegistrationsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public com.google.cloud.domains.v1alpha2.RegistrationOrBuilder getRegistrationsOrBuilder( - int index) { - if (registrationsBuilder_ == null) { - return registrations_.get(index); - } else { - return registrationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public java.util.List - getRegistrationsOrBuilderList() { - if (registrationsBuilder_ != null) { - return registrationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(registrations_); - } - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public com.google.cloud.domains.v1alpha2.Registration.Builder addRegistrationsBuilder() { - return getRegistrationsFieldBuilder() - .addBuilder(com.google.cloud.domains.v1alpha2.Registration.getDefaultInstance()); - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public com.google.cloud.domains.v1alpha2.Registration.Builder addRegistrationsBuilder( - int index) { - return getRegistrationsFieldBuilder() - .addBuilder(index, com.google.cloud.domains.v1alpha2.Registration.getDefaultInstance()); - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - public java.util.List - getRegistrationsBuilderList() { - return getRegistrationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1alpha2.Registration, - com.google.cloud.domains.v1alpha2.Registration.Builder, - com.google.cloud.domains.v1alpha2.RegistrationOrBuilder> - getRegistrationsFieldBuilder() { - if (registrationsBuilder_ == null) { - registrationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1alpha2.Registration, - com.google.cloud.domains.v1alpha2.Registration.Builder, - com.google.cloud.domains.v1alpha2.RegistrationOrBuilder>( - registrations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - registrations_ = null; - } - return registrationsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * When present, there are more results to retrieve. Set `page_token` to this
-     * value on a subsequent call to get the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * When present, there are more results to retrieve. Set `page_token` to this
-     * value on a subsequent call to get the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * When present, there are more results to retrieve. Set `page_token` to this
-     * value on a subsequent call to get the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * When present, there are more results to retrieve. Set `page_token` to this
-     * value on a subsequent call to get the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * When present, there are more results to retrieve. Set `page_token` to this
-     * value on a subsequent call to get the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.ListRegistrationsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.ListRegistrationsResponse) - private static final com.google.cloud.domains.v1alpha2.ListRegistrationsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.ListRegistrationsResponse(); - } - - public static com.google.cloud.domains.v1alpha2.ListRegistrationsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRegistrationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ListRegistrationsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ListRegistrationsResponseOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ListRegistrationsResponseOrBuilder.java deleted file mode 100644 index 6b3a825e..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ListRegistrationsResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface ListRegistrationsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.ListRegistrationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - java.util.List getRegistrationsList(); - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - com.google.cloud.domains.v1alpha2.Registration getRegistrations(int index); - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - int getRegistrationsCount(); - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - java.util.List - getRegistrationsOrBuilderList(); - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.Registration registrations = 1; - */ - com.google.cloud.domains.v1alpha2.RegistrationOrBuilder getRegistrationsOrBuilder(int index); - - /** - * - * - *
-   * When present, there are more results to retrieve. Set `page_token` to this
-   * value on a subsequent call to get the next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * When present, there are more results to retrieve. Set `page_token` to this
-   * value on a subsequent call to get the next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/LocationName.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/LocationName.java deleted file mode 100644 index 917c46d0..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/LocationName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class LocationName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION = - PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - - @Deprecated - protected LocationName() { - project = null; - location = null; - } - - private LocationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static LocationName of(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build(); - } - - public static String format(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build().toString(); - } - - public static LocationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION.validatedMatch( - formattedString, "LocationName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (LocationName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION.instantiate("project", project, "location", location); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - LocationName that = ((LocationName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - return h; - } - - /** Builder for projects/{project}/locations/{location}. */ - public static class Builder { - private String project; - private String location; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - private Builder(LocationName locationName) { - this.project = locationName.project; - this.location = locationName.location; - } - - public LocationName build() { - return new LocationName(this); - } - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ManagementSettings.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ManagementSettings.java deleted file mode 100644 index 4a807b97..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ManagementSettings.java +++ /dev/null @@ -1,940 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Defines renewal, billing, and transfer settings for a `Registration`.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ManagementSettings} - */ -public final class ManagementSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.ManagementSettings) - ManagementSettingsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ManagementSettings.newBuilder() to construct. - private ManagementSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ManagementSettings() { - renewalMethod_ = 0; - transferLockState_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ManagementSettings(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ManagementSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ManagementSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ManagementSettings.class, - com.google.cloud.domains.v1alpha2.ManagementSettings.Builder.class); - } - - /** - * - * - *
-   * Defines how the `Registration` is renewed.
-   * 
- * - * Protobuf enum {@code google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod} - */ - public enum RenewalMethod implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The renewal method is undefined.
-     * 
- * - * RENEWAL_METHOD_UNSPECIFIED = 0; - */ - RENEWAL_METHOD_UNSPECIFIED(0), - /** - * - * - *
-     * The domain is automatically renewed each year .
-     * To disable automatic renewals, delete the resource by calling
-     * `DeleteRegistration` or export it by calling `ExportRegistration`.
-     * 
- * - * AUTOMATIC_RENEWAL = 1; - */ - AUTOMATIC_RENEWAL(1), - /** - * - * - *
-     * The domain must be explicitly renewed each year before its
-     * `expire_time`. This option is only available when the `Registration`
-     * is in state `EXPORTED`.
-     * To manage the domain's current billing and
-     * renewal settings, go to [Google Domains](https://domains.google/).
-     * 
- * - * MANUAL_RENEWAL = 2; - */ - MANUAL_RENEWAL(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The renewal method is undefined.
-     * 
- * - * RENEWAL_METHOD_UNSPECIFIED = 0; - */ - public static final int RENEWAL_METHOD_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The domain is automatically renewed each year .
-     * To disable automatic renewals, delete the resource by calling
-     * `DeleteRegistration` or export it by calling `ExportRegistration`.
-     * 
- * - * AUTOMATIC_RENEWAL = 1; - */ - public static final int AUTOMATIC_RENEWAL_VALUE = 1; - /** - * - * - *
-     * The domain must be explicitly renewed each year before its
-     * `expire_time`. This option is only available when the `Registration`
-     * is in state `EXPORTED`.
-     * To manage the domain's current billing and
-     * renewal settings, go to [Google Domains](https://domains.google/).
-     * 
- * - * MANUAL_RENEWAL = 2; - */ - public static final int MANUAL_RENEWAL_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 RenewalMethod 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 RenewalMethod forNumber(int value) { - switch (value) { - case 0: - return RENEWAL_METHOD_UNSPECIFIED; - case 1: - return AUTOMATIC_RENEWAL; - case 2: - return MANUAL_RENEWAL; - 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 RenewalMethod findValueByNumber(int number) { - return RenewalMethod.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.ManagementSettings.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final RenewalMethod[] VALUES = values(); - - public static RenewalMethod 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 RenewalMethod(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod) - } - - public static final int RENEWAL_METHOD_FIELD_NUMBER = 3; - private int renewalMethod_; - /** - * - * - *
-   * Output only. The renewal method for this `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for renewalMethod. - */ - @java.lang.Override - public int getRenewalMethodValue() { - return renewalMethod_; - } - /** - * - * - *
-   * Output only. The renewal method for this `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The renewalMethod. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod getRenewalMethod() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod result = - com.google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod.valueOf(renewalMethod_); - return result == null - ? com.google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod.UNRECOGNIZED - : result; - } - - public static final int TRANSFER_LOCK_STATE_FIELD_NUMBER = 4; - private int transferLockState_; - /** - * - * - *
-   * Controls whether the domain can be transferred to another registrar.
-   * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - @java.lang.Override - public int getTransferLockStateValue() { - return transferLockState_; - } - /** - * - * - *
-   * Controls whether the domain can be transferred to another registrar.
-   * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.TransferLockState getTransferLockState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.TransferLockState result = - com.google.cloud.domains.v1alpha2.TransferLockState.valueOf(transferLockState_); - return result == null - ? com.google.cloud.domains.v1alpha2.TransferLockState.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 (renewalMethod_ - != com.google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod - .RENEWAL_METHOD_UNSPECIFIED - .getNumber()) { - output.writeEnum(3, renewalMethod_); - } - if (transferLockState_ - != com.google.cloud.domains.v1alpha2.TransferLockState.TRANSFER_LOCK_STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(4, transferLockState_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (renewalMethod_ - != com.google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod - .RENEWAL_METHOD_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, renewalMethod_); - } - if (transferLockState_ - != com.google.cloud.domains.v1alpha2.TransferLockState.TRANSFER_LOCK_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, transferLockState_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.ManagementSettings)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.ManagementSettings other = - (com.google.cloud.domains.v1alpha2.ManagementSettings) obj; - - if (renewalMethod_ != other.renewalMethod_) return false; - if (transferLockState_ != other.transferLockState_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RENEWAL_METHOD_FIELD_NUMBER; - hash = (53 * hash) + renewalMethod_; - hash = (37 * hash) + TRANSFER_LOCK_STATE_FIELD_NUMBER; - hash = (53 * hash) + transferLockState_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.ManagementSettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ManagementSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ManagementSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ManagementSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ManagementSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ManagementSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ManagementSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ManagementSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ManagementSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ManagementSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ManagementSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ManagementSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1alpha2.ManagementSettings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Defines renewal, billing, and transfer settings for a `Registration`.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ManagementSettings} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.ManagementSettings) - com.google.cloud.domains.v1alpha2.ManagementSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ManagementSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ManagementSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ManagementSettings.class, - com.google.cloud.domains.v1alpha2.ManagementSettings.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.ManagementSettings.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - renewalMethod_ = 0; - - transferLockState_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ManagementSettings_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ManagementSettings getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.ManagementSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ManagementSettings build() { - com.google.cloud.domains.v1alpha2.ManagementSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ManagementSettings buildPartial() { - com.google.cloud.domains.v1alpha2.ManagementSettings result = - new com.google.cloud.domains.v1alpha2.ManagementSettings(this); - result.renewalMethod_ = renewalMethod_; - result.transferLockState_ = transferLockState_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.ManagementSettings) { - return mergeFrom((com.google.cloud.domains.v1alpha2.ManagementSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.ManagementSettings other) { - if (other == com.google.cloud.domains.v1alpha2.ManagementSettings.getDefaultInstance()) - return this; - if (other.renewalMethod_ != 0) { - setRenewalMethodValue(other.getRenewalMethodValue()); - } - if (other.transferLockState_ != 0) { - setTransferLockStateValue(other.getTransferLockStateValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 24: - { - renewalMethod_ = input.readEnum(); - - break; - } // case 24 - case 32: - { - transferLockState_ = input.readEnum(); - - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int renewalMethod_ = 0; - /** - * - * - *
-     * Output only. The renewal method for this `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for renewalMethod. - */ - @java.lang.Override - public int getRenewalMethodValue() { - return renewalMethod_; - } - /** - * - * - *
-     * Output only. The renewal method for this `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for renewalMethod to set. - * @return This builder for chaining. - */ - public Builder setRenewalMethodValue(int value) { - - renewalMethod_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The renewal method for this `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The renewalMethod. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod getRenewalMethod() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod result = - com.google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod.valueOf( - renewalMethod_); - return result == null - ? com.google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. The renewal method for this `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The renewalMethod to set. - * @return This builder for chaining. - */ - public Builder setRenewalMethod( - com.google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod value) { - if (value == null) { - throw new NullPointerException(); - } - - renewalMethod_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The renewal method for this `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearRenewalMethod() { - - renewalMethod_ = 0; - onChanged(); - return this; - } - - private int transferLockState_ = 0; - /** - * - * - *
-     * Controls whether the domain can be transferred to another registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - @java.lang.Override - public int getTransferLockStateValue() { - return transferLockState_; - } - /** - * - * - *
-     * Controls whether the domain can be transferred to another registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @param value The enum numeric value on the wire for transferLockState to set. - * @return This builder for chaining. - */ - public Builder setTransferLockStateValue(int value) { - - transferLockState_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Controls whether the domain can be transferred to another registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.TransferLockState getTransferLockState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.TransferLockState result = - com.google.cloud.domains.v1alpha2.TransferLockState.valueOf(transferLockState_); - return result == null - ? com.google.cloud.domains.v1alpha2.TransferLockState.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Controls whether the domain can be transferred to another registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @param value The transferLockState to set. - * @return This builder for chaining. - */ - public Builder setTransferLockState(com.google.cloud.domains.v1alpha2.TransferLockState value) { - if (value == null) { - throw new NullPointerException(); - } - - transferLockState_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Controls whether the domain can be transferred to another registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @return This builder for chaining. - */ - public Builder clearTransferLockState() { - - transferLockState_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.ManagementSettings) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.ManagementSettings) - private static final com.google.cloud.domains.v1alpha2.ManagementSettings DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.ManagementSettings(); - } - - public static com.google.cloud.domains.v1alpha2.ManagementSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ManagementSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ManagementSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ManagementSettingsOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ManagementSettingsOrBuilder.java deleted file mode 100644 index 46e5a416..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ManagementSettingsOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface ManagementSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.ManagementSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The renewal method for this `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for renewalMethod. - */ - int getRenewalMethodValue(); - /** - * - * - *
-   * Output only. The renewal method for this `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The renewalMethod. - */ - com.google.cloud.domains.v1alpha2.ManagementSettings.RenewalMethod getRenewalMethod(); - - /** - * - * - *
-   * Controls whether the domain can be transferred to another registrar.
-   * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - int getTransferLockStateValue(); - /** - * - * - *
-   * Controls whether the domain can be transferred to another registrar.
-   * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - com.google.cloud.domains.v1alpha2.TransferLockState getTransferLockState(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/OperationMetadata.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/OperationMetadata.java deleted file mode 100644 index 76013ce0..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/OperationMetadata.java +++ /dev/null @@ -1,1671 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Represents the metadata of the long-running operation. Output only.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.OperationMetadata} - */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.OperationMetadata) - OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use OperationMetadata.newBuilder() to construct. - private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private OperationMetadata() { - target_ = ""; - verb_ = ""; - statusDetail_ = ""; - apiVersion_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OperationMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_OperationMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_OperationMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.OperationMetadata.class, - com.google.cloud.domains.v1alpha2.OperationMetadata.Builder.class); - } - - public static final int CREATE_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int END_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp endTime_; - /** - * - * - *
-   * The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - @java.lang.Override - public boolean hasEndTime() { - return endTime_ != null; - } - /** - * - * - *
-   * The time the operation finished running.
-   * 
- * - * .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 the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); - } - - public static final int TARGET_FIELD_NUMBER = 3; - private volatile java.lang.Object target_; - /** - * - * - *
-   * Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3; - * - * @return The target. - */ - @java.lang.Override - public java.lang.String getTarget() { - java.lang.Object ref = target_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - target_ = s; - return s; - } - } - /** - * - * - *
-   * Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3; - * - * @return The bytes for target. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { - java.lang.Object ref = target_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - target_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERB_FIELD_NUMBER = 4; - private volatile java.lang.Object verb_; - /** - * - * - *
-   * Name of the verb executed by the operation.
-   * 
- * - * string verb = 4; - * - * @return The verb. - */ - @java.lang.Override - public java.lang.String getVerb() { - java.lang.Object ref = verb_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verb_ = s; - return s; - } - } - /** - * - * - *
-   * Name of the verb executed by the operation.
-   * 
- * - * string verb = 4; - * - * @return The bytes for verb. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { - java.lang.Object ref = verb_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - verb_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_DETAIL_FIELD_NUMBER = 5; - private volatile java.lang.Object statusDetail_; - /** - * - * - *
-   * Human-readable status of the operation, if any.
-   * 
- * - * string status_detail = 5; - * - * @return The statusDetail. - */ - @java.lang.Override - public java.lang.String getStatusDetail() { - java.lang.Object ref = statusDetail_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusDetail_ = s; - return s; - } - } - /** - * - * - *
-   * Human-readable status of the operation, if any.
-   * 
- * - * string status_detail = 5; - * - * @return The bytes for statusDetail. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStatusDetailBytes() { - java.lang.Object ref = statusDetail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - statusDetail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int API_VERSION_FIELD_NUMBER = 6; - private volatile java.lang.Object apiVersion_; - /** - * - * - *
-   * API version used to start the operation.
-   * 
- * - * string api_version = 6; - * - * @return The apiVersion. - */ - @java.lang.Override - public java.lang.String getApiVersion() { - java.lang.Object ref = apiVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - apiVersion_ = s; - return s; - } - } - /** - * - * - *
-   * API version used to start the operation.
-   * 
- * - * string api_version = 6; - * - * @return The bytes for apiVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { - java.lang.Object ref = apiVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - apiVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (createTime_ != null) { - output.writeMessage(1, getCreateTime()); - } - if (endTime_ != null) { - output.writeMessage(2, getEndTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusDetail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, apiVersion_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); - } - if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, apiVersion_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.OperationMetadata)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.OperationMetadata other = - (com.google.cloud.domains.v1alpha2.OperationMetadata) obj; - - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasEndTime() != other.hasEndTime()) return false; - if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusDetail().equals(other.getStatusDetail())) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasEndTime()) { - hash = (37 * hash) + END_TIME_FIELD_NUMBER; - hash = (53 * hash) + getEndTime().hashCode(); - } - hash = (37 * hash) + TARGET_FIELD_NUMBER; - hash = (53 * hash) + getTarget().hashCode(); - hash = (37 * hash) + VERB_FIELD_NUMBER; - hash = (53 * hash) + getVerb().hashCode(); - hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; - hash = (53 * hash) + getStatusDetail().hashCode(); - hash = (37 * hash) + API_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getApiVersion().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.OperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.OperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.OperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1alpha2.OperationMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Represents the metadata of the long-running operation. Output only.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.OperationMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.OperationMetadata) - com.google.cloud.domains.v1alpha2.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_OperationMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_OperationMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.OperationMetadata.class, - com.google.cloud.domains.v1alpha2.OperationMetadata.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.OperationMetadata.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - target_ = ""; - - verb_ = ""; - - statusDetail_ = ""; - - apiVersion_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_OperationMetadata_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.OperationMetadata getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.OperationMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.OperationMetadata build() { - com.google.cloud.domains.v1alpha2.OperationMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.OperationMetadata buildPartial() { - com.google.cloud.domains.v1alpha2.OperationMetadata result = - new com.google.cloud.domains.v1alpha2.OperationMetadata(this); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); - } - result.target_ = target_; - result.verb_ = verb_; - result.statusDetail_ = statusDetail_; - result.apiVersion_ = apiVersion_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.OperationMetadata) { - return mergeFrom((com.google.cloud.domains.v1alpha2.OperationMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.OperationMetadata other) { - if (other == com.google.cloud.domains.v1alpha2.OperationMetadata.getDefaultInstance()) - return this; - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasEndTime()) { - mergeEndTime(other.getEndTime()); - } - if (!other.getTarget().isEmpty()) { - target_ = other.target_; - onChanged(); - } - if (!other.getVerb().isEmpty()) { - verb_ = other.verb_; - onChanged(); - } - if (!other.getStatusDetail().isEmpty()) { - statusDetail_ = other.statusDetail_; - onChanged(); - } - if (!other.getApiVersion().isEmpty()) { - apiVersion_ = other.apiVersion_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - statusDetail_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: - { - apiVersion_ = input.readStringRequireUtf8(); - - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp endTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; - /** - * - * - *
-     * The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; - } - /** - * - * - *
-     * The time the operation finished running.
-     * 
- * - * .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 the operation finished running.
-     * 
- * - * .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 the operation finished running.
-     * 
- * - * .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 the operation finished running.
-     * 
- * - * .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 the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - - onChanged(); - return getEndTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The time the operation finished running.
-     * 
- * - * .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 the operation finished running.
-     * 
- * - * .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_; - } - - private java.lang.Object target_ = ""; - /** - * - * - *
-     * Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3; - * - * @return The target. - */ - public java.lang.String getTarget() { - java.lang.Object ref = target_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - target_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3; - * - * @return The bytes for target. - */ - public com.google.protobuf.ByteString getTargetBytes() { - java.lang.Object ref = target_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - target_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3; - * - * @param value The target to set. - * @return This builder for chaining. - */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - target_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3; - * - * @return This builder for chaining. - */ - public Builder clearTarget() { - - target_ = getDefaultInstance().getTarget(); - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3; - * - * @param value The bytes for target to set. - * @return This builder for chaining. - */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - target_ = value; - onChanged(); - return this; - } - - private java.lang.Object verb_ = ""; - /** - * - * - *
-     * Name of the verb executed by the operation.
-     * 
- * - * string verb = 4; - * - * @return The verb. - */ - public java.lang.String getVerb() { - java.lang.Object ref = verb_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verb_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Name of the verb executed by the operation.
-     * 
- * - * string verb = 4; - * - * @return The bytes for verb. - */ - public com.google.protobuf.ByteString getVerbBytes() { - java.lang.Object ref = verb_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - verb_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Name of the verb executed by the operation.
-     * 
- * - * string verb = 4; - * - * @param value The verb to set. - * @return This builder for chaining. - */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - verb_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the verb executed by the operation.
-     * 
- * - * string verb = 4; - * - * @return This builder for chaining. - */ - public Builder clearVerb() { - - verb_ = getDefaultInstance().getVerb(); - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the verb executed by the operation.
-     * 
- * - * string verb = 4; - * - * @param value The bytes for verb to set. - * @return This builder for chaining. - */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - verb_ = value; - onChanged(); - return this; - } - - private java.lang.Object statusDetail_ = ""; - /** - * - * - *
-     * Human-readable status of the operation, if any.
-     * 
- * - * string status_detail = 5; - * - * @return The statusDetail. - */ - public java.lang.String getStatusDetail() { - java.lang.Object ref = statusDetail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusDetail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Human-readable status of the operation, if any.
-     * 
- * - * string status_detail = 5; - * - * @return The bytes for statusDetail. - */ - public com.google.protobuf.ByteString getStatusDetailBytes() { - java.lang.Object ref = statusDetail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - statusDetail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Human-readable status of the operation, if any.
-     * 
- * - * string status_detail = 5; - * - * @param value The statusDetail to set. - * @return This builder for chaining. - */ - public Builder setStatusDetail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusDetail_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Human-readable status of the operation, if any.
-     * 
- * - * string status_detail = 5; - * - * @return This builder for chaining. - */ - public Builder clearStatusDetail() { - - statusDetail_ = getDefaultInstance().getStatusDetail(); - onChanged(); - return this; - } - /** - * - * - *
-     * Human-readable status of the operation, if any.
-     * 
- * - * string status_detail = 5; - * - * @param value The bytes for statusDetail to set. - * @return This builder for chaining. - */ - public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusDetail_ = value; - onChanged(); - return this; - } - - private java.lang.Object apiVersion_ = ""; - /** - * - * - *
-     * API version used to start the operation.
-     * 
- * - * string api_version = 6; - * - * @return The apiVersion. - */ - public java.lang.String getApiVersion() { - java.lang.Object ref = apiVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - apiVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * API version used to start the operation.
-     * 
- * - * string api_version = 6; - * - * @return The bytes for apiVersion. - */ - public com.google.protobuf.ByteString getApiVersionBytes() { - java.lang.Object ref = apiVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - apiVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * API version used to start the operation.
-     * 
- * - * string api_version = 6; - * - * @param value The apiVersion to set. - * @return This builder for chaining. - */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - apiVersion_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * API version used to start the operation.
-     * 
- * - * string api_version = 6; - * - * @return This builder for chaining. - */ - public Builder clearApiVersion() { - - apiVersion_ = getDefaultInstance().getApiVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * API version used to start the operation.
-     * 
- * - * string api_version = 6; - * - * @param value The bytes for apiVersion to set. - * @return This builder for chaining. - */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - apiVersion_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.OperationMetadata) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.OperationMetadata) - private static final com.google.cloud.domains.v1alpha2.OperationMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.OperationMetadata(); - } - - public static com.google.cloud.domains.v1alpha2.OperationMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.OperationMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/OperationMetadataOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/OperationMetadataOrBuilder.java deleted file mode 100644 index a608c30e..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/OperationMetadataOrBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface OperationMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.OperationMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - boolean hasEndTime(); - /** - * - * - *
-   * The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return The endTime. - */ - com.google.protobuf.Timestamp getEndTime(); - /** - * - * - *
-   * The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); - - /** - * - * - *
-   * Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3; - * - * @return The target. - */ - java.lang.String getTarget(); - /** - * - * - *
-   * Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3; - * - * @return The bytes for target. - */ - com.google.protobuf.ByteString getTargetBytes(); - - /** - * - * - *
-   * Name of the verb executed by the operation.
-   * 
- * - * string verb = 4; - * - * @return The verb. - */ - java.lang.String getVerb(); - /** - * - * - *
-   * Name of the verb executed by the operation.
-   * 
- * - * string verb = 4; - * - * @return The bytes for verb. - */ - com.google.protobuf.ByteString getVerbBytes(); - - /** - * - * - *
-   * Human-readable status of the operation, if any.
-   * 
- * - * string status_detail = 5; - * - * @return The statusDetail. - */ - java.lang.String getStatusDetail(); - /** - * - * - *
-   * Human-readable status of the operation, if any.
-   * 
- * - * string status_detail = 5; - * - * @return The bytes for statusDetail. - */ - com.google.protobuf.ByteString getStatusDetailBytes(); - - /** - * - * - *
-   * API version used to start the operation.
-   * 
- * - * string api_version = 6; - * - * @return The apiVersion. - */ - java.lang.String getApiVersion(); - /** - * - * - *
-   * API version used to start the operation.
-   * 
- * - * string api_version = 6; - * - * @return The bytes for apiVersion. - */ - com.google.protobuf.ByteString getApiVersionBytes(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegisterDomainRequest.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegisterDomainRequest.java deleted file mode 100644 index bfd72788..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegisterDomainRequest.java +++ /dev/null @@ -1,2126 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Request for the `RegisterDomain` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.RegisterDomainRequest} - */ -public final class RegisterDomainRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.RegisterDomainRequest) - RegisterDomainRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RegisterDomainRequest.newBuilder() to construct. - private RegisterDomainRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RegisterDomainRequest() { - parent_ = ""; - domainNotices_ = java.util.Collections.emptyList(); - contactNotices_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RegisterDomainRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RegisterDomainRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RegisterDomainRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.RegisterDomainRequest.class, - com.google.cloud.domains.v1alpha2.RegisterDomainRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGISTRATION_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1alpha2.Registration registration_; - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - @java.lang.Override - public boolean hasRegistration() { - return registration_ != null; - } - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.Registration getRegistration() { - return registration_ == null - ? com.google.cloud.domains.v1alpha2.Registration.getDefaultInstance() - : registration_; - } - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegistrationOrBuilder getRegistrationOrBuilder() { - return getRegistration(); - } - - public static final int DOMAIN_NOTICES_FIELD_NUMBER = 3; - private java.util.List domainNotices_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.DomainNotice> - domainNotices_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.DomainNotice>() { - public com.google.cloud.domains.v1alpha2.DomainNotice convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.DomainNotice result = - com.google.cloud.domains.v1alpha2.DomainNotice.valueOf(from); - return result == null - ? com.google.cloud.domains.v1alpha2.DomainNotice.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @return A list containing the domainNotices. - */ - @java.lang.Override - public java.util.List getDomainNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.DomainNotice>( - domainNotices_, domainNotices_converter_); - } - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @return The count of domainNotices. - */ - @java.lang.Override - public int getDomainNoticesCount() { - return domainNotices_.size(); - } - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DomainNotice getDomainNotices(int index) { - return domainNotices_converter_.convert(domainNotices_.get(index)); - } - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - @java.lang.Override - public java.util.List getDomainNoticesValueList() { - return domainNotices_; - } - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - @java.lang.Override - public int getDomainNoticesValue(int index) { - return domainNotices_.get(index); - } - - private int domainNoticesMemoizedSerializedSize; - - public static final int CONTACT_NOTICES_FIELD_NUMBER = 4; - private java.util.List contactNotices_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactNotice> - contactNotices_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactNotice>() { - public com.google.cloud.domains.v1alpha2.ContactNotice convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.ContactNotice result = - com.google.cloud.domains.v1alpha2.ContactNotice.valueOf(from); - return result == null - ? com.google.cloud.domains.v1alpha2.ContactNotice.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - @java.lang.Override - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesValueList() { - return contactNotices_; - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - @java.lang.Override - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - - private int contactNoticesMemoizedSerializedSize; - - public static final int YEARLY_PRICE_FIELD_NUMBER = 5; - private com.google.type.Money yearlyPrice_; - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - @java.lang.Override - public boolean hasYearlyPrice() { - return yearlyPrice_ != null; - } - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - @java.lang.Override - public com.google.type.Money getYearlyPrice() { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - return getYearlyPrice(); - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 6; - private boolean validateOnly_; - /** - * - * - *
-   * When true, only validation is performed, without actually registering
-   * the domain. Follows:
-   * https://cloud.google.com/apis/design/design_patterns#request_validation
-   * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (registration_ != null) { - output.writeMessage(2, getRegistration()); - } - if (getDomainNoticesList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(domainNoticesMemoizedSerializedSize); - } - for (int i = 0; i < domainNotices_.size(); i++) { - output.writeEnumNoTag(domainNotices_.get(i)); - } - if (getContactNoticesList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(contactNoticesMemoizedSerializedSize); - } - for (int i = 0; i < contactNotices_.size(); i++) { - output.writeEnumNoTag(contactNotices_.get(i)); - } - if (yearlyPrice_ != null) { - output.writeMessage(5, getYearlyPrice()); - } - if (validateOnly_ != false) { - output.writeBool(6, validateOnly_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (registration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRegistration()); - } - { - int dataSize = 0; - for (int i = 0; i < domainNotices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(domainNotices_.get(i)); - } - size += dataSize; - if (!getDomainNoticesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - domainNoticesMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < contactNotices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(contactNotices_.get(i)); - } - size += dataSize; - if (!getContactNoticesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - contactNoticesMemoizedSerializedSize = dataSize; - } - if (yearlyPrice_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getYearlyPrice()); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, validateOnly_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.RegisterDomainRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.RegisterDomainRequest other = - (com.google.cloud.domains.v1alpha2.RegisterDomainRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasRegistration() != other.hasRegistration()) return false; - if (hasRegistration()) { - if (!getRegistration().equals(other.getRegistration())) return false; - } - if (!domainNotices_.equals(other.domainNotices_)) return false; - if (!contactNotices_.equals(other.contactNotices_)) return false; - if (hasYearlyPrice() != other.hasYearlyPrice()) return false; - if (hasYearlyPrice()) { - if (!getYearlyPrice().equals(other.getYearlyPrice())) return false; - } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasRegistration()) { - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - } - if (getDomainNoticesCount() > 0) { - hash = (37 * hash) + DOMAIN_NOTICES_FIELD_NUMBER; - hash = (53 * hash) + domainNotices_.hashCode(); - } - if (getContactNoticesCount() > 0) { - hash = (37 * hash) + CONTACT_NOTICES_FIELD_NUMBER; - hash = (53 * hash) + contactNotices_.hashCode(); - } - if (hasYearlyPrice()) { - hash = (37 * hash) + YEARLY_PRICE_FIELD_NUMBER; - hash = (53 * hash) + getYearlyPrice().hashCode(); - } - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.RegisterDomainRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RegisterDomainRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RegisterDomainRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RegisterDomainRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RegisterDomainRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RegisterDomainRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RegisterDomainRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RegisterDomainRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RegisterDomainRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RegisterDomainRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RegisterDomainRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RegisterDomainRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.RegisterDomainRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `RegisterDomain` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.RegisterDomainRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.RegisterDomainRequest) - com.google.cloud.domains.v1alpha2.RegisterDomainRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RegisterDomainRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RegisterDomainRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.RegisterDomainRequest.class, - com.google.cloud.domains.v1alpha2.RegisterDomainRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.RegisterDomainRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (registrationBuilder_ == null) { - registration_ = null; - } else { - registration_ = null; - registrationBuilder_ = null; - } - domainNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RegisterDomainRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegisterDomainRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.RegisterDomainRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegisterDomainRequest build() { - com.google.cloud.domains.v1alpha2.RegisterDomainRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegisterDomainRequest buildPartial() { - com.google.cloud.domains.v1alpha2.RegisterDomainRequest result = - new com.google.cloud.domains.v1alpha2.RegisterDomainRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; - if (registrationBuilder_ == null) { - result.registration_ = registration_; - } else { - result.registration_ = registrationBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - domainNotices_ = java.util.Collections.unmodifiableList(domainNotices_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.domainNotices_ = domainNotices_; - if (((bitField0_ & 0x00000002) != 0)) { - contactNotices_ = java.util.Collections.unmodifiableList(contactNotices_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.contactNotices_ = contactNotices_; - if (yearlyPriceBuilder_ == null) { - result.yearlyPrice_ = yearlyPrice_; - } else { - result.yearlyPrice_ = yearlyPriceBuilder_.build(); - } - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.RegisterDomainRequest) { - return mergeFrom((com.google.cloud.domains.v1alpha2.RegisterDomainRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.RegisterDomainRequest other) { - if (other == com.google.cloud.domains.v1alpha2.RegisterDomainRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasRegistration()) { - mergeRegistration(other.getRegistration()); - } - if (!other.domainNotices_.isEmpty()) { - if (domainNotices_.isEmpty()) { - domainNotices_ = other.domainNotices_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDomainNoticesIsMutable(); - domainNotices_.addAll(other.domainNotices_); - } - onChanged(); - } - if (!other.contactNotices_.isEmpty()) { - if (contactNotices_.isEmpty()) { - contactNotices_ = other.contactNotices_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureContactNoticesIsMutable(); - contactNotices_.addAll(other.contactNotices_); - } - onChanged(); - } - if (other.hasYearlyPrice()) { - mergeYearlyPrice(other.getYearlyPrice()); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getRegistrationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 24: - { - int tmpRaw = input.readEnum(); - ensureDomainNoticesIsMutable(); - domainNotices_.add(tmpRaw); - break; - } // case 24 - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureDomainNoticesIsMutable(); - domainNotices_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 32: - { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - break; - } // case 32 - case 34: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 34 - case 42: - { - input.readMessage(getYearlyPriceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 48: - { - validateOnly_ = input.readBool(); - - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1alpha2.Registration registration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.Registration, - com.google.cloud.domains.v1alpha2.Registration.Builder, - com.google.cloud.domains.v1alpha2.RegistrationOrBuilder> - registrationBuilder_; - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - public boolean hasRegistration() { - return registrationBuilder_ != null || registration_ != null; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - public com.google.cloud.domains.v1alpha2.Registration getRegistration() { - if (registrationBuilder_ == null) { - return registration_ == null - ? com.google.cloud.domains.v1alpha2.Registration.getDefaultInstance() - : registration_; - } else { - return registrationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistration(com.google.cloud.domains.v1alpha2.Registration value) { - if (registrationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - registration_ = value; - onChanged(); - } else { - registrationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistration( - com.google.cloud.domains.v1alpha2.Registration.Builder builderForValue) { - if (registrationBuilder_ == null) { - registration_ = builderForValue.build(); - onChanged(); - } else { - registrationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRegistration(com.google.cloud.domains.v1alpha2.Registration value) { - if (registrationBuilder_ == null) { - if (registration_ != null) { - registration_ = - com.google.cloud.domains.v1alpha2.Registration.newBuilder(registration_) - .mergeFrom(value) - .buildPartial(); - } else { - registration_ = value; - } - onChanged(); - } else { - registrationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRegistration() { - if (registrationBuilder_ == null) { - registration_ = null; - onChanged(); - } else { - registration_ = null; - registrationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1alpha2.Registration.Builder getRegistrationBuilder() { - - onChanged(); - return getRegistrationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1alpha2.RegistrationOrBuilder getRegistrationOrBuilder() { - if (registrationBuilder_ != null) { - return registrationBuilder_.getMessageOrBuilder(); - } else { - return registration_ == null - ? com.google.cloud.domains.v1alpha2.Registration.getDefaultInstance() - : registration_; - } - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.Registration, - com.google.cloud.domains.v1alpha2.Registration.Builder, - com.google.cloud.domains.v1alpha2.RegistrationOrBuilder> - getRegistrationFieldBuilder() { - if (registrationBuilder_ == null) { - registrationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.Registration, - com.google.cloud.domains.v1alpha2.Registration.Builder, - com.google.cloud.domains.v1alpha2.RegistrationOrBuilder>( - getRegistration(), getParentForChildren(), isClean()); - registration_ = null; - } - return registrationBuilder_; - } - - private java.util.List domainNotices_ = java.util.Collections.emptyList(); - - private void ensureDomainNoticesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - domainNotices_ = new java.util.ArrayList(domainNotices_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @return A list containing the domainNotices. - */ - public java.util.List getDomainNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.DomainNotice>( - domainNotices_, domainNotices_converter_); - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @return The count of domainNotices. - */ - public int getDomainNoticesCount() { - return domainNotices_.size(); - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - public com.google.cloud.domains.v1alpha2.DomainNotice getDomainNotices(int index) { - return domainNotices_converter_.convert(domainNotices_.get(index)); - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @param index The index to set the value at. - * @param value The domainNotices to set. - * @return This builder for chaining. - */ - public Builder setDomainNotices( - int index, com.google.cloud.domains.v1alpha2.DomainNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainNoticesIsMutable(); - domainNotices_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @param value The domainNotices to add. - * @return This builder for chaining. - */ - public Builder addDomainNotices(com.google.cloud.domains.v1alpha2.DomainNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainNoticesIsMutable(); - domainNotices_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @param values The domainNotices to add. - * @return This builder for chaining. - */ - public Builder addAllDomainNotices( - java.lang.Iterable values) { - ensureDomainNoticesIsMutable(); - for (com.google.cloud.domains.v1alpha2.DomainNotice value : values) { - domainNotices_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @return This builder for chaining. - */ - public Builder clearDomainNotices() { - domainNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - public java.util.List getDomainNoticesValueList() { - return java.util.Collections.unmodifiableList(domainNotices_); - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - public int getDomainNoticesValue(int index) { - return domainNotices_.get(index); - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for domainNotices to set. - * @return This builder for chaining. - */ - public Builder setDomainNoticesValue(int index, int value) { - ensureDomainNoticesIsMutable(); - domainNotices_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @param value The enum numeric value on the wire for domainNotices to add. - * @return This builder for chaining. - */ - public Builder addDomainNoticesValue(int value) { - ensureDomainNoticesIsMutable(); - domainNotices_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @param values The enum numeric values on the wire for domainNotices to add. - * @return This builder for chaining. - */ - public Builder addAllDomainNoticesValue(java.lang.Iterable values) { - ensureDomainNoticesIsMutable(); - for (int value : values) { - domainNotices_.add(value); - } - onChanged(); - return this; - } - - private java.util.List contactNotices_ = java.util.Collections.emptyList(); - - private void ensureContactNoticesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - contactNotices_ = new java.util.ArrayList(contactNotices_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - public com.google.cloud.domains.v1alpha2.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param index The index to set the value at. - * @param value The contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNotices( - int index, com.google.cloud.domains.v1alpha2.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param value The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNotices(com.google.cloud.domains.v1alpha2.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param values The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNotices( - java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (com.google.cloud.domains.v1alpha2.ContactNotice value : values) { - contactNotices_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return This builder for chaining. - */ - public Builder clearContactNotices() { - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - public java.util.List getContactNoticesValueList() { - return java.util.Collections.unmodifiableList(contactNotices_); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNoticesValue(int index, int value) { - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param value The enum numeric value on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNoticesValue(int value) { - ensureContactNoticesIsMutable(); - contactNotices_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param values The enum numeric values on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNoticesValue(java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (int value : values) { - contactNotices_.add(value); - } - onChanged(); - return this; - } - - private com.google.type.Money yearlyPrice_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - yearlyPriceBuilder_; - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - public boolean hasYearlyPrice() { - return yearlyPriceBuilder_ != null || yearlyPrice_ != null; - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - public com.google.type.Money getYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } else { - return yearlyPriceBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - yearlyPrice_ = value; - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setYearlyPrice(com.google.type.Money.Builder builderForValue) { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = builderForValue.build(); - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (yearlyPrice_ != null) { - yearlyPrice_ = - com.google.type.Money.newBuilder(yearlyPrice_).mergeFrom(value).buildPartial(); - } else { - yearlyPrice_ = value; - } - onChanged(); - } else { - yearlyPriceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - onChanged(); - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.type.Money.Builder getYearlyPriceBuilder() { - - onChanged(); - return getYearlyPriceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - if (yearlyPriceBuilder_ != null) { - return yearlyPriceBuilder_.getMessageOrBuilder(); - } else { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - getYearlyPriceFieldBuilder() { - if (yearlyPriceBuilder_ == null) { - yearlyPriceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, - com.google.type.Money.Builder, - com.google.type.MoneyOrBuilder>( - getYearlyPrice(), getParentForChildren(), isClean()); - yearlyPrice_ = null; - } - return yearlyPriceBuilder_; - } - - private boolean validateOnly_; - /** - * - * - *
-     * When true, only validation is performed, without actually registering
-     * the domain. Follows:
-     * https://cloud.google.com/apis/design/design_patterns#request_validation
-     * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - * - * - *
-     * When true, only validation is performed, without actually registering
-     * the domain. Follows:
-     * https://cloud.google.com/apis/design/design_patterns#request_validation
-     * 
- * - * bool validate_only = 6; - * - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * When true, only validation is performed, without actually registering
-     * the domain. Follows:
-     * https://cloud.google.com/apis/design/design_patterns#request_validation
-     * 
- * - * bool validate_only = 6; - * - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.RegisterDomainRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.RegisterDomainRequest) - private static final com.google.cloud.domains.v1alpha2.RegisterDomainRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.RegisterDomainRequest(); - } - - public static com.google.cloud.domains.v1alpha2.RegisterDomainRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegisterDomainRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegisterDomainRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegisterDomainRequestOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegisterDomainRequestOrBuilder.java deleted file mode 100644 index 057d612d..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegisterDomainRequestOrBuilder.java +++ /dev/null @@ -1,294 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface RegisterDomainRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.RegisterDomainRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - boolean hasRegistration(); - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - com.google.cloud.domains.v1alpha2.Registration getRegistration(); - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1alpha2.RegistrationOrBuilder getRegistrationOrBuilder(); - - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @return A list containing the domainNotices. - */ - java.util.List getDomainNoticesList(); - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @return The count of domainNotices. - */ - int getDomainNoticesCount(); - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - com.google.cloud.domains.v1alpha2.DomainNotice getDomainNotices(int index); - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - java.util.List getDomainNoticesValueList(); - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - int getDomainNoticesValue(int index); - - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - java.util.List getContactNoticesList(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - int getContactNoticesCount(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - com.google.cloud.domains.v1alpha2.ContactNotice getContactNotices(int index); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - java.util.List getContactNoticesValueList(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - int getContactNoticesValue(int index); - - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - boolean hasYearlyPrice(); - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - com.google.type.Money getYearlyPrice(); - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder(); - - /** - * - * - *
-   * When true, only validation is performed, without actually registering
-   * the domain. Follows:
-   * https://cloud.google.com/apis/design/design_patterns#request_validation
-   * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegisterParameters.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegisterParameters.java deleted file mode 100644 index ef072df1..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegisterParameters.java +++ /dev/null @@ -1,2024 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Parameters required to register a new domain.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.RegisterParameters} - */ -public final class RegisterParameters extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.RegisterParameters) - RegisterParametersOrBuilder { - private static final long serialVersionUID = 0L; - // Use RegisterParameters.newBuilder() to construct. - private RegisterParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RegisterParameters() { - domainName_ = ""; - availability_ = 0; - supportedPrivacy_ = java.util.Collections.emptyList(); - domainNotices_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RegisterParameters(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RegisterParameters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RegisterParameters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.RegisterParameters.class, - com.google.cloud.domains.v1alpha2.RegisterParameters.Builder.class); - } - - /** - * - * - *
-   * Possible availability states of a domain name.
-   * 
- * - * Protobuf enum {@code google.cloud.domains.v1alpha2.RegisterParameters.Availability} - */ - public enum Availability implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The availability is unspecified.
-     * 
- * - * AVAILABILITY_UNSPECIFIED = 0; - */ - AVAILABILITY_UNSPECIFIED(0), - /** - * - * - *
-     * The domain is available for registration.
-     * 
- * - * AVAILABLE = 1; - */ - AVAILABLE(1), - /** - * - * - *
-     * The domain is not available for registration. Generally this means it is
-     * already registered to another party.
-     * 
- * - * UNAVAILABLE = 2; - */ - UNAVAILABLE(2), - /** - * - * - *
-     * The domain is not currently supported by Cloud Domains, but may
-     * be available elsewhere.
-     * 
- * - * UNSUPPORTED = 3; - */ - UNSUPPORTED(3), - /** - * - * - *
-     * Cloud Domains is unable to determine domain availability, generally
-     * due to system maintenance at the domain name registry.
-     * 
- * - * UNKNOWN = 4; - */ - UNKNOWN(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The availability is unspecified.
-     * 
- * - * AVAILABILITY_UNSPECIFIED = 0; - */ - public static final int AVAILABILITY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The domain is available for registration.
-     * 
- * - * AVAILABLE = 1; - */ - public static final int AVAILABLE_VALUE = 1; - /** - * - * - *
-     * The domain is not available for registration. Generally this means it is
-     * already registered to another party.
-     * 
- * - * UNAVAILABLE = 2; - */ - public static final int UNAVAILABLE_VALUE = 2; - /** - * - * - *
-     * The domain is not currently supported by Cloud Domains, but may
-     * be available elsewhere.
-     * 
- * - * UNSUPPORTED = 3; - */ - public static final int UNSUPPORTED_VALUE = 3; - /** - * - * - *
-     * Cloud Domains is unable to determine domain availability, generally
-     * due to system maintenance at the domain name registry.
-     * 
- * - * UNKNOWN = 4; - */ - public static final int UNKNOWN_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 Availability 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 Availability forNumber(int value) { - switch (value) { - case 0: - return AVAILABILITY_UNSPECIFIED; - case 1: - return AVAILABLE; - case 2: - return UNAVAILABLE; - case 3: - return UNSUPPORTED; - case 4: - return UNKNOWN; - 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 Availability findValueByNumber(int number) { - return Availability.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.RegisterParameters.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Availability[] VALUES = values(); - - public static Availability 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 Availability(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1alpha2.RegisterParameters.Availability) - } - - public static final int DOMAIN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object domainName_; - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - @java.lang.Override - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } - } - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AVAILABILITY_FIELD_NUMBER = 2; - private int availability_; - /** - * - * - *
-   * Indicates whether the domain is available for registration. This value is
-   * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-   * approximate when obtained by calling `SearchDomains`.
-   * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters.Availability availability = 2; - * - * @return The enum numeric value on the wire for availability. - */ - @java.lang.Override - public int getAvailabilityValue() { - return availability_; - } - /** - * - * - *
-   * Indicates whether the domain is available for registration. This value is
-   * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-   * approximate when obtained by calling `SearchDomains`.
-   * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters.Availability availability = 2; - * - * @return The availability. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegisterParameters.Availability getAvailability() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.RegisterParameters.Availability result = - com.google.cloud.domains.v1alpha2.RegisterParameters.Availability.valueOf(availability_); - return result == null - ? com.google.cloud.domains.v1alpha2.RegisterParameters.Availability.UNRECOGNIZED - : result; - } - - public static final int SUPPORTED_PRIVACY_FIELD_NUMBER = 3; - private java.util.List supportedPrivacy_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactPrivacy> - supportedPrivacy_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactPrivacy>() { - public com.google.cloud.domains.v1alpha2.ContactPrivacy convert( - java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.ContactPrivacy result = - com.google.cloud.domains.v1alpha2.ContactPrivacy.valueOf(from); - return result == null - ? com.google.cloud.domains.v1alpha2.ContactPrivacy.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the supportedPrivacy. - */ - @java.lang.Override - public java.util.List - getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @return The count of supportedPrivacy. - */ - @java.lang.Override - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - @java.lang.Override - public java.util.List getSupportedPrivacyValueList() { - return supportedPrivacy_; - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - @java.lang.Override - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - - private int supportedPrivacyMemoizedSerializedSize; - - public static final int DOMAIN_NOTICES_FIELD_NUMBER = 4; - private java.util.List domainNotices_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.DomainNotice> - domainNotices_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.DomainNotice>() { - public com.google.cloud.domains.v1alpha2.DomainNotice convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.DomainNotice result = - com.google.cloud.domains.v1alpha2.DomainNotice.valueOf(from); - return result == null - ? com.google.cloud.domains.v1alpha2.DomainNotice.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @return A list containing the domainNotices. - */ - @java.lang.Override - public java.util.List getDomainNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.DomainNotice>( - domainNotices_, domainNotices_converter_); - } - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @return The count of domainNotices. - */ - @java.lang.Override - public int getDomainNoticesCount() { - return domainNotices_.size(); - } - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DomainNotice getDomainNotices(int index) { - return domainNotices_converter_.convert(domainNotices_.get(index)); - } - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - @java.lang.Override - public java.util.List getDomainNoticesValueList() { - return domainNotices_; - } - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - @java.lang.Override - public int getDomainNoticesValue(int index) { - return domainNotices_.get(index); - } - - private int domainNoticesMemoizedSerializedSize; - - public static final int YEARLY_PRICE_FIELD_NUMBER = 5; - private com.google.type.Money yearlyPrice_; - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - * - * @return Whether the yearlyPrice field is set. - */ - @java.lang.Override - public boolean hasYearlyPrice() { - return yearlyPrice_ != null; - } - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - * - * @return The yearlyPrice. - */ - @java.lang.Override - public com.google.type.Money getYearlyPrice() { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - */ - @java.lang.Override - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - return getYearlyPrice(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domainName_); - } - if (availability_ - != com.google.cloud.domains.v1alpha2.RegisterParameters.Availability - .AVAILABILITY_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, availability_); - } - if (getSupportedPrivacyList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(supportedPrivacyMemoizedSerializedSize); - } - for (int i = 0; i < supportedPrivacy_.size(); i++) { - output.writeEnumNoTag(supportedPrivacy_.get(i)); - } - if (getDomainNoticesList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(domainNoticesMemoizedSerializedSize); - } - for (int i = 0; i < domainNotices_.size(); i++) { - output.writeEnumNoTag(domainNotices_.get(i)); - } - if (yearlyPrice_ != null) { - output.writeMessage(5, getYearlyPrice()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domainName_); - } - if (availability_ - != com.google.cloud.domains.v1alpha2.RegisterParameters.Availability - .AVAILABILITY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, availability_); - } - { - int dataSize = 0; - for (int i = 0; i < supportedPrivacy_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(supportedPrivacy_.get(i)); - } - size += dataSize; - if (!getSupportedPrivacyList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - supportedPrivacyMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < domainNotices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(domainNotices_.get(i)); - } - size += dataSize; - if (!getDomainNoticesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - domainNoticesMemoizedSerializedSize = dataSize; - } - if (yearlyPrice_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getYearlyPrice()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.RegisterParameters)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.RegisterParameters other = - (com.google.cloud.domains.v1alpha2.RegisterParameters) obj; - - if (!getDomainName().equals(other.getDomainName())) return false; - if (availability_ != other.availability_) return false; - if (!supportedPrivacy_.equals(other.supportedPrivacy_)) return false; - if (!domainNotices_.equals(other.domainNotices_)) return false; - if (hasYearlyPrice() != other.hasYearlyPrice()) return false; - if (hasYearlyPrice()) { - if (!getYearlyPrice().equals(other.getYearlyPrice())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOMAIN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDomainName().hashCode(); - hash = (37 * hash) + AVAILABILITY_FIELD_NUMBER; - hash = (53 * hash) + availability_; - if (getSupportedPrivacyCount() > 0) { - hash = (37 * hash) + SUPPORTED_PRIVACY_FIELD_NUMBER; - hash = (53 * hash) + supportedPrivacy_.hashCode(); - } - if (getDomainNoticesCount() > 0) { - hash = (37 * hash) + DOMAIN_NOTICES_FIELD_NUMBER; - hash = (53 * hash) + domainNotices_.hashCode(); - } - if (hasYearlyPrice()) { - hash = (37 * hash) + YEARLY_PRICE_FIELD_NUMBER; - hash = (53 * hash) + getYearlyPrice().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.RegisterParameters parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RegisterParameters parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RegisterParameters parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RegisterParameters parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RegisterParameters parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RegisterParameters parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RegisterParameters parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RegisterParameters parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RegisterParameters parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RegisterParameters parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RegisterParameters parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RegisterParameters parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1alpha2.RegisterParameters prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 required to register a new domain.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.RegisterParameters} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.RegisterParameters) - com.google.cloud.domains.v1alpha2.RegisterParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RegisterParameters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RegisterParameters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.RegisterParameters.class, - com.google.cloud.domains.v1alpha2.RegisterParameters.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.RegisterParameters.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - domainName_ = ""; - - availability_ = 0; - - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - domainNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RegisterParameters_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegisterParameters getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.RegisterParameters.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegisterParameters build() { - com.google.cloud.domains.v1alpha2.RegisterParameters result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegisterParameters buildPartial() { - com.google.cloud.domains.v1alpha2.RegisterParameters result = - new com.google.cloud.domains.v1alpha2.RegisterParameters(this); - int from_bitField0_ = bitField0_; - result.domainName_ = domainName_; - result.availability_ = availability_; - if (((bitField0_ & 0x00000001) != 0)) { - supportedPrivacy_ = java.util.Collections.unmodifiableList(supportedPrivacy_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.supportedPrivacy_ = supportedPrivacy_; - if (((bitField0_ & 0x00000002) != 0)) { - domainNotices_ = java.util.Collections.unmodifiableList(domainNotices_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.domainNotices_ = domainNotices_; - if (yearlyPriceBuilder_ == null) { - result.yearlyPrice_ = yearlyPrice_; - } else { - result.yearlyPrice_ = yearlyPriceBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.RegisterParameters) { - return mergeFrom((com.google.cloud.domains.v1alpha2.RegisterParameters) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.RegisterParameters other) { - if (other == com.google.cloud.domains.v1alpha2.RegisterParameters.getDefaultInstance()) - return this; - if (!other.getDomainName().isEmpty()) { - domainName_ = other.domainName_; - onChanged(); - } - if (other.availability_ != 0) { - setAvailabilityValue(other.getAvailabilityValue()); - } - if (!other.supportedPrivacy_.isEmpty()) { - if (supportedPrivacy_.isEmpty()) { - supportedPrivacy_ = other.supportedPrivacy_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.addAll(other.supportedPrivacy_); - } - onChanged(); - } - if (!other.domainNotices_.isEmpty()) { - if (domainNotices_.isEmpty()) { - domainNotices_ = other.domainNotices_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDomainNoticesIsMutable(); - domainNotices_.addAll(other.domainNotices_); - } - onChanged(); - } - if (other.hasYearlyPrice()) { - mergeYearlyPrice(other.getYearlyPrice()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - domainName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - availability_ = input.readEnum(); - - break; - } // case 16 - case 24: - { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - break; - } // case 24 - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 32: - { - int tmpRaw = input.readEnum(); - ensureDomainNoticesIsMutable(); - domainNotices_.add(tmpRaw); - break; - } // case 32 - case 34: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureDomainNoticesIsMutable(); - domainNotices_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 34 - case 42: - { - input.readMessage(getYearlyPriceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object domainName_ = ""; - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @param value The domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domainName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDomainName() { - - domainName_ = getDefaultInstance().getDomainName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @param value The bytes for domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domainName_ = value; - onChanged(); - return this; - } - - private int availability_ = 0; - /** - * - * - *
-     * Indicates whether the domain is available for registration. This value is
-     * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-     * approximate when obtained by calling `SearchDomains`.
-     * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters.Availability availability = 2; - * - * @return The enum numeric value on the wire for availability. - */ - @java.lang.Override - public int getAvailabilityValue() { - return availability_; - } - /** - * - * - *
-     * Indicates whether the domain is available for registration. This value is
-     * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-     * approximate when obtained by calling `SearchDomains`.
-     * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters.Availability availability = 2; - * - * @param value The enum numeric value on the wire for availability to set. - * @return This builder for chaining. - */ - public Builder setAvailabilityValue(int value) { - - availability_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Indicates whether the domain is available for registration. This value is
-     * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-     * approximate when obtained by calling `SearchDomains`.
-     * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters.Availability availability = 2; - * - * @return The availability. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegisterParameters.Availability getAvailability() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.RegisterParameters.Availability result = - com.google.cloud.domains.v1alpha2.RegisterParameters.Availability.valueOf(availability_); - return result == null - ? com.google.cloud.domains.v1alpha2.RegisterParameters.Availability.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Indicates whether the domain is available for registration. This value is
-     * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-     * approximate when obtained by calling `SearchDomains`.
-     * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters.Availability availability = 2; - * - * @param value The availability to set. - * @return This builder for chaining. - */ - public Builder setAvailability( - com.google.cloud.domains.v1alpha2.RegisterParameters.Availability value) { - if (value == null) { - throw new NullPointerException(); - } - - availability_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Indicates whether the domain is available for registration. This value is
-     * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-     * approximate when obtained by calling `SearchDomains`.
-     * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters.Availability availability = 2; - * - * @return This builder for chaining. - */ - public Builder clearAvailability() { - - availability_ = 0; - onChanged(); - return this; - } - - private java.util.List supportedPrivacy_ = java.util.Collections.emptyList(); - - private void ensureSupportedPrivacyIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - supportedPrivacy_ = new java.util.ArrayList(supportedPrivacy_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the supportedPrivacy. - */ - public java.util.List - getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @return The count of supportedPrivacy. - */ - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - public com.google.cloud.domains.v1alpha2.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @param index The index to set the value at. - * @param value The supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacy( - int index, com.google.cloud.domains.v1alpha2.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @param value The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacy(com.google.cloud.domains.v1alpha2.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @param values The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacy( - java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (com.google.cloud.domains.v1alpha2.ContactPrivacy value : values) { - supportedPrivacy_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @return This builder for chaining. - */ - public Builder clearSupportedPrivacy() { - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - public java.util.List getSupportedPrivacyValueList() { - return java.util.Collections.unmodifiableList(supportedPrivacy_); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacyValue(int index, int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @param value The enum numeric value on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacyValue(int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @param values The enum numeric values on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacyValue(java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (int value : values) { - supportedPrivacy_.add(value); - } - onChanged(); - return this; - } - - private java.util.List domainNotices_ = java.util.Collections.emptyList(); - - private void ensureDomainNoticesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - domainNotices_ = new java.util.ArrayList(domainNotices_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @return A list containing the domainNotices. - */ - public java.util.List getDomainNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.DomainNotice>( - domainNotices_, domainNotices_converter_); - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @return The count of domainNotices. - */ - public int getDomainNoticesCount() { - return domainNotices_.size(); - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - public com.google.cloud.domains.v1alpha2.DomainNotice getDomainNotices(int index) { - return domainNotices_converter_.convert(domainNotices_.get(index)); - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @param index The index to set the value at. - * @param value The domainNotices to set. - * @return This builder for chaining. - */ - public Builder setDomainNotices( - int index, com.google.cloud.domains.v1alpha2.DomainNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainNoticesIsMutable(); - domainNotices_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @param value The domainNotices to add. - * @return This builder for chaining. - */ - public Builder addDomainNotices(com.google.cloud.domains.v1alpha2.DomainNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainNoticesIsMutable(); - domainNotices_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @param values The domainNotices to add. - * @return This builder for chaining. - */ - public Builder addAllDomainNotices( - java.lang.Iterable values) { - ensureDomainNoticesIsMutable(); - for (com.google.cloud.domains.v1alpha2.DomainNotice value : values) { - domainNotices_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @return This builder for chaining. - */ - public Builder clearDomainNotices() { - domainNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - public java.util.List getDomainNoticesValueList() { - return java.util.Collections.unmodifiableList(domainNotices_); - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - public int getDomainNoticesValue(int index) { - return domainNotices_.get(index); - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for domainNotices to set. - * @return This builder for chaining. - */ - public Builder setDomainNoticesValue(int index, int value) { - ensureDomainNoticesIsMutable(); - domainNotices_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @param value The enum numeric value on the wire for domainNotices to add. - * @return This builder for chaining. - */ - public Builder addDomainNoticesValue(int value) { - ensureDomainNoticesIsMutable(); - domainNotices_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @param values The enum numeric values on the wire for domainNotices to add. - * @return This builder for chaining. - */ - public Builder addAllDomainNoticesValue(java.lang.Iterable values) { - ensureDomainNoticesIsMutable(); - for (int value : values) { - domainNotices_.add(value); - } - onChanged(); - return this; - } - - private com.google.type.Money yearlyPrice_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - yearlyPriceBuilder_; - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - * - * @return Whether the yearlyPrice field is set. - */ - public boolean hasYearlyPrice() { - return yearlyPriceBuilder_ != null || yearlyPrice_ != null; - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - * - * @return The yearlyPrice. - */ - public com.google.type.Money getYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } else { - return yearlyPriceBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public Builder setYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - yearlyPrice_ = value; - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public Builder setYearlyPrice(com.google.type.Money.Builder builderForValue) { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = builderForValue.build(); - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public Builder mergeYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (yearlyPrice_ != null) { - yearlyPrice_ = - com.google.type.Money.newBuilder(yearlyPrice_).mergeFrom(value).buildPartial(); - } else { - yearlyPrice_ = value; - } - onChanged(); - } else { - yearlyPriceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public Builder clearYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - onChanged(); - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public com.google.type.Money.Builder getYearlyPriceBuilder() { - - onChanged(); - return getYearlyPriceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - if (yearlyPriceBuilder_ != null) { - return yearlyPriceBuilder_.getMessageOrBuilder(); - } else { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - getYearlyPriceFieldBuilder() { - if (yearlyPriceBuilder_ == null) { - yearlyPriceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, - com.google.type.Money.Builder, - com.google.type.MoneyOrBuilder>( - getYearlyPrice(), getParentForChildren(), isClean()); - yearlyPrice_ = null; - } - return yearlyPriceBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.RegisterParameters) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.RegisterParameters) - private static final com.google.cloud.domains.v1alpha2.RegisterParameters DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.RegisterParameters(); - } - - public static com.google.cloud.domains.v1alpha2.RegisterParameters getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegisterParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegisterParameters getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegisterParametersOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegisterParametersOrBuilder.java deleted file mode 100644 index 86c0be57..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegisterParametersOrBuilder.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface RegisterParametersOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.RegisterParameters) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - java.lang.String getDomainName(); - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - com.google.protobuf.ByteString getDomainNameBytes(); - - /** - * - * - *
-   * Indicates whether the domain is available for registration. This value is
-   * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-   * approximate when obtained by calling `SearchDomains`.
-   * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters.Availability availability = 2; - * - * @return The enum numeric value on the wire for availability. - */ - int getAvailabilityValue(); - /** - * - * - *
-   * Indicates whether the domain is available for registration. This value is
-   * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-   * approximate when obtained by calling `SearchDomains`.
-   * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters.Availability availability = 2; - * - * @return The availability. - */ - com.google.cloud.domains.v1alpha2.RegisterParameters.Availability getAvailability(); - - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the supportedPrivacy. - */ - java.util.List getSupportedPrivacyList(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @return The count of supportedPrivacy. - */ - int getSupportedPrivacyCount(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - com.google.cloud.domains.v1alpha2.ContactPrivacy getSupportedPrivacy(int index); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - java.util.List getSupportedPrivacyValueList(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - int getSupportedPrivacyValue(int index); - - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @return A list containing the domainNotices. - */ - java.util.List getDomainNoticesList(); - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @return The count of domainNotices. - */ - int getDomainNoticesCount(); - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - com.google.cloud.domains.v1alpha2.DomainNotice getDomainNotices(int index); - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - java.util.List getDomainNoticesValueList(); - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.DomainNotice domain_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - int getDomainNoticesValue(int index); - - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - * - * @return Whether the yearlyPrice field is set. - */ - boolean hasYearlyPrice(); - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - * - * @return The yearlyPrice. - */ - com.google.type.Money getYearlyPrice(); - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - */ - com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/Registration.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/Registration.java deleted file mode 100644 index 83baf9ee..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/Registration.java +++ /dev/null @@ -1,4495 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * The `Registration` resource facilitates managing and configuring domain name
- * registrations.
- * There are several ways to create a new `Registration` resource:
- * To create a new `Registration` resource, find a suitable domain name by
- * calling the `SearchDomains` method with a query to see available domain name
- * options. After choosing a name, call `RetrieveRegisterParameters` to
- * ensure availability and obtain information like pricing, which is needed to
- * build a call to `RegisterDomain`.
- * Another way to create a new `Registration` is to transfer an existing
- * domain from another registrar. First, go to the current registrar to unlock
- * the domain for transfer and retrieve the domain's transfer authorization
- * code. Then call `RetrieveTransferParameters` to confirm that the domain is
- * unlocked and to get values needed to build a call to `TransferDomain`.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.Registration} - */ -public final class Registration extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.Registration) - RegistrationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Registration.newBuilder() to construct. - private Registration(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Registration() { - name_ = ""; - domainName_ = ""; - state_ = 0; - issues_ = java.util.Collections.emptyList(); - supportedPrivacy_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Registration(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_Registration_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 9: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_Registration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.Registration.class, - com.google.cloud.domains.v1alpha2.Registration.Builder.class); - } - - /** - * - * - *
-   * Possible states of a `Registration`.
-   * 
- * - * Protobuf enum {@code google.cloud.domains.v1alpha2.Registration.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The state is undefined.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - * - * - *
-     * The domain is being registered.
-     * 
- * - * REGISTRATION_PENDING = 1; - */ - REGISTRATION_PENDING(1), - /** - * - * - *
-     * The domain registration failed. You can delete resources in this state
-     * to allow registration to be retried.
-     * 
- * - * REGISTRATION_FAILED = 2; - */ - REGISTRATION_FAILED(2), - /** - * - * - *
-     * The domain is being transferred from another registrar to Cloud Domains.
-     * 
- * - * TRANSFER_PENDING = 3; - */ - TRANSFER_PENDING(3), - /** - * - * - *
-     * The attempt to transfer the domain from another registrar to
-     * Cloud Domains failed. You can delete resources in this state and retry
-     * the transfer.
-     * 
- * - * TRANSFER_FAILED = 4; - */ - TRANSFER_FAILED(4), - /** - * - * - *
-     * The domain is registered and operational. The domain renews automatically
-     * as long as it remains in this state.
-     * 
- * - * ACTIVE = 6; - */ - ACTIVE(6), - /** - * - * - *
-     * The domain is suspended and inoperative. For more details, see the
-     * `issues` field.
-     * 
- * - * SUSPENDED = 7; - */ - SUSPENDED(7), - /** - * - * - *
-     * The domain is no longer managed with Cloud Domains. It may have been
-     * transferred to another registrar or exported for management in
-     * [Google Domains](https://domains.google/). You can no longer update it
-     * with this API, and information shown about it may be stale. Domains in
-     * this state are not automatically renewed by Cloud Domains.
-     * 
- * - * EXPORTED = 8; - */ - EXPORTED(8), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The state is undefined.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The domain is being registered.
-     * 
- * - * REGISTRATION_PENDING = 1; - */ - public static final int REGISTRATION_PENDING_VALUE = 1; - /** - * - * - *
-     * The domain registration failed. You can delete resources in this state
-     * to allow registration to be retried.
-     * 
- * - * REGISTRATION_FAILED = 2; - */ - public static final int REGISTRATION_FAILED_VALUE = 2; - /** - * - * - *
-     * The domain is being transferred from another registrar to Cloud Domains.
-     * 
- * - * TRANSFER_PENDING = 3; - */ - public static final int TRANSFER_PENDING_VALUE = 3; - /** - * - * - *
-     * The attempt to transfer the domain from another registrar to
-     * Cloud Domains failed. You can delete resources in this state and retry
-     * the transfer.
-     * 
- * - * TRANSFER_FAILED = 4; - */ - public static final int TRANSFER_FAILED_VALUE = 4; - /** - * - * - *
-     * The domain is registered and operational. The domain renews automatically
-     * as long as it remains in this state.
-     * 
- * - * ACTIVE = 6; - */ - public static final int ACTIVE_VALUE = 6; - /** - * - * - *
-     * The domain is suspended and inoperative. For more details, see the
-     * `issues` field.
-     * 
- * - * SUSPENDED = 7; - */ - public static final int SUSPENDED_VALUE = 7; - /** - * - * - *
-     * The domain is no longer managed with Cloud Domains. It may have been
-     * transferred to another registrar or exported for management in
-     * [Google Domains](https://domains.google/). You can no longer update it
-     * with this API, and information shown about it may be stale. Domains in
-     * this state are not automatically renewed by Cloud Domains.
-     * 
- * - * EXPORTED = 8; - */ - public static final int EXPORTED_VALUE = 8; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static State valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static State forNumber(int value) { - switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return REGISTRATION_PENDING; - case 2: - return REGISTRATION_FAILED; - case 3: - return TRANSFER_PENDING; - case 4: - return TRANSFER_FAILED; - case 6: - return ACTIVE; - case 7: - return SUSPENDED; - case 8: - return EXPORTED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.Registration.getDescriptor().getEnumTypes().get(0); - } - - private static final State[] VALUES = values(); - - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private State(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1alpha2.Registration.State) - } - - /** - * - * - *
-   * Possible issues with a `Registration` that require attention.
-   * 
- * - * Protobuf enum {@code google.cloud.domains.v1alpha2.Registration.Issue} - */ - public enum Issue implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The issue is undefined.
-     * 
- * - * ISSUE_UNSPECIFIED = 0; - */ - ISSUE_UNSPECIFIED(0), - /** - * - * - *
-     * Contact the Cloud Support team to resolve a problem with this domain.
-     * 
- * - * CONTACT_SUPPORT = 1; - */ - CONTACT_SUPPORT(1), - /** - * - * - *
-     * [ICANN](https://icann.org/) requires verification of the email address
-     * in the `Registration`'s `contact_settings.registrant_contact` field. To
-     * verify the email address, follow the
-     * instructions in the email the `registrant_contact` receives following
-     * registration. If you do not complete email verification within
-     * 15 days of registration, the domain is suspended. To resend the
-     * verification email, call ConfigureContactSettings and provide the current
-     * `registrant_contact.email`.
-     * 
- * - * UNVERIFIED_EMAIL = 2; - */ - UNVERIFIED_EMAIL(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The issue is undefined.
-     * 
- * - * ISSUE_UNSPECIFIED = 0; - */ - public static final int ISSUE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Contact the Cloud Support team to resolve a problem with this domain.
-     * 
- * - * CONTACT_SUPPORT = 1; - */ - public static final int CONTACT_SUPPORT_VALUE = 1; - /** - * - * - *
-     * [ICANN](https://icann.org/) requires verification of the email address
-     * in the `Registration`'s `contact_settings.registrant_contact` field. To
-     * verify the email address, follow the
-     * instructions in the email the `registrant_contact` receives following
-     * registration. If you do not complete email verification within
-     * 15 days of registration, the domain is suspended. To resend the
-     * verification email, call ConfigureContactSettings and provide the current
-     * `registrant_contact.email`.
-     * 
- * - * UNVERIFIED_EMAIL = 2; - */ - public static final int UNVERIFIED_EMAIL_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 Issue 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 Issue forNumber(int value) { - switch (value) { - case 0: - return ISSUE_UNSPECIFIED; - case 1: - return CONTACT_SUPPORT; - case 2: - return UNVERIFIED_EMAIL; - 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 Issue findValueByNumber(int number) { - return Issue.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.Registration.getDescriptor().getEnumTypes().get(1); - } - - private static final Issue[] VALUES = values(); - - public static Issue 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 Issue(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1alpha2.Registration.Issue) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. Name of the `Registration` resource, in the format
-   * `projects/*/locations/*/registrations/<domain_name>`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Name of the `Registration` resource, in the format
-   * `projects/*/locations/*/registrations/<domain_name>`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object domainName_; - /** - * - * - *
-   * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The domainName. - */ - @java.lang.Override - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The bytes for domainName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int EXPIRE_TIME_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp expireTime_; - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the expireTime field is set. - */ - @java.lang.Override - public boolean hasExpireTime() { - return expireTime_ != null; - } - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The expireTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getExpireTime() { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; - } - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { - return getExpireTime(); - } - - public static final int STATE_FIELD_NUMBER = 7; - private int state_; - /** - * - * - *
-   * Output only. The state of the `Registration`
-   * 
- * - * - * .google.cloud.domains.v1alpha2.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The state of the `Registration`
-   * 
- * - * - * .google.cloud.domains.v1alpha2.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.Registration.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.Registration.State result = - com.google.cloud.domains.v1alpha2.Registration.State.valueOf(state_); - return result == null - ? com.google.cloud.domains.v1alpha2.Registration.State.UNRECOGNIZED - : result; - } - - public static final int ISSUES_FIELD_NUMBER = 8; - private java.util.List issues_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.Registration.Issue> - issues_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.Registration.Issue>() { - public com.google.cloud.domains.v1alpha2.Registration.Issue convert( - java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.Registration.Issue result = - com.google.cloud.domains.v1alpha2.Registration.Issue.valueOf(from); - return result == null - ? com.google.cloud.domains.v1alpha2.Registration.Issue.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the issues. - */ - @java.lang.Override - public java.util.List getIssuesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.Registration.Issue>( - issues_, issues_converter_); - } - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of issues. - */ - @java.lang.Override - public int getIssuesCount() { - return issues_.size(); - } - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The issues at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.Registration.Issue getIssues(int index) { - return issues_converter_.convert(issues_.get(index)); - } - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for issues. - */ - @java.lang.Override - public java.util.List getIssuesValueList() { - return issues_; - } - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of issues at the given index. - */ - @java.lang.Override - public int getIssuesValue(int index) { - return issues_.get(index); - } - - private int issuesMemoizedSerializedSize; - - public static final int LABELS_FIELD_NUMBER = 9; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_Registration_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(); - } - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int MANAGEMENT_SETTINGS_FIELD_NUMBER = 10; - private com.google.cloud.domains.v1alpha2.ManagementSettings managementSettings_; - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 10; - * - * @return Whether the managementSettings field is set. - */ - @java.lang.Override - public boolean hasManagementSettings() { - return managementSettings_ != null; - } - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 10; - * - * @return The managementSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ManagementSettings getManagementSettings() { - return managementSettings_ == null - ? com.google.cloud.domains.v1alpha2.ManagementSettings.getDefaultInstance() - : managementSettings_; - } - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 10; - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ManagementSettingsOrBuilder - getManagementSettingsOrBuilder() { - return getManagementSettings(); - } - - public static final int DNS_SETTINGS_FIELD_NUMBER = 11; - private com.google.cloud.domains.v1alpha2.DnsSettings dnsSettings_; - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 11; - * - * @return Whether the dnsSettings field is set. - */ - @java.lang.Override - public boolean hasDnsSettings() { - return dnsSettings_ != null; - } - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 11; - * - * @return The dnsSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettings getDnsSettings() { - return dnsSettings_ == null - ? com.google.cloud.domains.v1alpha2.DnsSettings.getDefaultInstance() - : dnsSettings_; - } - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 11; - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.DnsSettingsOrBuilder getDnsSettingsOrBuilder() { - return getDnsSettings(); - } - - public static final int CONTACT_SETTINGS_FIELD_NUMBER = 12; - private com.google.cloud.domains.v1alpha2.ContactSettings contactSettings_; - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the contactSettings field is set. - */ - @java.lang.Override - public boolean hasContactSettings() { - return contactSettings_ != null; - } - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The contactSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettings getContactSettings() { - return contactSettings_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.getDefaultInstance() - : contactSettings_; - } - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder getContactSettingsOrBuilder() { - return getContactSettings(); - } - - public static final int PENDING_CONTACT_SETTINGS_FIELD_NUMBER = 13; - private com.google.cloud.domains.v1alpha2.ContactSettings pendingContactSettings_; - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the pendingContactSettings field is set. - */ - @java.lang.Override - public boolean hasPendingContactSettings() { - return pendingContactSettings_ != null; - } - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The pendingContactSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettings getPendingContactSettings() { - return pendingContactSettings_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.getDefaultInstance() - : pendingContactSettings_; - } - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder - getPendingContactSettingsOrBuilder() { - return getPendingContactSettings(); - } - - public static final int SUPPORTED_PRIVACY_FIELD_NUMBER = 14; - private java.util.List supportedPrivacy_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactPrivacy> - supportedPrivacy_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactPrivacy>() { - public com.google.cloud.domains.v1alpha2.ContactPrivacy convert( - java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.ContactPrivacy result = - com.google.cloud.domains.v1alpha2.ContactPrivacy.valueOf(from); - return result == null - ? com.google.cloud.domains.v1alpha2.ContactPrivacy.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the supportedPrivacy. - */ - @java.lang.Override - public java.util.List - getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of supportedPrivacy. - */ - @java.lang.Override - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - @java.lang.Override - public java.util.List getSupportedPrivacyValueList() { - return supportedPrivacy_; - } - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - @java.lang.Override - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - - private int supportedPrivacyMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domainName_); - } - if (createTime_ != null) { - output.writeMessage(3, getCreateTime()); - } - if (expireTime_ != null) { - output.writeMessage(6, getExpireTime()); - } - if (state_ - != com.google.cloud.domains.v1alpha2.Registration.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(7, state_); - } - if (getIssuesList().size() > 0) { - output.writeUInt32NoTag(66); - output.writeUInt32NoTag(issuesMemoizedSerializedSize); - } - for (int i = 0; i < issues_.size(); i++) { - output.writeEnumNoTag(issues_.get(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); - if (managementSettings_ != null) { - output.writeMessage(10, getManagementSettings()); - } - if (dnsSettings_ != null) { - output.writeMessage(11, getDnsSettings()); - } - if (contactSettings_ != null) { - output.writeMessage(12, getContactSettings()); - } - if (pendingContactSettings_ != null) { - output.writeMessage(13, getPendingContactSettings()); - } - if (getSupportedPrivacyList().size() > 0) { - output.writeUInt32NoTag(114); - output.writeUInt32NoTag(supportedPrivacyMemoizedSerializedSize); - } - for (int i = 0; i < supportedPrivacy_.size(); i++) { - output.writeEnumNoTag(supportedPrivacy_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domainName_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); - } - if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExpireTime()); - } - if (state_ - != com.google.cloud.domains.v1alpha2.Registration.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); - } - { - int dataSize = 0; - for (int i = 0; i < issues_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(issues_.get(i)); - } - size += dataSize; - if (!getIssuesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - issuesMemoizedSerializedSize = dataSize; - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); - } - if (managementSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getManagementSettings()); - } - if (dnsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getDnsSettings()); - } - if (contactSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getContactSettings()); - } - if (pendingContactSettings_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(13, getPendingContactSettings()); - } - { - int dataSize = 0; - for (int i = 0; i < supportedPrivacy_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(supportedPrivacy_.get(i)); - } - size += dataSize; - if (!getSupportedPrivacyList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - supportedPrivacyMemoizedSerializedSize = dataSize; - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.Registration)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.Registration other = - (com.google.cloud.domains.v1alpha2.Registration) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDomainName().equals(other.getDomainName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasExpireTime() != other.hasExpireTime()) return false; - if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; - } - if (state_ != other.state_) return false; - if (!issues_.equals(other.issues_)) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasManagementSettings() != other.hasManagementSettings()) return false; - if (hasManagementSettings()) { - if (!getManagementSettings().equals(other.getManagementSettings())) return false; - } - if (hasDnsSettings() != other.hasDnsSettings()) return false; - if (hasDnsSettings()) { - if (!getDnsSettings().equals(other.getDnsSettings())) return false; - } - if (hasContactSettings() != other.hasContactSettings()) return false; - if (hasContactSettings()) { - if (!getContactSettings().equals(other.getContactSettings())) return false; - } - if (hasPendingContactSettings() != other.hasPendingContactSettings()) return false; - if (hasPendingContactSettings()) { - if (!getPendingContactSettings().equals(other.getPendingContactSettings())) return false; - } - if (!supportedPrivacy_.equals(other.supportedPrivacy_)) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + DOMAIN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDomainName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasExpireTime()) { - hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getExpireTime().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (getIssuesCount() > 0) { - hash = (37 * hash) + ISSUES_FIELD_NUMBER; - hash = (53 * hash) + issues_.hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasManagementSettings()) { - hash = (37 * hash) + MANAGEMENT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getManagementSettings().hashCode(); - } - if (hasDnsSettings()) { - hash = (37 * hash) + DNS_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getDnsSettings().hashCode(); - } - if (hasContactSettings()) { - hash = (37 * hash) + CONTACT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getContactSettings().hashCode(); - } - if (hasPendingContactSettings()) { - hash = (37 * hash) + PENDING_CONTACT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getPendingContactSettings().hashCode(); - } - if (getSupportedPrivacyCount() > 0) { - hash = (37 * hash) + SUPPORTED_PRIVACY_FIELD_NUMBER; - hash = (53 * hash) + supportedPrivacy_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.Registration parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.Registration parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.Registration parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.Registration parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.Registration parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.Registration parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.Registration parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.Registration parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.Registration parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.Registration parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.Registration parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.Registration parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1alpha2.Registration prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 `Registration` resource facilitates managing and configuring domain name
-   * registrations.
-   * There are several ways to create a new `Registration` resource:
-   * To create a new `Registration` resource, find a suitable domain name by
-   * calling the `SearchDomains` method with a query to see available domain name
-   * options. After choosing a name, call `RetrieveRegisterParameters` to
-   * ensure availability and obtain information like pricing, which is needed to
-   * build a call to `RegisterDomain`.
-   * Another way to create a new `Registration` is to transfer an existing
-   * domain from another registrar. First, go to the current registrar to unlock
-   * the domain for transfer and retrieve the domain's transfer authorization
-   * code. Then call `RetrieveTransferParameters` to confirm that the domain is
-   * unlocked and to get values needed to build a call to `TransferDomain`.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.Registration} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.Registration) - com.google.cloud.domains.v1alpha2.RegistrationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_Registration_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 9: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 9: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_Registration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.Registration.class, - com.google.cloud.domains.v1alpha2.Registration.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.Registration.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - domainName_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (expireTimeBuilder_ == null) { - expireTime_ = null; - } else { - expireTime_ = null; - expireTimeBuilder_ = null; - } - state_ = 0; - - issues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableLabels().clear(); - if (managementSettingsBuilder_ == null) { - managementSettings_ = null; - } else { - managementSettings_ = null; - managementSettingsBuilder_ = null; - } - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = null; - } else { - dnsSettings_ = null; - dnsSettingsBuilder_ = null; - } - if (contactSettingsBuilder_ == null) { - contactSettings_ = null; - } else { - contactSettings_ = null; - contactSettingsBuilder_ = null; - } - if (pendingContactSettingsBuilder_ == null) { - pendingContactSettings_ = null; - } else { - pendingContactSettings_ = null; - pendingContactSettingsBuilder_ = null; - } - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_Registration_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.Registration getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.Registration.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.Registration build() { - com.google.cloud.domains.v1alpha2.Registration result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.Registration buildPartial() { - com.google.cloud.domains.v1alpha2.Registration result = - new com.google.cloud.domains.v1alpha2.Registration(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.domainName_ = domainName_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (expireTimeBuilder_ == null) { - result.expireTime_ = expireTime_; - } else { - result.expireTime_ = expireTimeBuilder_.build(); - } - result.state_ = state_; - if (((bitField0_ & 0x00000001) != 0)) { - issues_ = java.util.Collections.unmodifiableList(issues_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.issues_ = issues_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (managementSettingsBuilder_ == null) { - result.managementSettings_ = managementSettings_; - } else { - result.managementSettings_ = managementSettingsBuilder_.build(); - } - if (dnsSettingsBuilder_ == null) { - result.dnsSettings_ = dnsSettings_; - } else { - result.dnsSettings_ = dnsSettingsBuilder_.build(); - } - if (contactSettingsBuilder_ == null) { - result.contactSettings_ = contactSettings_; - } else { - result.contactSettings_ = contactSettingsBuilder_.build(); - } - if (pendingContactSettingsBuilder_ == null) { - result.pendingContactSettings_ = pendingContactSettings_; - } else { - result.pendingContactSettings_ = pendingContactSettingsBuilder_.build(); - } - if (((bitField0_ & 0x00000004) != 0)) { - supportedPrivacy_ = java.util.Collections.unmodifiableList(supportedPrivacy_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.supportedPrivacy_ = supportedPrivacy_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.Registration) { - return mergeFrom((com.google.cloud.domains.v1alpha2.Registration) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.Registration other) { - if (other == com.google.cloud.domains.v1alpha2.Registration.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getDomainName().isEmpty()) { - domainName_ = other.domainName_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasExpireTime()) { - mergeExpireTime(other.getExpireTime()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.issues_.isEmpty()) { - if (issues_.isEmpty()) { - issues_ = other.issues_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIssuesIsMutable(); - issues_.addAll(other.issues_); - } - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasManagementSettings()) { - mergeManagementSettings(other.getManagementSettings()); - } - if (other.hasDnsSettings()) { - mergeDnsSettings(other.getDnsSettings()); - } - if (other.hasContactSettings()) { - mergeContactSettings(other.getContactSettings()); - } - if (other.hasPendingContactSettings()) { - mergePendingContactSettings(other.getPendingContactSettings()); - } - if (!other.supportedPrivacy_.isEmpty()) { - if (supportedPrivacy_.isEmpty()) { - supportedPrivacy_ = other.supportedPrivacy_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.addAll(other.supportedPrivacy_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - domainName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 50: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 56: - { - state_ = input.readEnum(); - - break; - } // case 56 - case 64: - { - int tmpRaw = input.readEnum(); - ensureIssuesIsMutable(); - issues_.add(tmpRaw); - break; - } // case 64 - case 66: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureIssuesIsMutable(); - issues_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 66 - case 74: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 74 - case 82: - { - input.readMessage( - getManagementSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 82 - case 90: - { - input.readMessage(getDnsSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 90 - case 98: - { - input.readMessage(getContactSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 98 - case 106: - { - input.readMessage( - getPendingContactSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 106 - case 112: - { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - break; - } // case 112 - case 114: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 114 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. Name of the `Registration` resource, in the format
-     * `projects/*/locations/*/registrations/<domain_name>`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Name of the `Registration` resource, in the format
-     * `projects/*/locations/*/registrations/<domain_name>`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Name of the `Registration` resource, in the format
-     * `projects/*/locations/*/registrations/<domain_name>`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Name of the `Registration` resource, in the format
-     * `projects/*/locations/*/registrations/<domain_name>`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Name of the `Registration` resource, in the format
-     * `projects/*/locations/*/registrations/<domain_name>`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object domainName_ = ""; - /** - * - * - *
-     * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The domainName. - */ - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The bytes for domainName. - */ - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @param value The domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domainName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return This builder for chaining. - */ - public Builder clearDomainName() { - - domainName_ = getDefaultInstance().getDomainName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @param value The bytes for domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domainName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp expireTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the expireTime field is set. - */ - public boolean hasExpireTime() { - return expireTimeBuilder_ != null || expireTime_ != null; - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The expireTime. - */ - public com.google.protobuf.Timestamp getExpireTime() { - if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; - } else { - return expireTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setExpireTime(com.google.protobuf.Timestamp value) { - if (expireTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expireTime_ = value; - onChanged(); - } else { - expireTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (expireTimeBuilder_ == null) { - expireTime_ = builderForValue.build(); - onChanged(); - } else { - expireTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { - if (expireTimeBuilder_ == null) { - if (expireTime_ != null) { - expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); - } else { - expireTime_ = value; - } - onChanged(); - } else { - expireTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearExpireTime() { - if (expireTimeBuilder_ == null) { - expireTime_ = null; - onChanged(); - } else { - expireTime_ = null; - expireTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - - onChanged(); - return getExpireTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { - if (expireTimeBuilder_ != null) { - return expireTimeBuilder_.getMessageOrBuilder(); - } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; - } - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getExpireTimeFieldBuilder() { - if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); - expireTime_ = null; - } - return expireTimeBuilder_; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. The state of the `Registration`
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. The state of the `Registration`
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The state of the `Registration`
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.Registration.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.Registration.State result = - com.google.cloud.domains.v1alpha2.Registration.State.valueOf(state_); - return result == null - ? com.google.cloud.domains.v1alpha2.Registration.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. The state of the `Registration`
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.domains.v1alpha2.Registration.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The state of the `Registration`
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.util.List issues_ = java.util.Collections.emptyList(); - - private void ensureIssuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - issues_ = new java.util.ArrayList(issues_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the issues. - */ - public java.util.List getIssuesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.Registration.Issue>( - issues_, issues_converter_); - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of issues. - */ - public int getIssuesCount() { - return issues_.size(); - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The issues at the given index. - */ - public com.google.cloud.domains.v1alpha2.Registration.Issue getIssues(int index) { - return issues_converter_.convert(issues_.get(index)); - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index to set the value at. - * @param value The issues to set. - * @return This builder for chaining. - */ - public Builder setIssues( - int index, com.google.cloud.domains.v1alpha2.Registration.Issue value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIssuesIsMutable(); - issues_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The issues to add. - * @return This builder for chaining. - */ - public Builder addIssues(com.google.cloud.domains.v1alpha2.Registration.Issue value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIssuesIsMutable(); - issues_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param values The issues to add. - * @return This builder for chaining. - */ - public Builder addAllIssues( - java.lang.Iterable values) { - ensureIssuesIsMutable(); - for (com.google.cloud.domains.v1alpha2.Registration.Issue value : values) { - issues_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearIssues() { - issues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for issues. - */ - public java.util.List getIssuesValueList() { - return java.util.Collections.unmodifiableList(issues_); - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of issues at the given index. - */ - public int getIssuesValue(int index) { - return issues_.get(index); - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for issues to set. - * @return This builder for chaining. - */ - public Builder setIssuesValue(int index, int value) { - ensureIssuesIsMutable(); - issues_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for issues to add. - * @return This builder for chaining. - */ - public Builder addIssuesValue(int value) { - ensureIssuesIsMutable(); - issues_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param values The enum numeric values on the wire for issues to add. - * @return This builder for chaining. - */ - public Builder addAllIssuesValue(java.lang.Iterable values) { - ensureIssuesIsMutable(); - for (int value : values) { - issues_.add(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(); - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.domains.v1alpha2.ManagementSettings managementSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ManagementSettings, - com.google.cloud.domains.v1alpha2.ManagementSettings.Builder, - com.google.cloud.domains.v1alpha2.ManagementSettingsOrBuilder> - managementSettingsBuilder_; - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 10; - * - * @return Whether the managementSettings field is set. - */ - public boolean hasManagementSettings() { - return managementSettingsBuilder_ != null || managementSettings_ != null; - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 10; - * - * @return The managementSettings. - */ - public com.google.cloud.domains.v1alpha2.ManagementSettings getManagementSettings() { - if (managementSettingsBuilder_ == null) { - return managementSettings_ == null - ? com.google.cloud.domains.v1alpha2.ManagementSettings.getDefaultInstance() - : managementSettings_; - } else { - return managementSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 10; - */ - public Builder setManagementSettings( - com.google.cloud.domains.v1alpha2.ManagementSettings value) { - if (managementSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - managementSettings_ = value; - onChanged(); - } else { - managementSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 10; - */ - public Builder setManagementSettings( - com.google.cloud.domains.v1alpha2.ManagementSettings.Builder builderForValue) { - if (managementSettingsBuilder_ == null) { - managementSettings_ = builderForValue.build(); - onChanged(); - } else { - managementSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 10; - */ - public Builder mergeManagementSettings( - com.google.cloud.domains.v1alpha2.ManagementSettings value) { - if (managementSettingsBuilder_ == null) { - if (managementSettings_ != null) { - managementSettings_ = - com.google.cloud.domains.v1alpha2.ManagementSettings.newBuilder(managementSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - managementSettings_ = value; - } - onChanged(); - } else { - managementSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 10; - */ - public Builder clearManagementSettings() { - if (managementSettingsBuilder_ == null) { - managementSettings_ = null; - onChanged(); - } else { - managementSettings_ = null; - managementSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 10; - */ - public com.google.cloud.domains.v1alpha2.ManagementSettings.Builder - getManagementSettingsBuilder() { - - onChanged(); - return getManagementSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 10; - */ - public com.google.cloud.domains.v1alpha2.ManagementSettingsOrBuilder - getManagementSettingsOrBuilder() { - if (managementSettingsBuilder_ != null) { - return managementSettingsBuilder_.getMessageOrBuilder(); - } else { - return managementSettings_ == null - ? com.google.cloud.domains.v1alpha2.ManagementSettings.getDefaultInstance() - : managementSettings_; - } - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ManagementSettings, - com.google.cloud.domains.v1alpha2.ManagementSettings.Builder, - com.google.cloud.domains.v1alpha2.ManagementSettingsOrBuilder> - getManagementSettingsFieldBuilder() { - if (managementSettingsBuilder_ == null) { - managementSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ManagementSettings, - com.google.cloud.domains.v1alpha2.ManagementSettings.Builder, - com.google.cloud.domains.v1alpha2.ManagementSettingsOrBuilder>( - getManagementSettings(), getParentForChildren(), isClean()); - managementSettings_ = null; - } - return managementSettingsBuilder_; - } - - private com.google.cloud.domains.v1alpha2.DnsSettings dnsSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings, - com.google.cloud.domains.v1alpha2.DnsSettings.Builder, - com.google.cloud.domains.v1alpha2.DnsSettingsOrBuilder> - dnsSettingsBuilder_; - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 11; - * - * @return Whether the dnsSettings field is set. - */ - public boolean hasDnsSettings() { - return dnsSettingsBuilder_ != null || dnsSettings_ != null; - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 11; - * - * @return The dnsSettings. - */ - public com.google.cloud.domains.v1alpha2.DnsSettings getDnsSettings() { - if (dnsSettingsBuilder_ == null) { - return dnsSettings_ == null - ? com.google.cloud.domains.v1alpha2.DnsSettings.getDefaultInstance() - : dnsSettings_; - } else { - return dnsSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 11; - */ - public Builder setDnsSettings(com.google.cloud.domains.v1alpha2.DnsSettings value) { - if (dnsSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsSettings_ = value; - onChanged(); - } else { - dnsSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 11; - */ - public Builder setDnsSettings( - com.google.cloud.domains.v1alpha2.DnsSettings.Builder builderForValue) { - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = builderForValue.build(); - onChanged(); - } else { - dnsSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 11; - */ - public Builder mergeDnsSettings(com.google.cloud.domains.v1alpha2.DnsSettings value) { - if (dnsSettingsBuilder_ == null) { - if (dnsSettings_ != null) { - dnsSettings_ = - com.google.cloud.domains.v1alpha2.DnsSettings.newBuilder(dnsSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - dnsSettings_ = value; - } - onChanged(); - } else { - dnsSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 11; - */ - public Builder clearDnsSettings() { - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = null; - onChanged(); - } else { - dnsSettings_ = null; - dnsSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 11; - */ - public com.google.cloud.domains.v1alpha2.DnsSettings.Builder getDnsSettingsBuilder() { - - onChanged(); - return getDnsSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 11; - */ - public com.google.cloud.domains.v1alpha2.DnsSettingsOrBuilder getDnsSettingsOrBuilder() { - if (dnsSettingsBuilder_ != null) { - return dnsSettingsBuilder_.getMessageOrBuilder(); - } else { - return dnsSettings_ == null - ? com.google.cloud.domains.v1alpha2.DnsSettings.getDefaultInstance() - : dnsSettings_; - } - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings, - com.google.cloud.domains.v1alpha2.DnsSettings.Builder, - com.google.cloud.domains.v1alpha2.DnsSettingsOrBuilder> - getDnsSettingsFieldBuilder() { - if (dnsSettingsBuilder_ == null) { - dnsSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.DnsSettings, - com.google.cloud.domains.v1alpha2.DnsSettings.Builder, - com.google.cloud.domains.v1alpha2.DnsSettingsOrBuilder>( - getDnsSettings(), getParentForChildren(), isClean()); - dnsSettings_ = null; - } - return dnsSettingsBuilder_; - } - - private com.google.cloud.domains.v1alpha2.ContactSettings contactSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings, - com.google.cloud.domains.v1alpha2.ContactSettings.Builder, - com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder> - contactSettingsBuilder_; - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the contactSettings field is set. - */ - public boolean hasContactSettings() { - return contactSettingsBuilder_ != null || contactSettings_ != null; - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The contactSettings. - */ - public com.google.cloud.domains.v1alpha2.ContactSettings getContactSettings() { - if (contactSettingsBuilder_ == null) { - return contactSettings_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.getDefaultInstance() - : contactSettings_; - } else { - return contactSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setContactSettings(com.google.cloud.domains.v1alpha2.ContactSettings value) { - if (contactSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - contactSettings_ = value; - onChanged(); - } else { - contactSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setContactSettings( - com.google.cloud.domains.v1alpha2.ContactSettings.Builder builderForValue) { - if (contactSettingsBuilder_ == null) { - contactSettings_ = builderForValue.build(); - onChanged(); - } else { - contactSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeContactSettings(com.google.cloud.domains.v1alpha2.ContactSettings value) { - if (contactSettingsBuilder_ == null) { - if (contactSettings_ != null) { - contactSettings_ = - com.google.cloud.domains.v1alpha2.ContactSettings.newBuilder(contactSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - contactSettings_ = value; - } - onChanged(); - } else { - contactSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearContactSettings() { - if (contactSettingsBuilder_ == null) { - contactSettings_ = null; - onChanged(); - } else { - contactSettings_ = null; - contactSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1alpha2.ContactSettings.Builder getContactSettingsBuilder() { - - onChanged(); - return getContactSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder - getContactSettingsOrBuilder() { - if (contactSettingsBuilder_ != null) { - return contactSettingsBuilder_.getMessageOrBuilder(); - } else { - return contactSettings_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.getDefaultInstance() - : contactSettings_; - } - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings, - com.google.cloud.domains.v1alpha2.ContactSettings.Builder, - com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder> - getContactSettingsFieldBuilder() { - if (contactSettingsBuilder_ == null) { - contactSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings, - com.google.cloud.domains.v1alpha2.ContactSettings.Builder, - com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder>( - getContactSettings(), getParentForChildren(), isClean()); - contactSettings_ = null; - } - return contactSettingsBuilder_; - } - - private com.google.cloud.domains.v1alpha2.ContactSettings pendingContactSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings, - com.google.cloud.domains.v1alpha2.ContactSettings.Builder, - com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder> - pendingContactSettingsBuilder_; - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the pendingContactSettings field is set. - */ - public boolean hasPendingContactSettings() { - return pendingContactSettingsBuilder_ != null || pendingContactSettings_ != null; - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The pendingContactSettings. - */ - public com.google.cloud.domains.v1alpha2.ContactSettings getPendingContactSettings() { - if (pendingContactSettingsBuilder_ == null) { - return pendingContactSettings_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.getDefaultInstance() - : pendingContactSettings_; - } else { - return pendingContactSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setPendingContactSettings( - com.google.cloud.domains.v1alpha2.ContactSettings value) { - if (pendingContactSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pendingContactSettings_ = value; - onChanged(); - } else { - pendingContactSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setPendingContactSettings( - com.google.cloud.domains.v1alpha2.ContactSettings.Builder builderForValue) { - if (pendingContactSettingsBuilder_ == null) { - pendingContactSettings_ = builderForValue.build(); - onChanged(); - } else { - pendingContactSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergePendingContactSettings( - com.google.cloud.domains.v1alpha2.ContactSettings value) { - if (pendingContactSettingsBuilder_ == null) { - if (pendingContactSettings_ != null) { - pendingContactSettings_ = - com.google.cloud.domains.v1alpha2.ContactSettings.newBuilder(pendingContactSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - pendingContactSettings_ = value; - } - onChanged(); - } else { - pendingContactSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearPendingContactSettings() { - if (pendingContactSettingsBuilder_ == null) { - pendingContactSettings_ = null; - onChanged(); - } else { - pendingContactSettings_ = null; - pendingContactSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1alpha2.ContactSettings.Builder - getPendingContactSettingsBuilder() { - - onChanged(); - return getPendingContactSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder - getPendingContactSettingsOrBuilder() { - if (pendingContactSettingsBuilder_ != null) { - return pendingContactSettingsBuilder_.getMessageOrBuilder(); - } else { - return pendingContactSettings_ == null - ? com.google.cloud.domains.v1alpha2.ContactSettings.getDefaultInstance() - : pendingContactSettings_; - } - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings, - com.google.cloud.domains.v1alpha2.ContactSettings.Builder, - com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder> - getPendingContactSettingsFieldBuilder() { - if (pendingContactSettingsBuilder_ == null) { - pendingContactSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.ContactSettings, - com.google.cloud.domains.v1alpha2.ContactSettings.Builder, - com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder>( - getPendingContactSettings(), getParentForChildren(), isClean()); - pendingContactSettings_ = null; - } - return pendingContactSettingsBuilder_; - } - - private java.util.List supportedPrivacy_ = java.util.Collections.emptyList(); - - private void ensureSupportedPrivacyIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - supportedPrivacy_ = new java.util.ArrayList(supportedPrivacy_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the supportedPrivacy. - */ - public java.util.List - getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of supportedPrivacy. - */ - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - public com.google.cloud.domains.v1alpha2.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index to set the value at. - * @param value The supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacy( - int index, com.google.cloud.domains.v1alpha2.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacy(com.google.cloud.domains.v1alpha2.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param values The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacy( - java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (com.google.cloud.domains.v1alpha2.ContactPrivacy value : values) { - supportedPrivacy_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearSupportedPrivacy() { - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - public java.util.List getSupportedPrivacyValueList() { - return java.util.Collections.unmodifiableList(supportedPrivacy_); - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacyValue(int index, int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacyValue(int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param values The enum numeric values on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacyValue(java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (int value : values) { - supportedPrivacy_.add(value); - } - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.Registration) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.Registration) - private static final com.google.cloud.domains.v1alpha2.Registration DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.Registration(); - } - - public static com.google.cloud.domains.v1alpha2.Registration getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Registration parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.Registration getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegistrationName.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegistrationName.java deleted file mode 100644 index 875c7704..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegistrationName.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class RegistrationName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_REGISTRATION = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/registrations/{registration}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String registration; - - @Deprecated - protected RegistrationName() { - project = null; - location = null; - registration = null; - } - - private RegistrationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - registration = Preconditions.checkNotNull(builder.getRegistration()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRegistration() { - return registration; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static RegistrationName of(String project, String location, String registration) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setRegistration(registration) - .build(); - } - - public static String format(String project, String location, String registration) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setRegistration(registration) - .build() - .toString(); - } - - public static RegistrationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_REGISTRATION.validatedMatch( - formattedString, "RegistrationName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("registration")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (RegistrationName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_REGISTRATION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - if (registration != null) { - fieldMapBuilder.put("registration", registration); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_REGISTRATION.instantiate( - "project", project, "location", location, "registration", registration); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - RegistrationName that = ((RegistrationName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.registration, that.registration); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(registration); - return h; - } - - /** Builder for projects/{project}/locations/{location}/registrations/{registration}. */ - public static class Builder { - private String project; - private String location; - private String registration; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRegistration() { - return registration; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setRegistration(String registration) { - this.registration = registration; - return this; - } - - private Builder(RegistrationName registrationName) { - this.project = registrationName.project; - this.location = registrationName.location; - this.registration = registrationName.registration; - } - - public RegistrationName build() { - return new RegistrationName(this); - } - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegistrationOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegistrationOrBuilder.java deleted file mode 100644 index fe6f06bc..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegistrationOrBuilder.java +++ /dev/null @@ -1,587 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface RegistrationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.Registration) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Name of the `Registration` resource, in the format
-   * `projects/*/locations/*/registrations/<domain_name>`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. Name of the `Registration` resource, in the format
-   * `projects/*/locations/*/registrations/<domain_name>`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The domainName. - */ - java.lang.String getDomainName(); - /** - * - * - *
-   * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The bytes for domainName. - */ - com.google.protobuf.ByteString getDomainNameBytes(); - - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the expireTime field is set. - */ - boolean hasExpireTime(); - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The expireTime. - */ - com.google.protobuf.Timestamp getExpireTime(); - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The state of the `Registration`
-   * 
- * - * - * .google.cloud.domains.v1alpha2.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. The state of the `Registration`
-   * 
- * - * - * .google.cloud.domains.v1alpha2.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.domains.v1alpha2.Registration.State getState(); - - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the issues. - */ - java.util.List getIssuesList(); - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of issues. - */ - int getIssuesCount(); - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The issues at the given index. - */ - com.google.cloud.domains.v1alpha2.Registration.Issue getIssues(int index); - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for issues. - */ - java.util.List getIssuesValueList(); - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of issues at the given index. - */ - int getIssuesValue(int index); - - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - int getLabelsCount(); - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 10; - * - * @return Whether the managementSettings field is set. - */ - boolean hasManagementSettings(); - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 10; - * - * @return The managementSettings. - */ - com.google.cloud.domains.v1alpha2.ManagementSettings getManagementSettings(); - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1alpha2.ManagementSettings management_settings = 10; - */ - com.google.cloud.domains.v1alpha2.ManagementSettingsOrBuilder getManagementSettingsOrBuilder(); - - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 11; - * - * @return Whether the dnsSettings field is set. - */ - boolean hasDnsSettings(); - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 11; - * - * @return The dnsSettings. - */ - com.google.cloud.domains.v1alpha2.DnsSettings getDnsSettings(); - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.DnsSettings dns_settings = 11; - */ - com.google.cloud.domains.v1alpha2.DnsSettingsOrBuilder getDnsSettingsOrBuilder(); - - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the contactSettings field is set. - */ - boolean hasContactSettings(); - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The contactSettings. - */ - com.google.cloud.domains.v1alpha2.ContactSettings getContactSettings(); - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder getContactSettingsOrBuilder(); - - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the pendingContactSettings field is set. - */ - boolean hasPendingContactSettings(); - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The pendingContactSettings. - */ - com.google.cloud.domains.v1alpha2.ContactSettings getPendingContactSettings(); - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.domains.v1alpha2.ContactSettingsOrBuilder getPendingContactSettingsOrBuilder(); - - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the supportedPrivacy. - */ - java.util.List getSupportedPrivacyList(); - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of supportedPrivacy. - */ - int getSupportedPrivacyCount(); - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - com.google.cloud.domains.v1alpha2.ContactPrivacy getSupportedPrivacy(int index); - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - java.util.List getSupportedPrivacyValueList(); - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - int getSupportedPrivacyValue(int index); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ResetAuthorizationCodeRequest.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ResetAuthorizationCodeRequest.java deleted file mode 100644 index 94525aa1..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ResetAuthorizationCodeRequest.java +++ /dev/null @@ -1,643 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Request for the `ResetAuthorizationCode` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest} - */ -public final class ResetAuthorizationCodeRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest) - ResetAuthorizationCodeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResetAuthorizationCodeRequest.newBuilder() to construct. - private ResetAuthorizationCodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ResetAuthorizationCodeRequest() { - registration_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ResetAuthorizationCodeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ResetAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ResetAuthorizationCodeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest.class, - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private volatile java.lang.Object registration_; - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being reset,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - @java.lang.Override - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being reset,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registration_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registration_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest other = - (com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest) obj; - - if (!getRegistration().equals(other.getRegistration())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ResetAuthorizationCode` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest) - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ResetAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ResetAuthorizationCodeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest.class, - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - registration_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_ResetAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest build() { - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest buildPartial() { - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest result = - new com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest(this); - result.registration_ = registration_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest) { - return mergeFrom((com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest other) { - if (other - == com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest.getDefaultInstance()) - return this; - if (!other.getRegistration().isEmpty()) { - registration_ = other.registration_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - registration_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object registration_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being reset,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being reset,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being reset,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The registration to set. - * @return This builder for chaining. - */ - public Builder setRegistration(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being reset,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearRegistration() { - - registration_ = getDefaultInstance().getRegistration(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being reset,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for registration to set. - * @return This builder for chaining. - */ - public Builder setRegistrationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registration_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest) - private static final com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest(); - } - - public static com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetAuthorizationCodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ResetAuthorizationCodeRequestOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ResetAuthorizationCodeRequestOrBuilder.java deleted file mode 100644 index f869f012..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/ResetAuthorizationCodeRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface ResetAuthorizationCodeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being reset,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - java.lang.String getRegistration(); - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being reset,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - com.google.protobuf.ByteString getRegistrationBytes(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveAuthorizationCodeRequest.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveAuthorizationCodeRequest.java deleted file mode 100644 index e53417a0..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveAuthorizationCodeRequest.java +++ /dev/null @@ -1,648 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Request for the `RetrieveAuthorizationCode` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest} - */ -public final class RetrieveAuthorizationCodeRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest) - RetrieveAuthorizationCodeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetrieveAuthorizationCodeRequest.newBuilder() to construct. - private RetrieveAuthorizationCodeRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetrieveAuthorizationCodeRequest() { - registration_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetrieveAuthorizationCodeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveAuthorizationCodeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest.class, - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private volatile java.lang.Object registration_; - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being retrieved,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - @java.lang.Override - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being retrieved,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registration_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registration_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest other = - (com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest) obj; - - if (!getRegistration().equals(other.getRegistration())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `RetrieveAuthorizationCode` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest) - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveAuthorizationCodeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest.class, - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest.Builder.class); - } - - // Construct using - // com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - registration_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest build() { - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest buildPartial() { - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest result = - new com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest(this); - result.registration_ = registration_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest) { - return mergeFrom( - (com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest other) { - if (other - == com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest - .getDefaultInstance()) return this; - if (!other.getRegistration().isEmpty()) { - registration_ = other.registration_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - registration_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object registration_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being retrieved,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being retrieved,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being retrieved,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The registration to set. - * @return This builder for chaining. - */ - public Builder setRegistration(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being retrieved,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearRegistration() { - - registration_ = getDefaultInstance().getRegistration(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being retrieved,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for registration to set. - * @return This builder for chaining. - */ - public Builder setRegistrationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registration_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest) - private static final com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest(); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveAuthorizationCodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveAuthorizationCodeRequestOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveAuthorizationCodeRequestOrBuilder.java deleted file mode 100644 index f6c35c6f..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveAuthorizationCodeRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface RetrieveAuthorizationCodeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being retrieved,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - java.lang.String getRegistration(); - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being retrieved,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - com.google.protobuf.ByteString getRegistrationBytes(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveRegisterParametersRequest.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveRegisterParametersRequest.java deleted file mode 100644 index da511236..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveRegisterParametersRequest.java +++ /dev/null @@ -1,819 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Request for the `RetrieveRegisterParameters` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest} - */ -public final class RetrieveRegisterParametersRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest) - RetrieveRegisterParametersRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetrieveRegisterParametersRequest.newBuilder() to construct. - private RetrieveRegisterParametersRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetrieveRegisterParametersRequest() { - domainName_ = ""; - location_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetrieveRegisterParametersRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest.class, - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest.Builder.class); - } - - public static final int DOMAIN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object domainName_; - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - @java.lang.Override - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_FIELD_NUMBER = 2; - private volatile java.lang.Object location_; - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - @java.lang.Override - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, location_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest other = - (com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest) obj; - - if (!getDomainName().equals(other.getDomainName())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOMAIN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDomainName().hashCode(); - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `RetrieveRegisterParameters` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest) - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest.class, - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest.Builder.class); - } - - // Construct using - // com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - domainName_ = ""; - - location_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest build() { - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest buildPartial() { - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest result = - new com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest(this); - result.domainName_ = domainName_; - result.location_ = location_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest) { - return mergeFrom( - (com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest other) { - if (other - == com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest - .getDefaultInstance()) return this; - if (!other.getDomainName().isEmpty()) { - domainName_ = other.domainName_; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - domainName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - location_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object domainName_ = ""; - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domainName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDomainName() { - - domainName_ = getDefaultInstance().getDomainName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domainName_ = value; - onChanged(); - return this; - } - - private java.lang.Object location_ = ""; - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The location to set. - * @return This builder for chaining. - */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - location_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearLocation() { - - location_ = getDefaultInstance().getLocation(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for location to set. - * @return This builder for chaining. - */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - location_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest) - private static final com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest(); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveRegisterParametersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveRegisterParametersRequestOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveRegisterParametersRequestOrBuilder.java deleted file mode 100644 index 7db3f746..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveRegisterParametersRequestOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface RetrieveRegisterParametersRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - java.lang.String getDomainName(); - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - com.google.protobuf.ByteString getDomainNameBytes(); - - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - java.lang.String getLocation(); - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveRegisterParametersResponse.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveRegisterParametersResponse.java deleted file mode 100644 index 8fb002a1..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveRegisterParametersResponse.java +++ /dev/null @@ -1,722 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Response for the `RetrieveRegisterParameters` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse} - */ -public final class RetrieveRegisterParametersResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse) - RetrieveRegisterParametersResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetrieveRegisterParametersResponse.newBuilder() to construct. - private RetrieveRegisterParametersResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetrieveRegisterParametersResponse() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetrieveRegisterParametersResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse.class, - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse.Builder.class); - } - - public static final int REGISTER_PARAMETERS_FIELD_NUMBER = 1; - private com.google.cloud.domains.v1alpha2.RegisterParameters registerParameters_; - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - * @return Whether the registerParameters field is set. - */ - @java.lang.Override - public boolean hasRegisterParameters() { - return registerParameters_ != null; - } - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - * @return The registerParameters. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegisterParameters getRegisterParameters() { - return registerParameters_ == null - ? com.google.cloud.domains.v1alpha2.RegisterParameters.getDefaultInstance() - : registerParameters_; - } - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegisterParametersOrBuilder - getRegisterParametersOrBuilder() { - return getRegisterParameters(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (registerParameters_ != null) { - output.writeMessage(1, getRegisterParameters()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (registerParameters_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRegisterParameters()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse other = - (com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse) obj; - - if (hasRegisterParameters() != other.hasRegisterParameters()) return false; - if (hasRegisterParameters()) { - if (!getRegisterParameters().equals(other.getRegisterParameters())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRegisterParameters()) { - hash = (37 * hash) + REGISTER_PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getRegisterParameters().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response for the `RetrieveRegisterParameters` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse) - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse.class, - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse.Builder.class); - } - - // Construct using - // com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (registerParametersBuilder_ == null) { - registerParameters_ = null; - } else { - registerParameters_ = null; - registerParametersBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveRegisterParametersResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse - getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse build() { - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse buildPartial() { - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse result = - new com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse(this); - if (registerParametersBuilder_ == null) { - result.registerParameters_ = registerParameters_; - } else { - result.registerParameters_ = registerParametersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse) { - return mergeFrom( - (com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse other) { - if (other - == com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse - .getDefaultInstance()) return this; - if (other.hasRegisterParameters()) { - mergeRegisterParameters(other.getRegisterParameters()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getRegisterParametersFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.domains.v1alpha2.RegisterParameters registerParameters_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.RegisterParameters, - com.google.cloud.domains.v1alpha2.RegisterParameters.Builder, - com.google.cloud.domains.v1alpha2.RegisterParametersOrBuilder> - registerParametersBuilder_; - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - * @return Whether the registerParameters field is set. - */ - public boolean hasRegisterParameters() { - return registerParametersBuilder_ != null || registerParameters_ != null; - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - * @return The registerParameters. - */ - public com.google.cloud.domains.v1alpha2.RegisterParameters getRegisterParameters() { - if (registerParametersBuilder_ == null) { - return registerParameters_ == null - ? com.google.cloud.domains.v1alpha2.RegisterParameters.getDefaultInstance() - : registerParameters_; - } else { - return registerParametersBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - */ - public Builder setRegisterParameters( - com.google.cloud.domains.v1alpha2.RegisterParameters value) { - if (registerParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - registerParameters_ = value; - onChanged(); - } else { - registerParametersBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - */ - public Builder setRegisterParameters( - com.google.cloud.domains.v1alpha2.RegisterParameters.Builder builderForValue) { - if (registerParametersBuilder_ == null) { - registerParameters_ = builderForValue.build(); - onChanged(); - } else { - registerParametersBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - */ - public Builder mergeRegisterParameters( - com.google.cloud.domains.v1alpha2.RegisterParameters value) { - if (registerParametersBuilder_ == null) { - if (registerParameters_ != null) { - registerParameters_ = - com.google.cloud.domains.v1alpha2.RegisterParameters.newBuilder(registerParameters_) - .mergeFrom(value) - .buildPartial(); - } else { - registerParameters_ = value; - } - onChanged(); - } else { - registerParametersBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - */ - public Builder clearRegisterParameters() { - if (registerParametersBuilder_ == null) { - registerParameters_ = null; - onChanged(); - } else { - registerParameters_ = null; - registerParametersBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - */ - public com.google.cloud.domains.v1alpha2.RegisterParameters.Builder - getRegisterParametersBuilder() { - - onChanged(); - return getRegisterParametersFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - */ - public com.google.cloud.domains.v1alpha2.RegisterParametersOrBuilder - getRegisterParametersOrBuilder() { - if (registerParametersBuilder_ != null) { - return registerParametersBuilder_.getMessageOrBuilder(); - } else { - return registerParameters_ == null - ? com.google.cloud.domains.v1alpha2.RegisterParameters.getDefaultInstance() - : registerParameters_; - } - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.RegisterParameters, - com.google.cloud.domains.v1alpha2.RegisterParameters.Builder, - com.google.cloud.domains.v1alpha2.RegisterParametersOrBuilder> - getRegisterParametersFieldBuilder() { - if (registerParametersBuilder_ == null) { - registerParametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.RegisterParameters, - com.google.cloud.domains.v1alpha2.RegisterParameters.Builder, - com.google.cloud.domains.v1alpha2.RegisterParametersOrBuilder>( - getRegisterParameters(), getParentForChildren(), isClean()); - registerParameters_ = null; - } - return registerParametersBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse) - private static final com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse(); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveRegisterParametersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveRegisterParametersResponseOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveRegisterParametersResponseOrBuilder.java deleted file mode 100644 index fafced7b..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveRegisterParametersResponseOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface RetrieveRegisterParametersResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - * @return Whether the registerParameters field is set. - */ - boolean hasRegisterParameters(); - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - * @return The registerParameters. - */ - com.google.cloud.domains.v1alpha2.RegisterParameters getRegisterParameters(); - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - */ - com.google.cloud.domains.v1alpha2.RegisterParametersOrBuilder getRegisterParametersOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveTransferParametersRequest.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveTransferParametersRequest.java deleted file mode 100644 index 77af4075..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveTransferParametersRequest.java +++ /dev/null @@ -1,819 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Request for the `RetrieveTransferParameters` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest} - */ -public final class RetrieveTransferParametersRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest) - RetrieveTransferParametersRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetrieveTransferParametersRequest.newBuilder() to construct. - private RetrieveTransferParametersRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetrieveTransferParametersRequest() { - domainName_ = ""; - location_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetrieveTransferParametersRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest.class, - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest.Builder.class); - } - - public static final int DOMAIN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object domainName_; - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - @java.lang.Override - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_FIELD_NUMBER = 2; - private volatile java.lang.Object location_; - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - @java.lang.Override - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, location_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest other = - (com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest) obj; - - if (!getDomainName().equals(other.getDomainName())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOMAIN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDomainName().hashCode(); - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `RetrieveTransferParameters` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest) - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest.class, - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest.Builder.class); - } - - // Construct using - // com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - domainName_ = ""; - - location_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest build() { - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest buildPartial() { - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest result = - new com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest(this); - result.domainName_ = domainName_; - result.location_ = location_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest) { - return mergeFrom( - (com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest other) { - if (other - == com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest - .getDefaultInstance()) return this; - if (!other.getDomainName().isEmpty()) { - domainName_ = other.domainName_; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - domainName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - location_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object domainName_ = ""; - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domainName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDomainName() { - - domainName_ = getDefaultInstance().getDomainName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domainName_ = value; - onChanged(); - return this; - } - - private java.lang.Object location_ = ""; - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The location to set. - * @return This builder for chaining. - */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - location_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearLocation() { - - location_ = getDefaultInstance().getLocation(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for location to set. - * @return This builder for chaining. - */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - location_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest) - private static final com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest(); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveTransferParametersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveTransferParametersRequestOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveTransferParametersRequestOrBuilder.java deleted file mode 100644 index c5fe266b..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveTransferParametersRequestOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface RetrieveTransferParametersRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - java.lang.String getDomainName(); - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - com.google.protobuf.ByteString getDomainNameBytes(); - - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - java.lang.String getLocation(); - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveTransferParametersResponse.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveTransferParametersResponse.java deleted file mode 100644 index 50af1afc..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveTransferParametersResponse.java +++ /dev/null @@ -1,722 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Response for the `RetrieveTransferParameters` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse} - */ -public final class RetrieveTransferParametersResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse) - RetrieveTransferParametersResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetrieveTransferParametersResponse.newBuilder() to construct. - private RetrieveTransferParametersResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetrieveTransferParametersResponse() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetrieveTransferParametersResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse.class, - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse.Builder.class); - } - - public static final int TRANSFER_PARAMETERS_FIELD_NUMBER = 1; - private com.google.cloud.domains.v1alpha2.TransferParameters transferParameters_; - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.TransferParameters transfer_parameters = 1; - * - * @return Whether the transferParameters field is set. - */ - @java.lang.Override - public boolean hasTransferParameters() { - return transferParameters_ != null; - } - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.TransferParameters transfer_parameters = 1; - * - * @return The transferParameters. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.TransferParameters getTransferParameters() { - return transferParameters_ == null - ? com.google.cloud.domains.v1alpha2.TransferParameters.getDefaultInstance() - : transferParameters_; - } - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.TransferParameters transfer_parameters = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.TransferParametersOrBuilder - getTransferParametersOrBuilder() { - return getTransferParameters(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (transferParameters_ != null) { - output.writeMessage(1, getTransferParameters()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (transferParameters_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTransferParameters()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse other = - (com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse) obj; - - if (hasTransferParameters() != other.hasTransferParameters()) return false; - if (hasTransferParameters()) { - if (!getTransferParameters().equals(other.getTransferParameters())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTransferParameters()) { - hash = (37 * hash) + TRANSFER_PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getTransferParameters().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response for the `RetrieveTransferParameters` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse) - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse.class, - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse.Builder.class); - } - - // Construct using - // com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (transferParametersBuilder_ == null) { - transferParameters_ = null; - } else { - transferParameters_ = null; - transferParametersBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_RetrieveTransferParametersResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse - getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse build() { - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse buildPartial() { - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse result = - new com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse(this); - if (transferParametersBuilder_ == null) { - result.transferParameters_ = transferParameters_; - } else { - result.transferParameters_ = transferParametersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse) { - return mergeFrom( - (com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse other) { - if (other - == com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse - .getDefaultInstance()) return this; - if (other.hasTransferParameters()) { - mergeTransferParameters(other.getTransferParameters()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getTransferParametersFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.domains.v1alpha2.TransferParameters transferParameters_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.TransferParameters, - com.google.cloud.domains.v1alpha2.TransferParameters.Builder, - com.google.cloud.domains.v1alpha2.TransferParametersOrBuilder> - transferParametersBuilder_; - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferParameters transfer_parameters = 1; - * - * @return Whether the transferParameters field is set. - */ - public boolean hasTransferParameters() { - return transferParametersBuilder_ != null || transferParameters_ != null; - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferParameters transfer_parameters = 1; - * - * @return The transferParameters. - */ - public com.google.cloud.domains.v1alpha2.TransferParameters getTransferParameters() { - if (transferParametersBuilder_ == null) { - return transferParameters_ == null - ? com.google.cloud.domains.v1alpha2.TransferParameters.getDefaultInstance() - : transferParameters_; - } else { - return transferParametersBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferParameters transfer_parameters = 1; - */ - public Builder setTransferParameters( - com.google.cloud.domains.v1alpha2.TransferParameters value) { - if (transferParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transferParameters_ = value; - onChanged(); - } else { - transferParametersBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferParameters transfer_parameters = 1; - */ - public Builder setTransferParameters( - com.google.cloud.domains.v1alpha2.TransferParameters.Builder builderForValue) { - if (transferParametersBuilder_ == null) { - transferParameters_ = builderForValue.build(); - onChanged(); - } else { - transferParametersBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferParameters transfer_parameters = 1; - */ - public Builder mergeTransferParameters( - com.google.cloud.domains.v1alpha2.TransferParameters value) { - if (transferParametersBuilder_ == null) { - if (transferParameters_ != null) { - transferParameters_ = - com.google.cloud.domains.v1alpha2.TransferParameters.newBuilder(transferParameters_) - .mergeFrom(value) - .buildPartial(); - } else { - transferParameters_ = value; - } - onChanged(); - } else { - transferParametersBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferParameters transfer_parameters = 1; - */ - public Builder clearTransferParameters() { - if (transferParametersBuilder_ == null) { - transferParameters_ = null; - onChanged(); - } else { - transferParameters_ = null; - transferParametersBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferParameters transfer_parameters = 1; - */ - public com.google.cloud.domains.v1alpha2.TransferParameters.Builder - getTransferParametersBuilder() { - - onChanged(); - return getTransferParametersFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferParameters transfer_parameters = 1; - */ - public com.google.cloud.domains.v1alpha2.TransferParametersOrBuilder - getTransferParametersOrBuilder() { - if (transferParametersBuilder_ != null) { - return transferParametersBuilder_.getMessageOrBuilder(); - } else { - return transferParameters_ == null - ? com.google.cloud.domains.v1alpha2.TransferParameters.getDefaultInstance() - : transferParameters_; - } - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferParameters transfer_parameters = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.TransferParameters, - com.google.cloud.domains.v1alpha2.TransferParameters.Builder, - com.google.cloud.domains.v1alpha2.TransferParametersOrBuilder> - getTransferParametersFieldBuilder() { - if (transferParametersBuilder_ == null) { - transferParametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.TransferParameters, - com.google.cloud.domains.v1alpha2.TransferParameters.Builder, - com.google.cloud.domains.v1alpha2.TransferParametersOrBuilder>( - getTransferParameters(), getParentForChildren(), isClean()); - transferParameters_ = null; - } - return transferParametersBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse) - private static final com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse(); - } - - public static com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveTransferParametersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveTransferParametersResponseOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveTransferParametersResponseOrBuilder.java deleted file mode 100644 index b80b8f3c..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RetrieveTransferParametersResponseOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface RetrieveTransferParametersResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.TransferParameters transfer_parameters = 1; - * - * @return Whether the transferParameters field is set. - */ - boolean hasTransferParameters(); - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.TransferParameters transfer_parameters = 1; - * - * @return The transferParameters. - */ - com.google.cloud.domains.v1alpha2.TransferParameters getTransferParameters(); - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1alpha2.TransferParameters transfer_parameters = 1; - */ - com.google.cloud.domains.v1alpha2.TransferParametersOrBuilder getTransferParametersOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/SearchDomainsRequest.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/SearchDomainsRequest.java deleted file mode 100644 index 5d138dbb..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/SearchDomainsRequest.java +++ /dev/null @@ -1,808 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Request for the `SearchDomains` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.SearchDomainsRequest} - */ -public final class SearchDomainsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.SearchDomainsRequest) - SearchDomainsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SearchDomainsRequest.newBuilder() to construct. - private SearchDomainsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SearchDomainsRequest() { - query_ = ""; - location_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SearchDomainsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_SearchDomainsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_SearchDomainsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.SearchDomainsRequest.class, - com.google.cloud.domains.v1alpha2.SearchDomainsRequest.Builder.class); - } - - public static final int QUERY_FIELD_NUMBER = 1; - private volatile java.lang.Object query_; - /** - * - * - *
-   * Required. String used to search for available domain names.
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The query. - */ - @java.lang.Override - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } - } - /** - * - * - *
-   * Required. String used to search for available domain names.
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for query. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_FIELD_NUMBER = 2; - private volatile java.lang.Object location_; - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - @java.lang.Override - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, location_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.SearchDomainsRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.SearchDomainsRequest other = - (com.google.cloud.domains.v1alpha2.SearchDomainsRequest) obj; - - if (!getQuery().equals(other.getQuery())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.SearchDomainsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `SearchDomains` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.SearchDomainsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.SearchDomainsRequest) - com.google.cloud.domains.v1alpha2.SearchDomainsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_SearchDomainsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_SearchDomainsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.SearchDomainsRequest.class, - com.google.cloud.domains.v1alpha2.SearchDomainsRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.SearchDomainsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - query_ = ""; - - location_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_SearchDomainsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.SearchDomainsRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.SearchDomainsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.SearchDomainsRequest build() { - com.google.cloud.domains.v1alpha2.SearchDomainsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.SearchDomainsRequest buildPartial() { - com.google.cloud.domains.v1alpha2.SearchDomainsRequest result = - new com.google.cloud.domains.v1alpha2.SearchDomainsRequest(this); - result.query_ = query_; - result.location_ = location_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.SearchDomainsRequest) { - return mergeFrom((com.google.cloud.domains.v1alpha2.SearchDomainsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.SearchDomainsRequest other) { - if (other == com.google.cloud.domains.v1alpha2.SearchDomainsRequest.getDefaultInstance()) - return this; - if (!other.getQuery().isEmpty()) { - query_ = other.query_; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - query_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - location_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object query_ = ""; - /** - * - * - *
-     * Required. String used to search for available domain names.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The query. - */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. String used to search for available domain names.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for query. - */ - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. String used to search for available domain names.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The query to set. - * @return This builder for chaining. - */ - public Builder setQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - query_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. String used to search for available domain names.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearQuery() { - - query_ = getDefaultInstance().getQuery(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. String used to search for available domain names.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for query to set. - * @return This builder for chaining. - */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - query_ = value; - onChanged(); - return this; - } - - private java.lang.Object location_ = ""; - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The location to set. - * @return This builder for chaining. - */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - location_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearLocation() { - - location_ = getDefaultInstance().getLocation(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for location to set. - * @return This builder for chaining. - */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - location_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.SearchDomainsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.SearchDomainsRequest) - private static final com.google.cloud.domains.v1alpha2.SearchDomainsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.SearchDomainsRequest(); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchDomainsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.SearchDomainsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/SearchDomainsRequestOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/SearchDomainsRequestOrBuilder.java deleted file mode 100644 index 1c8fdb6f..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/SearchDomainsRequestOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface SearchDomainsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.SearchDomainsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. String used to search for available domain names.
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The query. - */ - java.lang.String getQuery(); - /** - * - * - *
-   * Required. String used to search for available domain names.
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for query. - */ - com.google.protobuf.ByteString getQueryBytes(); - - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - java.lang.String getLocation(); - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/SearchDomainsResponse.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/SearchDomainsResponse.java deleted file mode 100644 index d8c50f09..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/SearchDomainsResponse.java +++ /dev/null @@ -1,969 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Response for the `SearchDomains` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.SearchDomainsResponse} - */ -public final class SearchDomainsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.SearchDomainsResponse) - SearchDomainsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use SearchDomainsResponse.newBuilder() to construct. - private SearchDomainsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SearchDomainsResponse() { - registerParameters_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SearchDomainsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_SearchDomainsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_SearchDomainsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.SearchDomainsResponse.class, - com.google.cloud.domains.v1alpha2.SearchDomainsResponse.Builder.class); - } - - public static final int REGISTER_PARAMETERS_FIELD_NUMBER = 1; - private java.util.List registerParameters_; - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - @java.lang.Override - public java.util.List - getRegisterParametersList() { - return registerParameters_; - } - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - @java.lang.Override - public java.util.List - getRegisterParametersOrBuilderList() { - return registerParameters_; - } - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - @java.lang.Override - public int getRegisterParametersCount() { - return registerParameters_.size(); - } - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegisterParameters getRegisterParameters(int index) { - return registerParameters_.get(index); - } - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegisterParametersOrBuilder - getRegisterParametersOrBuilder(int index) { - return registerParameters_.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 < registerParameters_.size(); i++) { - output.writeMessage(1, registerParameters_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < registerParameters_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, registerParameters_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.SearchDomainsResponse)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.SearchDomainsResponse other = - (com.google.cloud.domains.v1alpha2.SearchDomainsResponse) obj; - - if (!getRegisterParametersList().equals(other.getRegisterParametersList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRegisterParametersCount() > 0) { - hash = (37 * hash) + REGISTER_PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getRegisterParametersList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.SearchDomainsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response for the `SearchDomains` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.SearchDomainsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.SearchDomainsResponse) - com.google.cloud.domains.v1alpha2.SearchDomainsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_SearchDomainsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_SearchDomainsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.SearchDomainsResponse.class, - com.google.cloud.domains.v1alpha2.SearchDomainsResponse.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.SearchDomainsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (registerParametersBuilder_ == null) { - registerParameters_ = java.util.Collections.emptyList(); - } else { - registerParameters_ = null; - registerParametersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_SearchDomainsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.SearchDomainsResponse getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.SearchDomainsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.SearchDomainsResponse build() { - com.google.cloud.domains.v1alpha2.SearchDomainsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.SearchDomainsResponse buildPartial() { - com.google.cloud.domains.v1alpha2.SearchDomainsResponse result = - new com.google.cloud.domains.v1alpha2.SearchDomainsResponse(this); - int from_bitField0_ = bitField0_; - if (registerParametersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - registerParameters_ = java.util.Collections.unmodifiableList(registerParameters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.registerParameters_ = registerParameters_; - } else { - result.registerParameters_ = registerParametersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.SearchDomainsResponse) { - return mergeFrom((com.google.cloud.domains.v1alpha2.SearchDomainsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.SearchDomainsResponse other) { - if (other == com.google.cloud.domains.v1alpha2.SearchDomainsResponse.getDefaultInstance()) - return this; - if (registerParametersBuilder_ == null) { - if (!other.registerParameters_.isEmpty()) { - if (registerParameters_.isEmpty()) { - registerParameters_ = other.registerParameters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRegisterParametersIsMutable(); - registerParameters_.addAll(other.registerParameters_); - } - onChanged(); - } - } else { - if (!other.registerParameters_.isEmpty()) { - if (registerParametersBuilder_.isEmpty()) { - registerParametersBuilder_.dispose(); - registerParametersBuilder_ = null; - registerParameters_ = other.registerParameters_; - bitField0_ = (bitField0_ & ~0x00000001); - registerParametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRegisterParametersFieldBuilder() - : null; - } else { - registerParametersBuilder_.addAllMessages(other.registerParameters_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.domains.v1alpha2.RegisterParameters m = - input.readMessage( - com.google.cloud.domains.v1alpha2.RegisterParameters.parser(), - extensionRegistry); - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - registerParameters_.add(m); - } else { - registerParametersBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List - registerParameters_ = java.util.Collections.emptyList(); - - private void ensureRegisterParametersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - registerParameters_ = - new java.util.ArrayList( - registerParameters_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1alpha2.RegisterParameters, - com.google.cloud.domains.v1alpha2.RegisterParameters.Builder, - com.google.cloud.domains.v1alpha2.RegisterParametersOrBuilder> - registerParametersBuilder_; - - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public java.util.List - getRegisterParametersList() { - if (registerParametersBuilder_ == null) { - return java.util.Collections.unmodifiableList(registerParameters_); - } else { - return registerParametersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public int getRegisterParametersCount() { - if (registerParametersBuilder_ == null) { - return registerParameters_.size(); - } else { - return registerParametersBuilder_.getCount(); - } - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public com.google.cloud.domains.v1alpha2.RegisterParameters getRegisterParameters(int index) { - if (registerParametersBuilder_ == null) { - return registerParameters_.get(index); - } else { - return registerParametersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public Builder setRegisterParameters( - int index, com.google.cloud.domains.v1alpha2.RegisterParameters value) { - if (registerParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisterParametersIsMutable(); - registerParameters_.set(index, value); - onChanged(); - } else { - registerParametersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public Builder setRegisterParameters( - int index, com.google.cloud.domains.v1alpha2.RegisterParameters.Builder builderForValue) { - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - registerParameters_.set(index, builderForValue.build()); - onChanged(); - } else { - registerParametersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public Builder addRegisterParameters( - com.google.cloud.domains.v1alpha2.RegisterParameters value) { - if (registerParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisterParametersIsMutable(); - registerParameters_.add(value); - onChanged(); - } else { - registerParametersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public Builder addRegisterParameters( - int index, com.google.cloud.domains.v1alpha2.RegisterParameters value) { - if (registerParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisterParametersIsMutable(); - registerParameters_.add(index, value); - onChanged(); - } else { - registerParametersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public Builder addRegisterParameters( - com.google.cloud.domains.v1alpha2.RegisterParameters.Builder builderForValue) { - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - registerParameters_.add(builderForValue.build()); - onChanged(); - } else { - registerParametersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public Builder addRegisterParameters( - int index, com.google.cloud.domains.v1alpha2.RegisterParameters.Builder builderForValue) { - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - registerParameters_.add(index, builderForValue.build()); - onChanged(); - } else { - registerParametersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public Builder addAllRegisterParameters( - java.lang.Iterable values) { - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, registerParameters_); - onChanged(); - } else { - registerParametersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public Builder clearRegisterParameters() { - if (registerParametersBuilder_ == null) { - registerParameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - registerParametersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public Builder removeRegisterParameters(int index) { - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - registerParameters_.remove(index); - onChanged(); - } else { - registerParametersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public com.google.cloud.domains.v1alpha2.RegisterParameters.Builder - getRegisterParametersBuilder(int index) { - return getRegisterParametersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public com.google.cloud.domains.v1alpha2.RegisterParametersOrBuilder - getRegisterParametersOrBuilder(int index) { - if (registerParametersBuilder_ == null) { - return registerParameters_.get(index); - } else { - return registerParametersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public java.util.List - getRegisterParametersOrBuilderList() { - if (registerParametersBuilder_ != null) { - return registerParametersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(registerParameters_); - } - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public com.google.cloud.domains.v1alpha2.RegisterParameters.Builder - addRegisterParametersBuilder() { - return getRegisterParametersFieldBuilder() - .addBuilder(com.google.cloud.domains.v1alpha2.RegisterParameters.getDefaultInstance()); - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public com.google.cloud.domains.v1alpha2.RegisterParameters.Builder - addRegisterParametersBuilder(int index) { - return getRegisterParametersFieldBuilder() - .addBuilder( - index, com.google.cloud.domains.v1alpha2.RegisterParameters.getDefaultInstance()); - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - public java.util.List - getRegisterParametersBuilderList() { - return getRegisterParametersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1alpha2.RegisterParameters, - com.google.cloud.domains.v1alpha2.RegisterParameters.Builder, - com.google.cloud.domains.v1alpha2.RegisterParametersOrBuilder> - getRegisterParametersFieldBuilder() { - if (registerParametersBuilder_ == null) { - registerParametersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1alpha2.RegisterParameters, - com.google.cloud.domains.v1alpha2.RegisterParameters.Builder, - com.google.cloud.domains.v1alpha2.RegisterParametersOrBuilder>( - registerParameters_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - registerParameters_ = null; - } - return registerParametersBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.SearchDomainsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.SearchDomainsResponse) - private static final com.google.cloud.domains.v1alpha2.SearchDomainsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.SearchDomainsResponse(); - } - - public static com.google.cloud.domains.v1alpha2.SearchDomainsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchDomainsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.SearchDomainsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/SearchDomainsResponseOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/SearchDomainsResponseOrBuilder.java deleted file mode 100644 index 4654c018..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/SearchDomainsResponseOrBuilder.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface SearchDomainsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.SearchDomainsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - java.util.List getRegisterParametersList(); - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - com.google.cloud.domains.v1alpha2.RegisterParameters getRegisterParameters(int index); - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - int getRegisterParametersCount(); - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - java.util.List - getRegisterParametersOrBuilderList(); - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.RegisterParameters register_parameters = 1; - * - */ - com.google.cloud.domains.v1alpha2.RegisterParametersOrBuilder getRegisterParametersOrBuilder( - int index); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/TransferDomainRequest.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/TransferDomainRequest.java deleted file mode 100644 index 473bd36c..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/TransferDomainRequest.java +++ /dev/null @@ -1,2064 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Request for the `TransferDomain` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.TransferDomainRequest} - */ -public final class TransferDomainRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.TransferDomainRequest) - TransferDomainRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TransferDomainRequest.newBuilder() to construct. - private TransferDomainRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TransferDomainRequest() { - parent_ = ""; - contactNotices_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TransferDomainRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_TransferDomainRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_TransferDomainRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.TransferDomainRequest.class, - com.google.cloud.domains.v1alpha2.TransferDomainRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGISTRATION_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1alpha2.Registration registration_; - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - @java.lang.Override - public boolean hasRegistration() { - return registration_ != null; - } - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.Registration getRegistration() { - return registration_ == null - ? com.google.cloud.domains.v1alpha2.Registration.getDefaultInstance() - : registration_; - } - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegistrationOrBuilder getRegistrationOrBuilder() { - return getRegistration(); - } - - public static final int CONTACT_NOTICES_FIELD_NUMBER = 3; - private java.util.List contactNotices_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactNotice> - contactNotices_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactNotice>() { - public com.google.cloud.domains.v1alpha2.ContactNotice convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.ContactNotice result = - com.google.cloud.domains.v1alpha2.ContactNotice.valueOf(from); - return result == null - ? com.google.cloud.domains.v1alpha2.ContactNotice.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @return A list containing the contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @return The count of contactNotices. - */ - @java.lang.Override - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesValueList() { - return contactNotices_; - } - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - @java.lang.Override - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - - private int contactNoticesMemoizedSerializedSize; - - public static final int YEARLY_PRICE_FIELD_NUMBER = 4; - private com.google.type.Money yearlyPrice_; - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - @java.lang.Override - public boolean hasYearlyPrice() { - return yearlyPrice_ != null; - } - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - @java.lang.Override - public com.google.type.Money getYearlyPrice() { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - return getYearlyPrice(); - } - - public static final int AUTHORIZATION_CODE_FIELD_NUMBER = 5; - private com.google.cloud.domains.v1alpha2.AuthorizationCode authorizationCode_; - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5; - * - * @return Whether the authorizationCode field is set. - */ - @java.lang.Override - public boolean hasAuthorizationCode() { - return authorizationCode_ != null; - } - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5; - * - * @return The authorizationCode. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.AuthorizationCode getAuthorizationCode() { - return authorizationCode_ == null - ? com.google.cloud.domains.v1alpha2.AuthorizationCode.getDefaultInstance() - : authorizationCode_; - } - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5; - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.AuthorizationCodeOrBuilder - getAuthorizationCodeOrBuilder() { - return getAuthorizationCode(); - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 6; - private boolean validateOnly_; - /** - * - * - *
-   * Validate the request without actually transferring the domain.
-   * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (registration_ != null) { - output.writeMessage(2, getRegistration()); - } - if (getContactNoticesList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(contactNoticesMemoizedSerializedSize); - } - for (int i = 0; i < contactNotices_.size(); i++) { - output.writeEnumNoTag(contactNotices_.get(i)); - } - if (yearlyPrice_ != null) { - output.writeMessage(4, getYearlyPrice()); - } - if (authorizationCode_ != null) { - output.writeMessage(5, getAuthorizationCode()); - } - if (validateOnly_ != false) { - output.writeBool(6, validateOnly_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (registration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRegistration()); - } - { - int dataSize = 0; - for (int i = 0; i < contactNotices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(contactNotices_.get(i)); - } - size += dataSize; - if (!getContactNoticesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - contactNoticesMemoizedSerializedSize = dataSize; - } - if (yearlyPrice_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getYearlyPrice()); - } - if (authorizationCode_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthorizationCode()); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, validateOnly_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.TransferDomainRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.TransferDomainRequest other = - (com.google.cloud.domains.v1alpha2.TransferDomainRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasRegistration() != other.hasRegistration()) return false; - if (hasRegistration()) { - if (!getRegistration().equals(other.getRegistration())) return false; - } - if (!contactNotices_.equals(other.contactNotices_)) return false; - if (hasYearlyPrice() != other.hasYearlyPrice()) return false; - if (hasYearlyPrice()) { - if (!getYearlyPrice().equals(other.getYearlyPrice())) return false; - } - if (hasAuthorizationCode() != other.hasAuthorizationCode()) return false; - if (hasAuthorizationCode()) { - if (!getAuthorizationCode().equals(other.getAuthorizationCode())) return false; - } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasRegistration()) { - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - } - if (getContactNoticesCount() > 0) { - hash = (37 * hash) + CONTACT_NOTICES_FIELD_NUMBER; - hash = (53 * hash) + contactNotices_.hashCode(); - } - if (hasYearlyPrice()) { - hash = (37 * hash) + YEARLY_PRICE_FIELD_NUMBER; - hash = (53 * hash) + getYearlyPrice().hashCode(); - } - if (hasAuthorizationCode()) { - hash = (37 * hash) + AUTHORIZATION_CODE_FIELD_NUMBER; - hash = (53 * hash) + getAuthorizationCode().hashCode(); - } - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.TransferDomainRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.TransferDomainRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.TransferDomainRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.TransferDomainRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.TransferDomainRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.TransferDomainRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.TransferDomainRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.TransferDomainRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.TransferDomainRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.TransferDomainRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.TransferDomainRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.TransferDomainRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.TransferDomainRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `TransferDomain` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.TransferDomainRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.TransferDomainRequest) - com.google.cloud.domains.v1alpha2.TransferDomainRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_TransferDomainRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_TransferDomainRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.TransferDomainRequest.class, - com.google.cloud.domains.v1alpha2.TransferDomainRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.TransferDomainRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (registrationBuilder_ == null) { - registration_ = null; - } else { - registration_ = null; - registrationBuilder_ = null; - } - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - if (authorizationCodeBuilder_ == null) { - authorizationCode_ = null; - } else { - authorizationCode_ = null; - authorizationCodeBuilder_ = null; - } - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_TransferDomainRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.TransferDomainRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.TransferDomainRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.TransferDomainRequest build() { - com.google.cloud.domains.v1alpha2.TransferDomainRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.TransferDomainRequest buildPartial() { - com.google.cloud.domains.v1alpha2.TransferDomainRequest result = - new com.google.cloud.domains.v1alpha2.TransferDomainRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; - if (registrationBuilder_ == null) { - result.registration_ = registration_; - } else { - result.registration_ = registrationBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - contactNotices_ = java.util.Collections.unmodifiableList(contactNotices_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.contactNotices_ = contactNotices_; - if (yearlyPriceBuilder_ == null) { - result.yearlyPrice_ = yearlyPrice_; - } else { - result.yearlyPrice_ = yearlyPriceBuilder_.build(); - } - if (authorizationCodeBuilder_ == null) { - result.authorizationCode_ = authorizationCode_; - } else { - result.authorizationCode_ = authorizationCodeBuilder_.build(); - } - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.TransferDomainRequest) { - return mergeFrom((com.google.cloud.domains.v1alpha2.TransferDomainRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.TransferDomainRequest other) { - if (other == com.google.cloud.domains.v1alpha2.TransferDomainRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasRegistration()) { - mergeRegistration(other.getRegistration()); - } - if (!other.contactNotices_.isEmpty()) { - if (contactNotices_.isEmpty()) { - contactNotices_ = other.contactNotices_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureContactNoticesIsMutable(); - contactNotices_.addAll(other.contactNotices_); - } - onChanged(); - } - if (other.hasYearlyPrice()) { - mergeYearlyPrice(other.getYearlyPrice()); - } - if (other.hasAuthorizationCode()) { - mergeAuthorizationCode(other.getAuthorizationCode()); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getRegistrationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 24: - { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - break; - } // case 24 - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 34: - { - input.readMessage(getYearlyPriceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage( - getAuthorizationCodeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 48: - { - validateOnly_ = input.readBool(); - - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1alpha2.Registration registration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.Registration, - com.google.cloud.domains.v1alpha2.Registration.Builder, - com.google.cloud.domains.v1alpha2.RegistrationOrBuilder> - registrationBuilder_; - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - public boolean hasRegistration() { - return registrationBuilder_ != null || registration_ != null; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - public com.google.cloud.domains.v1alpha2.Registration getRegistration() { - if (registrationBuilder_ == null) { - return registration_ == null - ? com.google.cloud.domains.v1alpha2.Registration.getDefaultInstance() - : registration_; - } else { - return registrationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistration(com.google.cloud.domains.v1alpha2.Registration value) { - if (registrationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - registration_ = value; - onChanged(); - } else { - registrationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistration( - com.google.cloud.domains.v1alpha2.Registration.Builder builderForValue) { - if (registrationBuilder_ == null) { - registration_ = builderForValue.build(); - onChanged(); - } else { - registrationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRegistration(com.google.cloud.domains.v1alpha2.Registration value) { - if (registrationBuilder_ == null) { - if (registration_ != null) { - registration_ = - com.google.cloud.domains.v1alpha2.Registration.newBuilder(registration_) - .mergeFrom(value) - .buildPartial(); - } else { - registration_ = value; - } - onChanged(); - } else { - registrationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRegistration() { - if (registrationBuilder_ == null) { - registration_ = null; - onChanged(); - } else { - registration_ = null; - registrationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1alpha2.Registration.Builder getRegistrationBuilder() { - - onChanged(); - return getRegistrationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1alpha2.RegistrationOrBuilder getRegistrationOrBuilder() { - if (registrationBuilder_ != null) { - return registrationBuilder_.getMessageOrBuilder(); - } else { - return registration_ == null - ? com.google.cloud.domains.v1alpha2.Registration.getDefaultInstance() - : registration_; - } - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.Registration, - com.google.cloud.domains.v1alpha2.Registration.Builder, - com.google.cloud.domains.v1alpha2.RegistrationOrBuilder> - getRegistrationFieldBuilder() { - if (registrationBuilder_ == null) { - registrationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.Registration, - com.google.cloud.domains.v1alpha2.Registration.Builder, - com.google.cloud.domains.v1alpha2.RegistrationOrBuilder>( - getRegistration(), getParentForChildren(), isClean()); - registration_ = null; - } - return registrationBuilder_; - } - - private java.util.List contactNotices_ = java.util.Collections.emptyList(); - - private void ensureContactNoticesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - contactNotices_ = new java.util.ArrayList(contactNotices_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @return A list containing the contactNotices. - */ - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @return The count of contactNotices. - */ - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - public com.google.cloud.domains.v1alpha2.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @param index The index to set the value at. - * @param value The contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNotices( - int index, com.google.cloud.domains.v1alpha2.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @param value The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNotices(com.google.cloud.domains.v1alpha2.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @param values The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNotices( - java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (com.google.cloud.domains.v1alpha2.ContactNotice value : values) { - contactNotices_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @return This builder for chaining. - */ - public Builder clearContactNotices() { - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - public java.util.List getContactNoticesValueList() { - return java.util.Collections.unmodifiableList(contactNotices_); - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNoticesValue(int index, int value) { - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @param value The enum numeric value on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNoticesValue(int value) { - ensureContactNoticesIsMutable(); - contactNotices_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @param values The enum numeric values on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNoticesValue(java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (int value : values) { - contactNotices_.add(value); - } - onChanged(); - return this; - } - - private com.google.type.Money yearlyPrice_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - yearlyPriceBuilder_; - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - public boolean hasYearlyPrice() { - return yearlyPriceBuilder_ != null || yearlyPrice_ != null; - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - public com.google.type.Money getYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } else { - return yearlyPriceBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - yearlyPrice_ = value; - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setYearlyPrice(com.google.type.Money.Builder builderForValue) { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = builderForValue.build(); - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (yearlyPrice_ != null) { - yearlyPrice_ = - com.google.type.Money.newBuilder(yearlyPrice_).mergeFrom(value).buildPartial(); - } else { - yearlyPrice_ = value; - } - onChanged(); - } else { - yearlyPriceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - onChanged(); - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.type.Money.Builder getYearlyPriceBuilder() { - - onChanged(); - return getYearlyPriceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - if (yearlyPriceBuilder_ != null) { - return yearlyPriceBuilder_.getMessageOrBuilder(); - } else { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - getYearlyPriceFieldBuilder() { - if (yearlyPriceBuilder_ == null) { - yearlyPriceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, - com.google.type.Money.Builder, - com.google.type.MoneyOrBuilder>( - getYearlyPrice(), getParentForChildren(), isClean()); - yearlyPrice_ = null; - } - return yearlyPriceBuilder_; - } - - private com.google.cloud.domains.v1alpha2.AuthorizationCode authorizationCode_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.AuthorizationCode, - com.google.cloud.domains.v1alpha2.AuthorizationCode.Builder, - com.google.cloud.domains.v1alpha2.AuthorizationCodeOrBuilder> - authorizationCodeBuilder_; - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5; - * - * @return Whether the authorizationCode field is set. - */ - public boolean hasAuthorizationCode() { - return authorizationCodeBuilder_ != null || authorizationCode_ != null; - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5; - * - * @return The authorizationCode. - */ - public com.google.cloud.domains.v1alpha2.AuthorizationCode getAuthorizationCode() { - if (authorizationCodeBuilder_ == null) { - return authorizationCode_ == null - ? com.google.cloud.domains.v1alpha2.AuthorizationCode.getDefaultInstance() - : authorizationCode_; - } else { - return authorizationCodeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5; - */ - public Builder setAuthorizationCode(com.google.cloud.domains.v1alpha2.AuthorizationCode value) { - if (authorizationCodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authorizationCode_ = value; - onChanged(); - } else { - authorizationCodeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5; - */ - public Builder setAuthorizationCode( - com.google.cloud.domains.v1alpha2.AuthorizationCode.Builder builderForValue) { - if (authorizationCodeBuilder_ == null) { - authorizationCode_ = builderForValue.build(); - onChanged(); - } else { - authorizationCodeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5; - */ - public Builder mergeAuthorizationCode( - com.google.cloud.domains.v1alpha2.AuthorizationCode value) { - if (authorizationCodeBuilder_ == null) { - if (authorizationCode_ != null) { - authorizationCode_ = - com.google.cloud.domains.v1alpha2.AuthorizationCode.newBuilder(authorizationCode_) - .mergeFrom(value) - .buildPartial(); - } else { - authorizationCode_ = value; - } - onChanged(); - } else { - authorizationCodeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5; - */ - public Builder clearAuthorizationCode() { - if (authorizationCodeBuilder_ == null) { - authorizationCode_ = null; - onChanged(); - } else { - authorizationCode_ = null; - authorizationCodeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5; - */ - public com.google.cloud.domains.v1alpha2.AuthorizationCode.Builder - getAuthorizationCodeBuilder() { - - onChanged(); - return getAuthorizationCodeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5; - */ - public com.google.cloud.domains.v1alpha2.AuthorizationCodeOrBuilder - getAuthorizationCodeOrBuilder() { - if (authorizationCodeBuilder_ != null) { - return authorizationCodeBuilder_.getMessageOrBuilder(); - } else { - return authorizationCode_ == null - ? com.google.cloud.domains.v1alpha2.AuthorizationCode.getDefaultInstance() - : authorizationCode_; - } - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.AuthorizationCode, - com.google.cloud.domains.v1alpha2.AuthorizationCode.Builder, - com.google.cloud.domains.v1alpha2.AuthorizationCodeOrBuilder> - getAuthorizationCodeFieldBuilder() { - if (authorizationCodeBuilder_ == null) { - authorizationCodeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.AuthorizationCode, - com.google.cloud.domains.v1alpha2.AuthorizationCode.Builder, - com.google.cloud.domains.v1alpha2.AuthorizationCodeOrBuilder>( - getAuthorizationCode(), getParentForChildren(), isClean()); - authorizationCode_ = null; - } - return authorizationCodeBuilder_; - } - - private boolean validateOnly_; - /** - * - * - *
-     * Validate the request without actually transferring the domain.
-     * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - * - * - *
-     * Validate the request without actually transferring the domain.
-     * 
- * - * bool validate_only = 6; - * - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Validate the request without actually transferring the domain.
-     * 
- * - * bool validate_only = 6; - * - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.TransferDomainRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.TransferDomainRequest) - private static final com.google.cloud.domains.v1alpha2.TransferDomainRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.TransferDomainRequest(); - } - - public static com.google.cloud.domains.v1alpha2.TransferDomainRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransferDomainRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.TransferDomainRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/TransferDomainRequestOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/TransferDomainRequestOrBuilder.java deleted file mode 100644 index ba973d8a..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/TransferDomainRequestOrBuilder.java +++ /dev/null @@ -1,277 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface TransferDomainRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.TransferDomainRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - boolean hasRegistration(); - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - com.google.cloud.domains.v1alpha2.Registration getRegistration(); - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1alpha2.RegistrationOrBuilder getRegistrationOrBuilder(); - - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @return A list containing the contactNotices. - */ - java.util.List getContactNoticesList(); - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @return The count of contactNotices. - */ - int getContactNoticesCount(); - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - com.google.cloud.domains.v1alpha2.ContactNotice getContactNotices(int index); - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - java.util.List getContactNoticesValueList(); - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - int getContactNoticesValue(int index); - - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - boolean hasYearlyPrice(); - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - com.google.type.Money getYearlyPrice(); - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder(); - - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5; - * - * @return Whether the authorizationCode field is set. - */ - boolean hasAuthorizationCode(); - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5; - * - * @return The authorizationCode. - */ - com.google.cloud.domains.v1alpha2.AuthorizationCode getAuthorizationCode(); - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5; - */ - com.google.cloud.domains.v1alpha2.AuthorizationCodeOrBuilder getAuthorizationCodeOrBuilder(); - - /** - * - * - *
-   * Validate the request without actually transferring the domain.
-   * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/TransferLockState.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/TransferLockState.java deleted file mode 100644 index c23537c7..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/TransferLockState.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Possible states of a `Registration`'s transfer lock.
- * 
- * - * Protobuf enum {@code google.cloud.domains.v1alpha2.TransferLockState} - */ -public enum TransferLockState implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * The state is unspecified.
-   * 
- * - * TRANSFER_LOCK_STATE_UNSPECIFIED = 0; - */ - TRANSFER_LOCK_STATE_UNSPECIFIED(0), - /** - * - * - *
-   * The domain is unlocked and can be transferred to another registrar.
-   * 
- * - * UNLOCKED = 1; - */ - UNLOCKED(1), - /** - * - * - *
-   * The domain is locked and cannot be transferred to another registrar.
-   * 
- * - * LOCKED = 2; - */ - LOCKED(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * The state is unspecified.
-   * 
- * - * TRANSFER_LOCK_STATE_UNSPECIFIED = 0; - */ - public static final int TRANSFER_LOCK_STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * The domain is unlocked and can be transferred to another registrar.
-   * 
- * - * UNLOCKED = 1; - */ - public static final int UNLOCKED_VALUE = 1; - /** - * - * - *
-   * The domain is locked and cannot be transferred to another registrar.
-   * 
- * - * LOCKED = 2; - */ - public static final int LOCKED_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 TransferLockState 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 TransferLockState forNumber(int value) { - switch (value) { - case 0: - return TRANSFER_LOCK_STATE_UNSPECIFIED; - case 1: - return UNLOCKED; - case 2: - return LOCKED; - 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 TransferLockState findValueByNumber(int number) { - return TransferLockState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto.getDescriptor().getEnumTypes().get(3); - } - - private static final TransferLockState[] VALUES = values(); - - public static TransferLockState 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 TransferLockState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1alpha2.TransferLockState) -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/TransferParameters.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/TransferParameters.java deleted file mode 100644 index 32aec423..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/TransferParameters.java +++ /dev/null @@ -1,1878 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Parameters required to transfer a domain from another registrar.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.TransferParameters} - */ -public final class TransferParameters extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.TransferParameters) - TransferParametersOrBuilder { - private static final long serialVersionUID = 0L; - // Use TransferParameters.newBuilder() to construct. - private TransferParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TransferParameters() { - domainName_ = ""; - currentRegistrar_ = ""; - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - transferLockState_ = 0; - supportedPrivacy_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TransferParameters(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_TransferParameters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_TransferParameters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.TransferParameters.class, - com.google.cloud.domains.v1alpha2.TransferParameters.Builder.class); - } - - public static final int DOMAIN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object domainName_; - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - @java.lang.Override - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } - } - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CURRENT_REGISTRAR_FIELD_NUMBER = 2; - private volatile java.lang.Object currentRegistrar_; - /** - * - * - *
-   * The registrar that currently manages the domain.
-   * 
- * - * string current_registrar = 2; - * - * @return The currentRegistrar. - */ - @java.lang.Override - public java.lang.String getCurrentRegistrar() { - java.lang.Object ref = currentRegistrar_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentRegistrar_ = s; - return s; - } - } - /** - * - * - *
-   * The registrar that currently manages the domain.
-   * 
- * - * string current_registrar = 2; - * - * @return The bytes for currentRegistrar. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCurrentRegistrarBytes() { - java.lang.Object ref = currentRegistrar_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currentRegistrar_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_SERVERS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList nameServers_; - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_; - } - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - - public static final int TRANSFER_LOCK_STATE_FIELD_NUMBER = 4; - private int transferLockState_; - /** - * - * - *
-   * Indicates whether the domain is protected by a transfer lock. For a
-   * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-   * go to its current registrar.
-   * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - @java.lang.Override - public int getTransferLockStateValue() { - return transferLockState_; - } - /** - * - * - *
-   * Indicates whether the domain is protected by a transfer lock. For a
-   * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-   * go to its current registrar.
-   * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.TransferLockState getTransferLockState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.TransferLockState result = - com.google.cloud.domains.v1alpha2.TransferLockState.valueOf(transferLockState_); - return result == null - ? com.google.cloud.domains.v1alpha2.TransferLockState.UNRECOGNIZED - : result; - } - - public static final int SUPPORTED_PRIVACY_FIELD_NUMBER = 5; - private java.util.List supportedPrivacy_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactPrivacy> - supportedPrivacy_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactPrivacy>() { - public com.google.cloud.domains.v1alpha2.ContactPrivacy convert( - java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.ContactPrivacy result = - com.google.cloud.domains.v1alpha2.ContactPrivacy.valueOf(from); - return result == null - ? com.google.cloud.domains.v1alpha2.ContactPrivacy.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the supportedPrivacy. - */ - @java.lang.Override - public java.util.List - getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @return The count of supportedPrivacy. - */ - @java.lang.Override - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - @java.lang.Override - public java.util.List getSupportedPrivacyValueList() { - return supportedPrivacy_; - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - @java.lang.Override - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - - private int supportedPrivacyMemoizedSerializedSize; - - public static final int YEARLY_PRICE_FIELD_NUMBER = 6; - private com.google.type.Money yearlyPrice_; - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - * - * @return Whether the yearlyPrice field is set. - */ - @java.lang.Override - public boolean hasYearlyPrice() { - return yearlyPrice_ != null; - } - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - * - * @return The yearlyPrice. - */ - @java.lang.Override - public com.google.type.Money getYearlyPrice() { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - */ - @java.lang.Override - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - return getYearlyPrice(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentRegistrar_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, currentRegistrar_); - } - for (int i = 0; i < nameServers_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nameServers_.getRaw(i)); - } - if (transferLockState_ - != com.google.cloud.domains.v1alpha2.TransferLockState.TRANSFER_LOCK_STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(4, transferLockState_); - } - if (getSupportedPrivacyList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(supportedPrivacyMemoizedSerializedSize); - } - for (int i = 0; i < supportedPrivacy_.size(); i++) { - output.writeEnumNoTag(supportedPrivacy_.get(i)); - } - if (yearlyPrice_ != null) { - output.writeMessage(6, getYearlyPrice()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentRegistrar_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currentRegistrar_); - } - { - int dataSize = 0; - for (int i = 0; i < nameServers_.size(); i++) { - dataSize += computeStringSizeNoTag(nameServers_.getRaw(i)); - } - size += dataSize; - size += 1 * getNameServersList().size(); - } - if (transferLockState_ - != com.google.cloud.domains.v1alpha2.TransferLockState.TRANSFER_LOCK_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, transferLockState_); - } - { - int dataSize = 0; - for (int i = 0; i < supportedPrivacy_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(supportedPrivacy_.get(i)); - } - size += dataSize; - if (!getSupportedPrivacyList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - supportedPrivacyMemoizedSerializedSize = dataSize; - } - if (yearlyPrice_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getYearlyPrice()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.TransferParameters)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.TransferParameters other = - (com.google.cloud.domains.v1alpha2.TransferParameters) obj; - - if (!getDomainName().equals(other.getDomainName())) return false; - if (!getCurrentRegistrar().equals(other.getCurrentRegistrar())) return false; - if (!getNameServersList().equals(other.getNameServersList())) return false; - if (transferLockState_ != other.transferLockState_) return false; - if (!supportedPrivacy_.equals(other.supportedPrivacy_)) return false; - if (hasYearlyPrice() != other.hasYearlyPrice()) return false; - if (hasYearlyPrice()) { - if (!getYearlyPrice().equals(other.getYearlyPrice())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOMAIN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDomainName().hashCode(); - hash = (37 * hash) + CURRENT_REGISTRAR_FIELD_NUMBER; - hash = (53 * hash) + getCurrentRegistrar().hashCode(); - if (getNameServersCount() > 0) { - hash = (37 * hash) + NAME_SERVERS_FIELD_NUMBER; - hash = (53 * hash) + getNameServersList().hashCode(); - } - hash = (37 * hash) + TRANSFER_LOCK_STATE_FIELD_NUMBER; - hash = (53 * hash) + transferLockState_; - if (getSupportedPrivacyCount() > 0) { - hash = (37 * hash) + SUPPORTED_PRIVACY_FIELD_NUMBER; - hash = (53 * hash) + supportedPrivacy_.hashCode(); - } - if (hasYearlyPrice()) { - hash = (37 * hash) + YEARLY_PRICE_FIELD_NUMBER; - hash = (53 * hash) + getYearlyPrice().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.TransferParameters parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.TransferParameters parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.TransferParameters parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.TransferParameters parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.TransferParameters parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.TransferParameters parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.TransferParameters parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.TransferParameters parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.TransferParameters parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.TransferParameters parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.TransferParameters parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.TransferParameters parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1alpha2.TransferParameters prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 required to transfer a domain from another registrar.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.TransferParameters} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.TransferParameters) - com.google.cloud.domains.v1alpha2.TransferParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_TransferParameters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_TransferParameters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.TransferParameters.class, - com.google.cloud.domains.v1alpha2.TransferParameters.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.TransferParameters.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - domainName_ = ""; - - currentRegistrar_ = ""; - - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - transferLockState_ = 0; - - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_TransferParameters_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.TransferParameters getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.TransferParameters.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.TransferParameters build() { - com.google.cloud.domains.v1alpha2.TransferParameters result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.TransferParameters buildPartial() { - com.google.cloud.domains.v1alpha2.TransferParameters result = - new com.google.cloud.domains.v1alpha2.TransferParameters(this); - int from_bitField0_ = bitField0_; - result.domainName_ = domainName_; - result.currentRegistrar_ = currentRegistrar_; - if (((bitField0_ & 0x00000001) != 0)) { - nameServers_ = nameServers_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nameServers_ = nameServers_; - result.transferLockState_ = transferLockState_; - if (((bitField0_ & 0x00000002) != 0)) { - supportedPrivacy_ = java.util.Collections.unmodifiableList(supportedPrivacy_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.supportedPrivacy_ = supportedPrivacy_; - if (yearlyPriceBuilder_ == null) { - result.yearlyPrice_ = yearlyPrice_; - } else { - result.yearlyPrice_ = yearlyPriceBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.TransferParameters) { - return mergeFrom((com.google.cloud.domains.v1alpha2.TransferParameters) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.TransferParameters other) { - if (other == com.google.cloud.domains.v1alpha2.TransferParameters.getDefaultInstance()) - return this; - if (!other.getDomainName().isEmpty()) { - domainName_ = other.domainName_; - onChanged(); - } - if (!other.getCurrentRegistrar().isEmpty()) { - currentRegistrar_ = other.currentRegistrar_; - onChanged(); - } - if (!other.nameServers_.isEmpty()) { - if (nameServers_.isEmpty()) { - nameServers_ = other.nameServers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNameServersIsMutable(); - nameServers_.addAll(other.nameServers_); - } - onChanged(); - } - if (other.transferLockState_ != 0) { - setTransferLockStateValue(other.getTransferLockStateValue()); - } - if (!other.supportedPrivacy_.isEmpty()) { - if (supportedPrivacy_.isEmpty()) { - supportedPrivacy_ = other.supportedPrivacy_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.addAll(other.supportedPrivacy_); - } - onChanged(); - } - if (other.hasYearlyPrice()) { - mergeYearlyPrice(other.getYearlyPrice()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - domainName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - currentRegistrar_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureNameServersIsMutable(); - nameServers_.add(s); - break; - } // case 26 - case 32: - { - transferLockState_ = input.readEnum(); - - break; - } // case 32 - case 40: - { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - break; - } // case 40 - case 42: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 42 - case 50: - { - input.readMessage(getYearlyPriceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object domainName_ = ""; - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @param value The domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domainName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDomainName() { - - domainName_ = getDefaultInstance().getDomainName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @param value The bytes for domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domainName_ = value; - onChanged(); - return this; - } - - private java.lang.Object currentRegistrar_ = ""; - /** - * - * - *
-     * The registrar that currently manages the domain.
-     * 
- * - * string current_registrar = 2; - * - * @return The currentRegistrar. - */ - public java.lang.String getCurrentRegistrar() { - java.lang.Object ref = currentRegistrar_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentRegistrar_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The registrar that currently manages the domain.
-     * 
- * - * string current_registrar = 2; - * - * @return The bytes for currentRegistrar. - */ - public com.google.protobuf.ByteString getCurrentRegistrarBytes() { - java.lang.Object ref = currentRegistrar_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currentRegistrar_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The registrar that currently manages the domain.
-     * 
- * - * string current_registrar = 2; - * - * @param value The currentRegistrar to set. - * @return This builder for chaining. - */ - public Builder setCurrentRegistrar(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currentRegistrar_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The registrar that currently manages the domain.
-     * 
- * - * string current_registrar = 2; - * - * @return This builder for chaining. - */ - public Builder clearCurrentRegistrar() { - - currentRegistrar_ = getDefaultInstance().getCurrentRegistrar(); - onChanged(); - return this; - } - /** - * - * - *
-     * The registrar that currently manages the domain.
-     * 
- * - * string current_registrar = 2; - * - * @param value The bytes for currentRegistrar to set. - * @return This builder for chaining. - */ - public Builder setCurrentRegistrarBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currentRegistrar_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList nameServers_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureNameServersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nameServers_ = new com.google.protobuf.LazyStringArrayList(nameServers_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_.getUnmodifiableView(); - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param index The index to set the value at. - * @param value The nameServers to set. - * @return This builder for chaining. - */ - public Builder setNameServers(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param value The nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServers(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param values The nameServers to add. - * @return This builder for chaining. - */ - public Builder addAllNameServers(java.lang.Iterable values) { - ensureNameServersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nameServers_); - onChanged(); - return this; - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @return This builder for chaining. - */ - public Builder clearNameServers() { - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param value The bytes of the nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServersBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - - private int transferLockState_ = 0; - /** - * - * - *
-     * Indicates whether the domain is protected by a transfer lock. For a
-     * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-     * go to its current registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - @java.lang.Override - public int getTransferLockStateValue() { - return transferLockState_; - } - /** - * - * - *
-     * Indicates whether the domain is protected by a transfer lock. For a
-     * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-     * go to its current registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @param value The enum numeric value on the wire for transferLockState to set. - * @return This builder for chaining. - */ - public Builder setTransferLockStateValue(int value) { - - transferLockState_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Indicates whether the domain is protected by a transfer lock. For a
-     * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-     * go to its current registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.TransferLockState getTransferLockState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1alpha2.TransferLockState result = - com.google.cloud.domains.v1alpha2.TransferLockState.valueOf(transferLockState_); - return result == null - ? com.google.cloud.domains.v1alpha2.TransferLockState.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Indicates whether the domain is protected by a transfer lock. For a
-     * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-     * go to its current registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @param value The transferLockState to set. - * @return This builder for chaining. - */ - public Builder setTransferLockState(com.google.cloud.domains.v1alpha2.TransferLockState value) { - if (value == null) { - throw new NullPointerException(); - } - - transferLockState_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Indicates whether the domain is protected by a transfer lock. For a
-     * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-     * go to its current registrar.
-     * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @return This builder for chaining. - */ - public Builder clearTransferLockState() { - - transferLockState_ = 0; - onChanged(); - return this; - } - - private java.util.List supportedPrivacy_ = java.util.Collections.emptyList(); - - private void ensureSupportedPrivacyIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - supportedPrivacy_ = new java.util.ArrayList(supportedPrivacy_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the supportedPrivacy. - */ - public java.util.List - getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1alpha2.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @return The count of supportedPrivacy. - */ - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - public com.google.cloud.domains.v1alpha2.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @param index The index to set the value at. - * @param value The supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacy( - int index, com.google.cloud.domains.v1alpha2.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @param value The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacy(com.google.cloud.domains.v1alpha2.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @param values The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacy( - java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (com.google.cloud.domains.v1alpha2.ContactPrivacy value : values) { - supportedPrivacy_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @return This builder for chaining. - */ - public Builder clearSupportedPrivacy() { - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - public java.util.List getSupportedPrivacyValueList() { - return java.util.Collections.unmodifiableList(supportedPrivacy_); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacyValue(int index, int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @param value The enum numeric value on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacyValue(int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @param values The enum numeric values on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacyValue(java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (int value : values) { - supportedPrivacy_.add(value); - } - onChanged(); - return this; - } - - private com.google.type.Money yearlyPrice_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - yearlyPriceBuilder_; - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - * - * @return Whether the yearlyPrice field is set. - */ - public boolean hasYearlyPrice() { - return yearlyPriceBuilder_ != null || yearlyPrice_ != null; - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - * - * @return The yearlyPrice. - */ - public com.google.type.Money getYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } else { - return yearlyPriceBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public Builder setYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - yearlyPrice_ = value; - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public Builder setYearlyPrice(com.google.type.Money.Builder builderForValue) { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = builderForValue.build(); - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public Builder mergeYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (yearlyPrice_ != null) { - yearlyPrice_ = - com.google.type.Money.newBuilder(yearlyPrice_).mergeFrom(value).buildPartial(); - } else { - yearlyPrice_ = value; - } - onChanged(); - } else { - yearlyPriceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public Builder clearYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - onChanged(); - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public com.google.type.Money.Builder getYearlyPriceBuilder() { - - onChanged(); - return getYearlyPriceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - if (yearlyPriceBuilder_ != null) { - return yearlyPriceBuilder_.getMessageOrBuilder(); - } else { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - getYearlyPriceFieldBuilder() { - if (yearlyPriceBuilder_ == null) { - yearlyPriceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, - com.google.type.Money.Builder, - com.google.type.MoneyOrBuilder>( - getYearlyPrice(), getParentForChildren(), isClean()); - yearlyPrice_ = null; - } - return yearlyPriceBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.TransferParameters) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.TransferParameters) - private static final com.google.cloud.domains.v1alpha2.TransferParameters DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.TransferParameters(); - } - - public static com.google.cloud.domains.v1alpha2.TransferParameters getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransferParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.TransferParameters getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/TransferParametersOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/TransferParametersOrBuilder.java deleted file mode 100644 index 05a9ce87..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/TransferParametersOrBuilder.java +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface TransferParametersOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.TransferParameters) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - java.lang.String getDomainName(); - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - com.google.protobuf.ByteString getDomainNameBytes(); - - /** - * - * - *
-   * The registrar that currently manages the domain.
-   * 
- * - * string current_registrar = 2; - * - * @return The currentRegistrar. - */ - java.lang.String getCurrentRegistrar(); - /** - * - * - *
-   * The registrar that currently manages the domain.
-   * 
- * - * string current_registrar = 2; - * - * @return The bytes for currentRegistrar. - */ - com.google.protobuf.ByteString getCurrentRegistrarBytes(); - - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @return A list containing the nameServers. - */ - java.util.List getNameServersList(); - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @return The count of nameServers. - */ - int getNameServersCount(); - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - java.lang.String getNameServers(int index); - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - com.google.protobuf.ByteString getNameServersBytes(int index); - - /** - * - * - *
-   * Indicates whether the domain is protected by a transfer lock. For a
-   * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-   * go to its current registrar.
-   * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - int getTransferLockStateValue(); - /** - * - * - *
-   * Indicates whether the domain is protected by a transfer lock. For a
-   * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-   * go to its current registrar.
-   * 
- * - * .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - com.google.cloud.domains.v1alpha2.TransferLockState getTransferLockState(); - - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the supportedPrivacy. - */ - java.util.List getSupportedPrivacyList(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @return The count of supportedPrivacy. - */ - int getSupportedPrivacyCount(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - com.google.cloud.domains.v1alpha2.ContactPrivacy getSupportedPrivacy(int index); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - java.util.List getSupportedPrivacyValueList(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - int getSupportedPrivacyValue(int index); - - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - * - * @return Whether the yearlyPrice field is set. - */ - boolean hasYearlyPrice(); - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - * - * @return The yearlyPrice. - */ - com.google.type.Money getYearlyPrice(); - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - */ - com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/UpdateRegistrationRequest.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/UpdateRegistrationRequest.java deleted file mode 100644 index a042d564..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/UpdateRegistrationRequest.java +++ /dev/null @@ -1,1004 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -/** - * - * - *
- * Request for the `UpdateRegistration` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.UpdateRegistrationRequest} - */ -public final class UpdateRegistrationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1alpha2.UpdateRegistrationRequest) - UpdateRegistrationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateRegistrationRequest.newBuilder() to construct. - private UpdateRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateRegistrationRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateRegistrationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_UpdateRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_UpdateRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest.class, - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private com.google.cloud.domains.v1alpha2.Registration registration_; - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.Registration registration = 1; - * - * @return Whether the registration field is set. - */ - @java.lang.Override - public boolean hasRegistration() { - return registration_ != null; - } - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.Registration registration = 1; - * - * @return The registration. - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.Registration getRegistration() { - return registration_ == null - ? com.google.cloud.domains.v1alpha2.Registration.getDefaultInstance() - : registration_; - } - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.Registration registration = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1alpha2.RegistrationOrBuilder getRegistrationOrBuilder() { - return getRegistration(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (registration_ != null) { - output.writeMessage(1, getRegistration()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (registration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRegistration()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest other = - (com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest) obj; - - if (hasRegistration() != other.hasRegistration()) return false; - if (hasRegistration()) { - if (!getRegistration().equals(other.getRegistration())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRegistration()) { - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `UpdateRegistration` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1alpha2.UpdateRegistrationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1alpha2.UpdateRegistrationRequest) - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_UpdateRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_UpdateRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest.class, - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (registrationBuilder_ == null) { - registration_ = null; - } else { - registration_ = null; - registrationBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1alpha2.DomainsProto - .internal_static_google_cloud_domains_v1alpha2_UpdateRegistrationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest build() { - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest buildPartial() { - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest result = - new com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest(this); - if (registrationBuilder_ == null) { - result.registration_ = registration_; - } else { - result.registration_ = registrationBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest) { - return mergeFrom((com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest other) { - if (other == com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest.getDefaultInstance()) - return this; - if (other.hasRegistration()) { - mergeRegistration(other.getRegistration()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getRegistrationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.domains.v1alpha2.Registration registration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.Registration, - com.google.cloud.domains.v1alpha2.Registration.Builder, - com.google.cloud.domains.v1alpha2.RegistrationOrBuilder> - registrationBuilder_; - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.Registration registration = 1; - * - * @return Whether the registration field is set. - */ - public boolean hasRegistration() { - return registrationBuilder_ != null || registration_ != null; - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.Registration registration = 1; - * - * @return The registration. - */ - public com.google.cloud.domains.v1alpha2.Registration getRegistration() { - if (registrationBuilder_ == null) { - return registration_ == null - ? com.google.cloud.domains.v1alpha2.Registration.getDefaultInstance() - : registration_; - } else { - return registrationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.Registration registration = 1; - */ - public Builder setRegistration(com.google.cloud.domains.v1alpha2.Registration value) { - if (registrationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - registration_ = value; - onChanged(); - } else { - registrationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.Registration registration = 1; - */ - public Builder setRegistration( - com.google.cloud.domains.v1alpha2.Registration.Builder builderForValue) { - if (registrationBuilder_ == null) { - registration_ = builderForValue.build(); - onChanged(); - } else { - registrationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.Registration registration = 1; - */ - public Builder mergeRegistration(com.google.cloud.domains.v1alpha2.Registration value) { - if (registrationBuilder_ == null) { - if (registration_ != null) { - registration_ = - com.google.cloud.domains.v1alpha2.Registration.newBuilder(registration_) - .mergeFrom(value) - .buildPartial(); - } else { - registration_ = value; - } - onChanged(); - } else { - registrationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.Registration registration = 1; - */ - public Builder clearRegistration() { - if (registrationBuilder_ == null) { - registration_ = null; - onChanged(); - } else { - registration_ = null; - registrationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.Registration registration = 1; - */ - public com.google.cloud.domains.v1alpha2.Registration.Builder getRegistrationBuilder() { - - onChanged(); - return getRegistrationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.Registration registration = 1; - */ - public com.google.cloud.domains.v1alpha2.RegistrationOrBuilder getRegistrationOrBuilder() { - if (registrationBuilder_ != null) { - return registrationBuilder_.getMessageOrBuilder(); - } else { - return registration_ == null - ? com.google.cloud.domains.v1alpha2.Registration.getDefaultInstance() - : registration_; - } - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1alpha2.Registration registration = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.Registration, - com.google.cloud.domains.v1alpha2.Registration.Builder, - com.google.cloud.domains.v1alpha2.RegistrationOrBuilder> - getRegistrationFieldBuilder() { - if (registrationBuilder_ == null) { - registrationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1alpha2.Registration, - com.google.cloud.domains.v1alpha2.Registration.Builder, - com.google.cloud.domains.v1alpha2.RegistrationOrBuilder>( - getRegistration(), getParentForChildren(), isClean()); - registration_ = null; - } - return registrationBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1alpha2.UpdateRegistrationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1alpha2.UpdateRegistrationRequest) - private static final com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest(); - } - - public static com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateRegistrationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/UpdateRegistrationRequestOrBuilder.java b/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/UpdateRegistrationRequestOrBuilder.java deleted file mode 100644 index 76dfe806..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/UpdateRegistrationRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1alpha2/domains.proto - -package com.google.cloud.domains.v1alpha2; - -public interface UpdateRegistrationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1alpha2.UpdateRegistrationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.Registration registration = 1; - * - * @return Whether the registration field is set. - */ - boolean hasRegistration(); - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.Registration registration = 1; - * - * @return The registration. - */ - com.google.cloud.domains.v1alpha2.Registration getRegistration(); - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1alpha2.Registration registration = 1; - */ - com.google.cloud.domains.v1alpha2.RegistrationOrBuilder getRegistrationOrBuilder(); - - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1alpha2/src/main/proto/google/cloud/domains/v1alpha2/domains.proto b/proto-google-cloud-domains-v1alpha2/src/main/proto/google/cloud/domains/v1alpha2/domains.proto deleted file mode 100644 index 8f4273c3..00000000 --- a/proto-google-cloud-domains-v1alpha2/src/main/proto/google/cloud/domains/v1alpha2/domains.proto +++ /dev/null @@ -1,1147 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.domains.v1alpha2; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; -import "google/type/money.proto"; -import "google/type/postal_address.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/domains/v1alpha2;domains"; -option java_multiple_files = true; -option java_outer_classname = "DomainsProto"; -option java_package = "com.google.cloud.domains.v1alpha2"; - -// The Cloud Domains API enables management and configuration of domain names. -service Domains { - option (google.api.default_host) = "domains.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Searches for available domain names similar to the provided query. - // - // Availability results from this method are approximate; call - // `RetrieveRegisterParameters` on a domain before registering to confirm - // availability. - rpc SearchDomains(SearchDomainsRequest) returns (SearchDomainsResponse) { - option (google.api.http) = { - get: "/v1alpha2/{location=projects/*/locations/*}/registrations:searchDomains" - }; - option (google.api.method_signature) = "location,query"; - } - - // Gets parameters needed to register a new domain name, including price and - // up-to-date availability. Use the returned values to call `RegisterDomain`. - rpc RetrieveRegisterParameters(RetrieveRegisterParametersRequest) returns (RetrieveRegisterParametersResponse) { - option (google.api.http) = { - get: "/v1alpha2/{location=projects/*/locations/*}/registrations:retrieveRegisterParameters" - }; - option (google.api.method_signature) = "location,domain_name"; - } - - // Registers a new domain name and creates a corresponding `Registration` - // resource. - // - // Call `RetrieveRegisterParameters` first to check availability of the domain - // name and determine parameters like price that are needed to build a call to - // this method. - // - // A successful call creates a `Registration` resource in state - // `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2 - // minutes, indicating that the domain was successfully registered. If the - // resource ends up in state `REGISTRATION_FAILED`, it indicates that the - // domain was not registered successfully, and you can safely delete the - // resource and retry registration. - rpc RegisterDomain(RegisterDomainRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha2/{parent=projects/*/locations/*}/registrations:register" - body: "*" - }; - option (google.api.method_signature) = "parent,registration,yearly_price"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Gets parameters needed to transfer a domain name from another registrar to - // Cloud Domains. For domains managed by Google Domains, transferring to Cloud - // Domains is not supported. - // - // - // Use the returned values to call `TransferDomain`. - rpc RetrieveTransferParameters(RetrieveTransferParametersRequest) returns (RetrieveTransferParametersResponse) { - option (google.api.http) = { - get: "/v1alpha2/{location=projects/*/locations/*}/registrations:retrieveTransferParameters" - }; - option (google.api.method_signature) = "location,domain_name"; - } - - // Transfers a domain name from another registrar to Cloud Domains. For - // domains managed by Google Domains, transferring to Cloud Domains is not - // supported. - // - // - // Before calling this method, go to the domain's current registrar to unlock - // the domain for transfer and retrieve the domain's transfer authorization - // code. Then call `RetrieveTransferParameters` to confirm that the domain is - // unlocked and to get values needed to build a call to this method. - // - // A successful call creates a `Registration` resource in state - // `TRANSFER_PENDING`. It can take several days to complete the transfer - // process. The registrant can often speed up this process by approving the - // transfer through the current registrar, either by clicking a link in an - // email from the registrar or by visiting the registrar's website. - // - // A few minutes after transfer approval, the resource transitions to state - // `ACTIVE`, indicating that the transfer was successful. If the transfer is - // rejected or the request expires without being approved, the resource can - // end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete - // the resource and retry the transfer. - rpc TransferDomain(TransferDomainRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha2/{parent=projects/*/locations/*}/registrations:transfer" - body: "*" - }; - option (google.api.method_signature) = "parent,registration,yearly_price,authorization_code"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Lists the `Registration` resources in a project. - rpc ListRegistrations(ListRegistrationsRequest) returns (ListRegistrationsResponse) { - option (google.api.http) = { - get: "/v1alpha2/{parent=projects/*/locations/*}/registrations" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets the details of a `Registration` resource. - rpc GetRegistration(GetRegistrationRequest) returns (Registration) { - option (google.api.http) = { - get: "/v1alpha2/{name=projects/*/locations/*/registrations/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates select fields of a `Registration` resource, notably `labels`. To - // update other fields, use the appropriate custom update method: - // - // * To update management settings, see `ConfigureManagementSettings` - // * To update DNS configuration, see `ConfigureDnsSettings` - // * To update contact information, see `ConfigureContactSettings` - rpc UpdateRegistration(UpdateRegistrationRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1alpha2/{registration.name=projects/*/locations/*/registrations/*}" - body: "registration" - }; - option (google.api.method_signature) = "registration,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Updates a `Registration`'s management settings. - rpc ConfigureManagementSettings(ConfigureManagementSettingsRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha2/{registration=projects/*/locations/*/registrations/*}:configureManagementSettings" - body: "*" - }; - option (google.api.method_signature) = "registration,management_settings,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Updates a `Registration`'s DNS settings. - rpc ConfigureDnsSettings(ConfigureDnsSettingsRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha2/{registration=projects/*/locations/*/registrations/*}:configureDnsSettings" - body: "*" - }; - option (google.api.method_signature) = "registration,dns_settings,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Updates a `Registration`'s contact settings. Some changes require - // confirmation by the domain's registrant contact . - rpc ConfigureContactSettings(ConfigureContactSettingsRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha2/{registration=projects/*/locations/*/registrations/*}:configureContactSettings" - body: "*" - }; - option (google.api.method_signature) = "registration,contact_settings,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Exports a `Registration` resource, such that it is no longer managed by - // Cloud Domains. - // - // When an active domain is successfully exported, you can continue to use the - // domain in [Google Domains](https://domains.google/) until it expires. The - // calling user becomes the domain's sole owner in Google Domains, and - // permissions for the domain are subsequently managed there. The domain does - // not renew automatically unless the new owner sets up billing in Google - // Domains. - rpc ExportRegistration(ExportRegistrationRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha2/{name=projects/*/locations/*/registrations/*}:export" - body: "*" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Deletes a `Registration` resource. - // - // This method works on any `Registration` resource using [Subscription or - // Commitment billing](/domains/pricing#billing-models), provided that the - // resource was created at least 1 day in the past. - // - // For `Registration` resources using - // [Monthly billing](/domains/pricing#billing-models), this method works if: - // - // * `state` is `EXPORTED` with `expire_time` in the past - // * `state` is `REGISTRATION_FAILED` - // * `state` is `TRANSFER_FAILED` - // - // When an active registration is successfully deleted, you can continue to - // use the domain in [Google Domains](https://domains.google/) until it - // expires. The calling user becomes the domain's sole owner in Google - // Domains, and permissions for the domain are subsequently managed there. The - // domain does not renew automatically unless the new owner sets up billing in - // Google Domains. - rpc DeleteRegistration(DeleteRegistrationRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1alpha2/{name=projects/*/locations/*/registrations/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "OperationMetadata" - }; - } - - // Gets the authorization code of the `Registration` for the purpose of - // transferring the domain to another registrar. - // - // You can call this method only after 60 days have elapsed since the initial - // domain registration. - rpc RetrieveAuthorizationCode(RetrieveAuthorizationCodeRequest) returns (AuthorizationCode) { - option (google.api.http) = { - get: "/v1alpha2/{registration=projects/*/locations/*/registrations/*}:retrieveAuthorizationCode" - }; - option (google.api.method_signature) = "registration"; - } - - // Resets the authorization code of the `Registration` to a new random string. - // - // You can call this method only after 60 days have elapsed since the initial - // domain registration. - rpc ResetAuthorizationCode(ResetAuthorizationCodeRequest) returns (AuthorizationCode) { - option (google.api.http) = { - post: "/v1alpha2/{registration=projects/*/locations/*/registrations/*}:resetAuthorizationCode" - body: "*" - }; - option (google.api.method_signature) = "registration"; - } -} - -// The `Registration` resource facilitates managing and configuring domain name -// registrations. -// -// There are several ways to create a new `Registration` resource: -// -// To create a new `Registration` resource, find a suitable domain name by -// calling the `SearchDomains` method with a query to see available domain name -// options. After choosing a name, call `RetrieveRegisterParameters` to -// ensure availability and obtain information like pricing, which is needed to -// build a call to `RegisterDomain`. -// -// Another way to create a new `Registration` is to transfer an existing -// domain from another registrar. First, go to the current registrar to unlock -// the domain for transfer and retrieve the domain's transfer authorization -// code. Then call `RetrieveTransferParameters` to confirm that the domain is -// unlocked and to get values needed to build a call to `TransferDomain`. -message Registration { - option (google.api.resource) = { - type: "domains.googleapis.com/Registration" - pattern: "projects/{project}/locations/{location}/registrations/{registration}" - }; - - // Possible states of a `Registration`. - enum State { - // The state is undefined. - STATE_UNSPECIFIED = 0; - - // The domain is being registered. - REGISTRATION_PENDING = 1; - - // The domain registration failed. You can delete resources in this state - // to allow registration to be retried. - REGISTRATION_FAILED = 2; - - // The domain is being transferred from another registrar to Cloud Domains. - TRANSFER_PENDING = 3; - - // The attempt to transfer the domain from another registrar to - // Cloud Domains failed. You can delete resources in this state and retry - // the transfer. - TRANSFER_FAILED = 4; - - // The domain is registered and operational. The domain renews automatically - // as long as it remains in this state. - ACTIVE = 6; - - // The domain is suspended and inoperative. For more details, see the - // `issues` field. - SUSPENDED = 7; - - // The domain is no longer managed with Cloud Domains. It may have been - // transferred to another registrar or exported for management in - // [Google Domains](https://domains.google/). You can no longer update it - // with this API, and information shown about it may be stale. Domains in - // this state are not automatically renewed by Cloud Domains. - EXPORTED = 8; - } - - // Possible issues with a `Registration` that require attention. - enum Issue { - // The issue is undefined. - ISSUE_UNSPECIFIED = 0; - - // Contact the Cloud Support team to resolve a problem with this domain. - CONTACT_SUPPORT = 1; - - // [ICANN](https://icann.org/) requires verification of the email address - // in the `Registration`'s `contact_settings.registrant_contact` field. To - // verify the email address, follow the - // instructions in the email the `registrant_contact` receives following - // registration. If you do not complete email verification within - // 15 days of registration, the domain is suspended. To resend the - // verification email, call ConfigureContactSettings and provide the current - // `registrant_contact.email`. - UNVERIFIED_EMAIL = 2; - } - - // Output only. Name of the `Registration` resource, in the format - // `projects/*/locations/*/registrations/`. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format. - string domain_name = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IMMUTABLE - ]; - - // Output only. The creation timestamp of the `Registration` resource. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The expiration timestamp of the `Registration`. - google.protobuf.Timestamp expire_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The state of the `Registration` - State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The set of issues with the `Registration` that require attention. - repeated Issue issues = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Set of labels associated with the `Registration`. - map labels = 9; - - // Settings for management of the `Registration`, including renewal, billing, - // and transfer. You cannot update these with the `UpdateRegistration` - // method. To update these settings, use the `ConfigureManagementSettings` - // method. - ManagementSettings management_settings = 10; - - // Settings controlling the DNS configuration of the `Registration`. You - // cannot update these with the `UpdateRegistration` method. To update these - // settings, use the `ConfigureDnsSettings` method. - DnsSettings dns_settings = 11; - - // Required. Settings for contact information linked to the `Registration`. You cannot - // update these with the `UpdateRegistration` method. To update these - // settings, use the `ConfigureContactSettings` method. - ContactSettings contact_settings = 12 [(google.api.field_behavior) = REQUIRED]; - - // Output only. Pending contact settings for the `Registration`. Updates to the - // `contact_settings` field that change its `registrant_contact` or `privacy` - // fields require email confirmation by the `registrant_contact` - // before taking effect. This field is set only if there are pending updates - // to the `contact_settings` that have not been confirmed. To confirm the - // changes, the `registrant_contact` must follow the instructions in the - // email they receive. - ContactSettings pending_contact_settings = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Set of options for the `contact_settings.privacy` field that this - // `Registration` supports. - repeated ContactPrivacy supported_privacy = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Defines renewal, billing, and transfer settings for a `Registration`. -message ManagementSettings { - // Defines how the `Registration` is renewed. - enum RenewalMethod { - // The renewal method is undefined. - RENEWAL_METHOD_UNSPECIFIED = 0; - - // The domain is automatically renewed each year . - // - // To disable automatic renewals, delete the resource by calling - // `DeleteRegistration` or export it by calling `ExportRegistration`. - AUTOMATIC_RENEWAL = 1; - - // The domain must be explicitly renewed each year before its - // `expire_time`. This option is only available when the `Registration` - // is in state `EXPORTED`. - // - // To manage the domain's current billing and - // renewal settings, go to [Google Domains](https://domains.google/). - MANUAL_RENEWAL = 2; - } - - // Output only. The renewal method for this `Registration`. - RenewalMethod renewal_method = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Controls whether the domain can be transferred to another registrar. - TransferLockState transfer_lock_state = 4; -} - -// Defines the DNS configuration of a `Registration`, including name servers, -// DNSSEC, and glue records. -message DnsSettings { - // Configuration for an arbitrary DNS provider. - message CustomDns { - // Required. A list of name servers that store the DNS zone for this domain. Each name - // server is a domain name, with Unicode domain names expressed in - // Punycode format. - repeated string name_servers = 1 [(google.api.field_behavior) = REQUIRED]; - - // The list of DS records for this domain, which are used to enable DNSSEC. - // The domain's DNS provider can provide the values to set here. If this - // field is empty, DNSSEC is disabled. - repeated DsRecord ds_records = 2; - } - - // Configuration for using the free DNS zone provided by Google Domains as a - // `Registration`'s `dns_provider`. You cannot configure the DNS zone itself - // using the API. To configure the DNS zone, go to - // [Google Domains](https://domains.google/). - message GoogleDomainsDns { - // Output only. A list of name servers that store the DNS zone for this domain. Each name - // server is a domain name, with Unicode domain names expressed in - // Punycode format. This field is automatically populated with the name - // servers assigned to the Google Domains DNS zone. - repeated string name_servers = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. The state of DS records for this domain. Used to enable or disable - // automatic DNSSEC. - DsState ds_state = 2 [(google.api.field_behavior) = REQUIRED]; - - // Output only. The list of DS records published for this domain. The list is - // automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`, - // otherwise it remains empty. - repeated DsRecord ds_records = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Defines a Delegation Signer (DS) record, which is needed to enable DNSSEC - // for a domain. It contains a digest (hash) of a DNSKEY record that must be - // present in the domain's DNS zone. - message DsRecord { - // List of algorithms used to create a DNSKEY. Certain - // algorithms are not supported for particular domains. - enum Algorithm { - // The algorithm is unspecified. - ALGORITHM_UNSPECIFIED = 0; - - // RSA/MD5. Cannot be used for new deployments. - RSAMD5 = 1; - - // Diffie-Hellman. Cannot be used for new deployments. - DH = 2; - - // DSA/SHA1. Not recommended for new deployments. - DSA = 3; - - // ECC. Not recommended for new deployments. - ECC = 4; - - // RSA/SHA-1. Not recommended for new deployments. - RSASHA1 = 5; - - // DSA-NSEC3-SHA1. Not recommended for new deployments. - DSANSEC3SHA1 = 6; - - // RSA/SHA1-NSEC3-SHA1. Not recommended for new deployments. - RSASHA1NSEC3SHA1 = 7; - - // RSA/SHA-256. - RSASHA256 = 8; - - // RSA/SHA-512. - RSASHA512 = 10; - - // GOST R 34.10-2001. - ECCGOST = 12; - - // ECDSA Curve P-256 with SHA-256. - ECDSAP256SHA256 = 13; - - // ECDSA Curve P-384 with SHA-384. - ECDSAP384SHA384 = 14; - - // Ed25519. - ED25519 = 15; - - // Ed448. - ED448 = 16; - - // Reserved for Indirect Keys. Cannot be used for new deployments. - INDIRECT = 252; - - // Private algorithm. Cannot be used for new deployments. - PRIVATEDNS = 253; - - // Private algorithm OID. Cannot be used for new deployments. - PRIVATEOID = 254; - } - - // List of hash functions that may have been used to generate a digest of a - // DNSKEY. - enum DigestType { - // The DigestType is unspecified. - DIGEST_TYPE_UNSPECIFIED = 0; - - // SHA-1. Not recommended for new deployments. - SHA1 = 1; - - // SHA-256. - SHA256 = 2; - - // GOST R 34.11-94. - GOST3411 = 3; - - // SHA-384. - SHA384 = 4; - } - - // The key tag of the record. Must be set in range 0 -- 65535. - int32 key_tag = 1; - - // The algorithm used to generate the referenced DNSKEY. - Algorithm algorithm = 2; - - // The hash function used to generate the digest of the referenced DNSKEY. - DigestType digest_type = 3; - - // The digest generated from the referenced DNSKEY. - string digest = 4; - } - - // Defines a host on your domain that is a DNS name server for your domain - // and/or other domains. Glue records are a way of making the IP address of a - // name server known, even when it serves DNS queries for its parent domain. - // For example, when `ns.example.com` is a name server for `example.com`, the - // host `ns.example.com` must have a glue record to break the circular DNS - // reference. - message GlueRecord { - // Required. Domain name of the host in Punycode format. - string host_name = 1 [(google.api.field_behavior) = REQUIRED]; - - // List of IPv4 addresses corresponding to this host in the standard decimal - // format (e.g. `198.51.100.1`). At least one of `ipv4_address` and - // `ipv6_address` must be set. - repeated string ipv4_addresses = 2; - - // List of IPv6 addresses corresponding to this host in the standard - // hexadecimal format (e.g. `2001:db8::`). At least one of - // `ipv4_address` and `ipv6_address` must be set. - repeated string ipv6_addresses = 3; - } - - // The publication state of DS records for a `Registration`. - enum DsState { - // DS state is unspecified. - DS_STATE_UNSPECIFIED = 0; - - // DNSSEC is disabled for this domain. No DS records for this domain are - // published in the parent DNS zone. - DS_RECORDS_UNPUBLISHED = 1; - - // DNSSEC is enabled for this domain. Appropriate DS records for this domain - // are published in the parent DNS zone. This option is valid only if the - // DNS zone referenced in the `Registration`'s `dns_provider` field is - // already DNSSEC-signed. - DS_RECORDS_PUBLISHED = 2; - } - - // The DNS provider of the registration. - oneof dns_provider { - // An arbitrary DNS provider identified by its name servers. - CustomDns custom_dns = 1; - - // The free DNS zone provided by - // [Google Domains](https://domains.google/). - GoogleDomainsDns google_domains_dns = 2; - } - - // The list of glue records for this `Registration`. Commonly empty. - repeated GlueRecord glue_records = 4; -} - -// Defines the contact information associated with a `Registration`. -// -// [ICANN](https://icann.org/) requires all domain names to have associated -// contact information. The `registrant_contact` is considered the -// domain's legal owner, and often the other contacts are identical. -message ContactSettings { - // Details required for a contact associated with a `Registration`. - message Contact { - // Required. Postal address of the contact. - google.type.PostalAddress postal_address = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. Email address of the contact. - string email = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. Phone number of the contact in international format. For example, - // `"+1-800-555-0123"`. - string phone_number = 3 [(google.api.field_behavior) = REQUIRED]; - - // Fax number of the contact in international format. For example, - // `"+1-800-555-0123"`. - string fax_number = 4; - } - - // Required. Privacy setting for the contacts associated with the `Registration`. - ContactPrivacy privacy = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The registrant contact for the `Registration`. - // - // *Caution: Anyone with access to this email address, phone number, - // and/or postal address can take control of the domain.* - // - // *Warning: For new `Registration`s, the registrant receives an email - // confirmation that they must complete within 15 days to avoid domain - // suspension.* - Contact registrant_contact = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The administrative contact for the `Registration`. - Contact admin_contact = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The technical contact for the `Registration`. - Contact technical_contact = 4 [(google.api.field_behavior) = REQUIRED]; -} - -// Request for the `SearchDomains` method. -message SearchDomainsRequest { - // Required. String used to search for available domain names. - string query = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The location. Must be in the format `projects/*/locations/*`. - string location = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; -} - -// Response for the `SearchDomains` method. -message SearchDomainsResponse { - // Results of the domain name search. - repeated RegisterParameters register_parameters = 1; -} - -// Request for the `RetrieveRegisterParameters` method. -message RetrieveRegisterParametersRequest { - // Required. The domain name. Unicode domain names must be expressed in Punycode format. - string domain_name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The location. Must be in the format `projects/*/locations/*`. - string location = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; -} - -// Response for the `RetrieveRegisterParameters` method. -message RetrieveRegisterParametersResponse { - // Parameters to use when calling the `RegisterDomain` method. - RegisterParameters register_parameters = 1; -} - -// Request for the `RegisterDomain` method. -message RegisterDomainRequest { - // Required. The parent resource of the `Registration`. Must be in the - // format `projects/*/locations/*`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // Required. The complete `Registration` resource to be created. - Registration registration = 2 [(google.api.field_behavior) = REQUIRED]; - - // The list of domain notices that you acknowledge. Call - // `RetrieveRegisterParameters` to see the notices that need acknowledgement. - repeated DomainNotice domain_notices = 3; - - // The list of contact notices that the caller acknowledges. The notices - // needed here depend on the values specified in - // `registration.contact_settings`. - repeated ContactNotice contact_notices = 4; - - // Required. Yearly price to register or renew the domain. - // The value that should be put here can be obtained from - // RetrieveRegisterParameters or SearchDomains calls. - google.type.Money yearly_price = 5 [(google.api.field_behavior) = REQUIRED]; - - // When true, only validation is performed, without actually registering - // the domain. Follows: - // https://cloud.google.com/apis/design/design_patterns#request_validation - bool validate_only = 6; -} - -// Request for the `RetrieveTransferParameters` method. -message RetrieveTransferParametersRequest { - // Required. The domain name. Unicode domain names must be expressed in Punycode format. - string domain_name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The location. Must be in the format `projects/*/locations/*`. - string location = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; -} - -// Response for the `RetrieveTransferParameters` method. -message RetrieveTransferParametersResponse { - // Parameters to use when calling the `TransferDomain` method. - TransferParameters transfer_parameters = 1; -} - -// Request for the `TransferDomain` method. -message TransferDomainRequest { - // Required. The parent resource of the `Registration`. Must be in the - // format `projects/*/locations/*`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // Required. The complete `Registration` resource to be created. - // - // You can leave `registration.dns_settings` unset to import the - // domain's current DNS configuration from its current registrar. Use this - // option only if you are sure that the domain's current DNS service - // does not cease upon transfer, as is often the case for DNS services - // provided for free by the registrar. - Registration registration = 2 [(google.api.field_behavior) = REQUIRED]; - - // The list of contact notices that you acknowledge. The notices - // needed here depend on the values specified in - // `registration.contact_settings`. - repeated ContactNotice contact_notices = 3; - - // Required. Acknowledgement of the price to transfer or renew the domain for one year. - // Call `RetrieveTransferParameters` to obtain the price, which you must - // acknowledge. - google.type.Money yearly_price = 4 [(google.api.field_behavior) = REQUIRED]; - - // The domain's transfer authorization code. You can obtain this from the - // domain's current registrar. - AuthorizationCode authorization_code = 5; - - // Validate the request without actually transferring the domain. - bool validate_only = 6; -} - -// Request for the `ListRegistrations` method. -message ListRegistrationsRequest { - // Required. The project and location from which to list `Registration`s, specified in - // the format `projects/*/locations/*`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // Maximum number of results to return. - int32 page_size = 2; - - // When set to the `next_page_token` from a prior response, provides the next - // page of results. - string page_token = 3; - - // Filter expression to restrict the `Registration`s returned. - // - // The expression must specify the field name, a comparison operator, and the - // value that you want to use for filtering. The value must be a string, a - // number, a boolean, or an enum value. The comparison operator should be one - // of =, !=, >, <, >=, <=, or : for prefix or wildcard matches. - // - // For example, to filter to a specific domain name, use an expression like - // `domainName="example.com"`. You can also check for the existence of a - // field; for example, to find domains using custom DNS settings, use an - // expression like `dnsSettings.customDns:*`. - // - // You can also create compound filters by combining expressions with the - // `AND` and `OR` operators. For example, to find domains that are suspended - // or have specific issues flagged, use an expression like - // `(state=SUSPENDED) OR (issue:*)`. - string filter = 4; -} - -// Response for the `ListRegistrations` method. -message ListRegistrationsResponse { - // A list of `Registration`s. - repeated Registration registrations = 1; - - // When present, there are more results to retrieve. Set `page_token` to this - // value on a subsequent call to get the next page of results. - string next_page_token = 2; -} - -// Request for the `GetRegistration` method. -message GetRegistrationRequest { - // Required. The name of the `Registration` to get, in the format - // `projects/*/locations/*/registrations/*`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; -} - -// Request for the `UpdateRegistration` method. -message UpdateRegistrationRequest { - // Fields of the `Registration` to update. - Registration registration = 1; - - // Required. The field mask describing which fields to update as a comma-separated list. - // For example, if only the labels are being updated, the `update_mask` is - // `"labels"`. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request for the `ConfigureManagementSettings` method. -message ConfigureManagementSettingsRequest { - // Required. The name of the `Registration` whose management settings are being updated, - // in the format `projects/*/locations/*/registrations/*`. - string registration = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; - - // Fields of the `ManagementSettings` to update. - ManagementSettings management_settings = 2; - - // Required. The field mask describing which fields to update as a comma-separated list. - // For example, if only the transfer lock is being updated, the `update_mask` - // is `"transfer_lock_state"`. - google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Request for the `ConfigureDnsSettings` method. -message ConfigureDnsSettingsRequest { - // Required. The name of the `Registration` whose DNS settings are being updated, - // in the format `projects/*/locations/*/registrations/*`. - string registration = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; - - // Fields of the `DnsSettings` to update. - DnsSettings dns_settings = 2; - - // Required. The field mask describing which fields to update as a comma-separated list. - // For example, if only the name servers are being updated for an existing - // Custom DNS configuration, the `update_mask` is - // `"custom_dns.name_servers"`. - // - // When changing the DNS provider from one type to another, pass the new - // provider's field name as part of the field mask. For example, when changing - // from a Google Domains DNS configuration to a Custom DNS configuration, the - // `update_mask` is `"custom_dns"`. // - google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED]; - - // Validate the request without actually updating the DNS settings. - bool validate_only = 4; -} - -// Request for the `ConfigureContactSettings` method. -message ConfigureContactSettingsRequest { - // Required. The name of the `Registration` whose contact settings are being updated, - // in the format `projects/*/locations/*/registrations/*`. - string registration = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; - - // Fields of the `ContactSettings` to update. - ContactSettings contact_settings = 2; - - // Required. The field mask describing which fields to update as a comma-separated list. - // For example, if only the registrant contact is being updated, the - // `update_mask` is `"registrant_contact"`. - google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED]; - - // The list of contact notices that the caller acknowledges. The notices - // needed here depend on the values specified in `contact_settings`. - repeated ContactNotice contact_notices = 4; - - // Validate the request without actually updating the contact settings. - bool validate_only = 5; -} - -// Request for the `ExportRegistration` method. -message ExportRegistrationRequest { - // Required. The name of the `Registration` to export, - // in the format `projects/*/locations/*/registrations/*`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; -} - -// Request for the `DeleteRegistration` method. -message DeleteRegistrationRequest { - // Required. The name of the `Registration` to delete, - // in the format `projects/*/locations/*/registrations/*`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; -} - -// Request for the `RetrieveAuthorizationCode` method. -message RetrieveAuthorizationCodeRequest { - // Required. The name of the `Registration` whose authorization code is being retrieved, - // in the format `projects/*/locations/*/registrations/*`. - string registration = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; -} - -// Request for the `ResetAuthorizationCode` method. -message ResetAuthorizationCodeRequest { - // Required. The name of the `Registration` whose authorization code is being reset, - // in the format `projects/*/locations/*/registrations/*`. - string registration = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; -} - -// Parameters required to register a new domain. -message RegisterParameters { - // Possible availability states of a domain name. - enum Availability { - // The availability is unspecified. - AVAILABILITY_UNSPECIFIED = 0; - - // The domain is available for registration. - AVAILABLE = 1; - - // The domain is not available for registration. Generally this means it is - // already registered to another party. - UNAVAILABLE = 2; - - // The domain is not currently supported by Cloud Domains, but may - // be available elsewhere. - UNSUPPORTED = 3; - - // Cloud Domains is unable to determine domain availability, generally - // due to system maintenance at the domain name registry. - UNKNOWN = 4; - } - - // The domain name. Unicode domain names are expressed in Punycode format. - string domain_name = 1; - - // Indicates whether the domain is available for registration. This value is - // accurate when obtained by calling `RetrieveRegisterParameters`, but is - // approximate when obtained by calling `SearchDomains`. - Availability availability = 2; - - // Contact privacy options that the domain supports. - repeated ContactPrivacy supported_privacy = 3; - - // Notices about special properties of the domain. - repeated DomainNotice domain_notices = 4; - - // Price to register or renew the domain for one year. - google.type.Money yearly_price = 5; -} - -// Parameters required to transfer a domain from another registrar. -message TransferParameters { - // The domain name. Unicode domain names are expressed in Punycode format. - string domain_name = 1; - - // The registrar that currently manages the domain. - string current_registrar = 2; - - // The name servers that currently store the configuration of the domain. - repeated string name_servers = 3; - - // Indicates whether the domain is protected by a transfer lock. For a - // transfer to succeed, this must show `UNLOCKED`. To unlock a domain, - // go to its current registrar. - TransferLockState transfer_lock_state = 4; - - // Contact privacy options that the domain supports. - repeated ContactPrivacy supported_privacy = 5; - - // Price to transfer or renew the domain for one year. - google.type.Money yearly_price = 6; -} - -// Defines an authorization code. -message AuthorizationCode { - // The Authorization Code in ASCII. It can be used to transfer the domain - // to or from another registrar. - string code = 1; -} - -// Represents the metadata of the long-running operation. Output only. -message OperationMetadata { - // The time the operation was created. - google.protobuf.Timestamp create_time = 1; - - // The time the operation finished running. - google.protobuf.Timestamp end_time = 2; - - // Server-defined resource path for the target of the operation. - string target = 3; - - // Name of the verb executed by the operation. - string verb = 4; - - // Human-readable status of the operation, if any. - string status_detail = 5; - - // API version used to start the operation. - string api_version = 6; -} - -// Defines a set of possible contact privacy settings for a `Registration`. -// -// [ICANN](https://icann.org/) maintains the WHOIS database, a publicly -// accessible mapping from domain name to contact information, and requires that -// each domain name have an entry. Choose from these options to control how much -// information in your `ContactSettings` is published. -enum ContactPrivacy { - // The contact privacy settings are undefined. - CONTACT_PRIVACY_UNSPECIFIED = 0; - - // All the data from `ContactSettings` is publicly available. When setting - // this option, you must also provide a - // `PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT` in the `contact_notices` field of the - // request. - PUBLIC_CONTACT_DATA = 1; - - // None of the data from `ContactSettings` is publicly available. Instead, - // proxy contact data is published for your domain. Email sent to the proxy - // email address is forwarded to the registrant's email address. Cloud Domains - // provides this privacy proxy service at no additional cost. - PRIVATE_CONTACT_DATA = 2; - - // Some data from `ContactSettings` is publicly available. The actual - // information redacted depends on the domain. For details, see [the - // registration privacy - // article](https://support.google.com/domains/answer/3251242). - REDACTED_CONTACT_DATA = 3; -} - -// Notices about special properties of certain domains. -enum DomainNotice { - // The notice is undefined. - DOMAIN_NOTICE_UNSPECIFIED = 0; - - // Indicates that the domain is preloaded on the HTTP Strict Transport - // Security list in browsers. Serving a website on such domain requires - // an SSL certificate. For details, see - // [how to get an SSL - // certificate](https://support.google.com/domains/answer/7638036). - HSTS_PRELOADED = 1; -} - -// Notices related to contact information. -enum ContactNotice { - // The notice is undefined. - CONTACT_NOTICE_UNSPECIFIED = 0; - - // Required when setting the `privacy` field of `ContactSettings` to - // `PUBLIC_CONTACT_DATA`, which exposes contact data publicly. - PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT = 1; -} - -// Possible states of a `Registration`'s transfer lock. -enum TransferLockState { - // The state is unspecified. - TRANSFER_LOCK_STATE_UNSPECIFIED = 0; - - // The domain is unlocked and can be transferred to another registrar. - UNLOCKED = 1; - - // The domain is locked and cannot be transferred to another registrar. - LOCKED = 2; -} diff --git a/proto-google-cloud-domains-v1beta1/clirr-ignored-differences.xml b/proto-google-cloud-domains-v1beta1/clirr-ignored-differences.xml deleted file mode 100644 index ff28b89a..00000000 --- a/proto-google-cloud-domains-v1beta1/clirr-ignored-differences.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - 7012 - com/google/cloud/domains/v1beta1/*OrBuilder - * get*(*) - - - 7012 - com/google/cloud/domains/v1beta1/*OrBuilder - boolean contains*(*) - - - 7012 - com/google/cloud/domains/v1beta1/*OrBuilder - boolean has*(*) - - diff --git a/proto-google-cloud-domains-v1beta1/pom.xml b/proto-google-cloud-domains-v1beta1/pom.xml deleted file mode 100644 index 9ecd5a5c..00000000 --- a/proto-google-cloud-domains-v1beta1/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-cloud-domains-v1beta1 - 0.8.7-SNAPSHOT - proto-google-cloud-domains-v1beta1 - Proto library for google-cloud-domains - - com.google.cloud - google-cloud-domains-parent - 1.0.7-SNAPSHOT - - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - com.google.api - api-common - - - com.google.guava - guava - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/AuthorizationCode.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/AuthorizationCode.java deleted file mode 100644 index 0d0a3887..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/AuthorizationCode.java +++ /dev/null @@ -1,622 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Defines an authorization code.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.AuthorizationCode} - */ -public final class AuthorizationCode extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.AuthorizationCode) - AuthorizationCodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuthorizationCode.newBuilder() to construct. - private AuthorizationCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AuthorizationCode() { - code_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AuthorizationCode(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_AuthorizationCode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_AuthorizationCode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.AuthorizationCode.class, - com.google.cloud.domains.v1beta1.AuthorizationCode.Builder.class); - } - - public static final int CODE_FIELD_NUMBER = 1; - private volatile java.lang.Object code_; - /** - * - * - *
-   * The Authorization Code in ASCII. It can be used to transfer the domain
-   * to or from another registrar.
-   * 
- * - * string code = 1; - * - * @return The code. - */ - @java.lang.Override - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } - } - /** - * - * - *
-   * The Authorization Code in ASCII. It can be used to transfer the domain
-   * to or from another registrar.
-   * 
- * - * string code = 1; - * - * @return The bytes for code. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.AuthorizationCode)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.AuthorizationCode other = - (com.google.cloud.domains.v1beta1.AuthorizationCode) obj; - - if (!getCode().equals(other.getCode())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + getCode().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.AuthorizationCode parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.AuthorizationCode parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.AuthorizationCode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.AuthorizationCode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.AuthorizationCode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.AuthorizationCode parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.AuthorizationCode parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.AuthorizationCode parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.AuthorizationCode parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.AuthorizationCode parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.AuthorizationCode parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.AuthorizationCode parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1beta1.AuthorizationCode prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Defines an authorization code.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.AuthorizationCode} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.AuthorizationCode) - com.google.cloud.domains.v1beta1.AuthorizationCodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_AuthorizationCode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_AuthorizationCode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.AuthorizationCode.class, - com.google.cloud.domains.v1beta1.AuthorizationCode.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.AuthorizationCode.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - code_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_AuthorizationCode_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.AuthorizationCode getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.AuthorizationCode.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.AuthorizationCode build() { - com.google.cloud.domains.v1beta1.AuthorizationCode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.AuthorizationCode buildPartial() { - com.google.cloud.domains.v1beta1.AuthorizationCode result = - new com.google.cloud.domains.v1beta1.AuthorizationCode(this); - result.code_ = code_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.AuthorizationCode) { - return mergeFrom((com.google.cloud.domains.v1beta1.AuthorizationCode) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.AuthorizationCode other) { - if (other == com.google.cloud.domains.v1beta1.AuthorizationCode.getDefaultInstance()) - return this; - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - code_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object code_ = ""; - /** - * - * - *
-     * The Authorization Code in ASCII. It can be used to transfer the domain
-     * to or from another registrar.
-     * 
- * - * string code = 1; - * - * @return The code. - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The Authorization Code in ASCII. It can be used to transfer the domain
-     * to or from another registrar.
-     * 
- * - * string code = 1; - * - * @return The bytes for code. - */ - public com.google.protobuf.ByteString getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The Authorization Code in ASCII. It can be used to transfer the domain
-     * to or from another registrar.
-     * 
- * - * string code = 1; - * - * @param value The code to set. - * @return This builder for chaining. - */ - public Builder setCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The Authorization Code in ASCII. It can be used to transfer the domain
-     * to or from another registrar.
-     * 
- * - * string code = 1; - * - * @return This builder for chaining. - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** - * - * - *
-     * The Authorization Code in ASCII. It can be used to transfer the domain
-     * to or from another registrar.
-     * 
- * - * string code = 1; - * - * @param value The bytes for code to set. - * @return This builder for chaining. - */ - public Builder setCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.AuthorizationCode) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.AuthorizationCode) - private static final com.google.cloud.domains.v1beta1.AuthorizationCode DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.AuthorizationCode(); - } - - public static com.google.cloud.domains.v1beta1.AuthorizationCode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthorizationCode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.AuthorizationCode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/AuthorizationCodeOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/AuthorizationCodeOrBuilder.java deleted file mode 100644 index 07767451..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/AuthorizationCodeOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface AuthorizationCodeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.AuthorizationCode) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The Authorization Code in ASCII. It can be used to transfer the domain
-   * to or from another registrar.
-   * 
- * - * string code = 1; - * - * @return The code. - */ - java.lang.String getCode(); - /** - * - * - *
-   * The Authorization Code in ASCII. It can be used to transfer the domain
-   * to or from another registrar.
-   * 
- * - * string code = 1; - * - * @return The bytes for code. - */ - com.google.protobuf.ByteString getCodeBytes(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureContactSettingsRequest.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureContactSettingsRequest.java deleted file mode 100644 index 54096227..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureContactSettingsRequest.java +++ /dev/null @@ -1,1705 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Request for the `ConfigureContactSettings` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ConfigureContactSettingsRequest} - */ -public final class ConfigureContactSettingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.ConfigureContactSettingsRequest) - ConfigureContactSettingsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfigureContactSettingsRequest.newBuilder() to construct. - private ConfigureContactSettingsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ConfigureContactSettingsRequest() { - registration_ = ""; - contactNotices_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfigureContactSettingsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ConfigureContactSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ConfigureContactSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest.class, - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private volatile java.lang.Object registration_; - /** - * - * - *
-   * Required. The name of the `Registration` whose contact settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - @java.lang.Override - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` whose contact settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONTACT_SETTINGS_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1beta1.ContactSettings contactSettings_; - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 2; - * - * @return Whether the contactSettings field is set. - */ - @java.lang.Override - public boolean hasContactSettings() { - return contactSettings_ != null; - } - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 2; - * - * @return The contactSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettings getContactSettings() { - return contactSettings_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance() - : contactSettings_; - } - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder getContactSettingsOrBuilder() { - return getContactSettings(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 3; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int CONTACT_NOTICES_FIELD_NUMBER = 4; - private java.util.List contactNotices_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactNotice> - contactNotices_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactNotice>() { - public com.google.cloud.domains.v1beta1.ContactNotice convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.ContactNotice result = - com.google.cloud.domains.v1beta1.ContactNotice.valueOf(from); - return result == null - ? com.google.cloud.domains.v1beta1.ContactNotice.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - @java.lang.Override - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesValueList() { - return contactNotices_; - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - @java.lang.Override - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - - private int contactNoticesMemoizedSerializedSize; - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; - private boolean validateOnly_; - /** - * - * - *
-   * Validate the request without actually updating the contact settings.
-   * 
- * - * bool validate_only = 5; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registration_); - } - if (contactSettings_ != null) { - output.writeMessage(2, getContactSettings()); - } - if (updateMask_ != null) { - output.writeMessage(3, getUpdateMask()); - } - if (getContactNoticesList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(contactNoticesMemoizedSerializedSize); - } - for (int i = 0; i < contactNotices_.size(); i++) { - output.writeEnumNoTag(contactNotices_.get(i)); - } - if (validateOnly_ != false) { - output.writeBool(5, validateOnly_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registration_); - } - if (contactSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContactSettings()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); - } - { - int dataSize = 0; - for (int i = 0; i < contactNotices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(contactNotices_.get(i)); - } - size += dataSize; - if (!getContactNoticesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - contactNoticesMemoizedSerializedSize = dataSize; - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest other = - (com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest) obj; - - if (!getRegistration().equals(other.getRegistration())) return false; - if (hasContactSettings() != other.hasContactSettings()) return false; - if (hasContactSettings()) { - if (!getContactSettings().equals(other.getContactSettings())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!contactNotices_.equals(other.contactNotices_)) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - if (hasContactSettings()) { - hash = (37 * hash) + CONTACT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getContactSettings().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - if (getContactNoticesCount() > 0) { - hash = (37 * hash) + CONTACT_NOTICES_FIELD_NUMBER; - hash = (53 * hash) + contactNotices_.hashCode(); - } - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ConfigureContactSettings` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ConfigureContactSettingsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.ConfigureContactSettingsRequest) - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ConfigureContactSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ConfigureContactSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest.class, - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - registration_ = ""; - - if (contactSettingsBuilder_ == null) { - contactSettings_ = null; - } else { - contactSettings_ = null; - contactSettingsBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ConfigureContactSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest build() { - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest buildPartial() { - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest result = - new com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest(this); - int from_bitField0_ = bitField0_; - result.registration_ = registration_; - if (contactSettingsBuilder_ == null) { - result.contactSettings_ = contactSettings_; - } else { - result.contactSettings_ = contactSettingsBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - contactNotices_ = java.util.Collections.unmodifiableList(contactNotices_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.contactNotices_ = contactNotices_; - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest) { - return mergeFrom((com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest other) { - if (other - == com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest.getDefaultInstance()) - return this; - if (!other.getRegistration().isEmpty()) { - registration_ = other.registration_; - onChanged(); - } - if (other.hasContactSettings()) { - mergeContactSettings(other.getContactSettings()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (!other.contactNotices_.isEmpty()) { - if (contactNotices_.isEmpty()) { - contactNotices_ = other.contactNotices_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureContactNoticesIsMutable(); - contactNotices_.addAll(other.contactNotices_); - } - onChanged(); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - registration_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getContactSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 32: - { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - break; - } // case 32 - case 34: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 34 - case 40: - { - validateOnly_ = input.readBool(); - - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object registration_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` whose contact settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose contact settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose contact settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The registration to set. - * @return This builder for chaining. - */ - public Builder setRegistration(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose contact settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearRegistration() { - - registration_ = getDefaultInstance().getRegistration(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose contact settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for registration to set. - * @return This builder for chaining. - */ - public Builder setRegistrationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registration_ = value; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1beta1.ContactSettings contactSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings, - com.google.cloud.domains.v1beta1.ContactSettings.Builder, - com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder> - contactSettingsBuilder_; - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 2; - * - * @return Whether the contactSettings field is set. - */ - public boolean hasContactSettings() { - return contactSettingsBuilder_ != null || contactSettings_ != null; - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 2; - * - * @return The contactSettings. - */ - public com.google.cloud.domains.v1beta1.ContactSettings getContactSettings() { - if (contactSettingsBuilder_ == null) { - return contactSettings_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance() - : contactSettings_; - } else { - return contactSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 2; - */ - public Builder setContactSettings(com.google.cloud.domains.v1beta1.ContactSettings value) { - if (contactSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - contactSettings_ = value; - onChanged(); - } else { - contactSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 2; - */ - public Builder setContactSettings( - com.google.cloud.domains.v1beta1.ContactSettings.Builder builderForValue) { - if (contactSettingsBuilder_ == null) { - contactSettings_ = builderForValue.build(); - onChanged(); - } else { - contactSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 2; - */ - public Builder mergeContactSettings(com.google.cloud.domains.v1beta1.ContactSettings value) { - if (contactSettingsBuilder_ == null) { - if (contactSettings_ != null) { - contactSettings_ = - com.google.cloud.domains.v1beta1.ContactSettings.newBuilder(contactSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - contactSettings_ = value; - } - onChanged(); - } else { - contactSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 2; - */ - public Builder clearContactSettings() { - if (contactSettingsBuilder_ == null) { - contactSettings_ = null; - onChanged(); - } else { - contactSettings_ = null; - contactSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 2; - */ - public com.google.cloud.domains.v1beta1.ContactSettings.Builder getContactSettingsBuilder() { - - onChanged(); - return getContactSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 2; - */ - public com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder getContactSettingsOrBuilder() { - if (contactSettingsBuilder_ != null) { - return contactSettingsBuilder_.getMessageOrBuilder(); - } else { - return contactSettings_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance() - : contactSettings_; - } - } - /** - * - * - *
-     * Fields of the `ContactSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings, - com.google.cloud.domains.v1beta1.ContactSettings.Builder, - com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder> - getContactSettingsFieldBuilder() { - if (contactSettingsBuilder_ == null) { - contactSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings, - com.google.cloud.domains.v1beta1.ContactSettings.Builder, - com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder>( - getContactSettings(), getParentForChildren(), isClean()); - contactSettings_ = null; - } - return contactSettingsBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the registrant contact is being updated, the
-     * `update_mask` is `"registrant_contact"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private java.util.List contactNotices_ = java.util.Collections.emptyList(); - - private void ensureContactNoticesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - contactNotices_ = new java.util.ArrayList(contactNotices_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - public com.google.cloud.domains.v1beta1.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param index The index to set the value at. - * @param value The contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNotices( - int index, com.google.cloud.domains.v1beta1.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param value The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNotices(com.google.cloud.domains.v1beta1.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param values The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNotices( - java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (com.google.cloud.domains.v1beta1.ContactNotice value : values) { - contactNotices_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return This builder for chaining. - */ - public Builder clearContactNotices() { - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - public java.util.List getContactNoticesValueList() { - return java.util.Collections.unmodifiableList(contactNotices_); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNoticesValue(int index, int value) { - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param value The enum numeric value on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNoticesValue(int value) { - ensureContactNoticesIsMutable(); - contactNotices_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in `contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param values The enum numeric values on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNoticesValue(java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (int value : values) { - contactNotices_.add(value); - } - onChanged(); - return this; - } - - private boolean validateOnly_; - /** - * - * - *
-     * Validate the request without actually updating the contact settings.
-     * 
- * - * bool validate_only = 5; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - * - * - *
-     * Validate the request without actually updating the contact settings.
-     * 
- * - * bool validate_only = 5; - * - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Validate the request without actually updating the contact settings.
-     * 
- * - * bool validate_only = 5; - * - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.ConfigureContactSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.ConfigureContactSettingsRequest) - private static final com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest(); - } - - public static com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigureContactSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureContactSettingsRequestOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureContactSettingsRequestOrBuilder.java deleted file mode 100644 index 00b0a0fc..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureContactSettingsRequestOrBuilder.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/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface ConfigureContactSettingsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.ConfigureContactSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` whose contact settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - java.lang.String getRegistration(); - /** - * - * - *
-   * Required. The name of the `Registration` whose contact settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - com.google.protobuf.ByteString getRegistrationBytes(); - - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 2; - * - * @return Whether the contactSettings field is set. - */ - boolean hasContactSettings(); - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 2; - * - * @return The contactSettings. - */ - com.google.cloud.domains.v1beta1.ContactSettings getContactSettings(); - /** - * - * - *
-   * Fields of the `ContactSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 2; - */ - com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder getContactSettingsOrBuilder(); - - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the registrant contact is being updated, the
-   * `update_mask` is `"registrant_contact"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - java.util.List getContactNoticesList(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - int getContactNoticesCount(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - com.google.cloud.domains.v1beta1.ContactNotice getContactNotices(int index); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - java.util.List getContactNoticesValueList(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in `contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - int getContactNoticesValue(int index); - - /** - * - * - *
-   * Validate the request without actually updating the contact settings.
-   * 
- * - * bool validate_only = 5; - * - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureDnsSettingsRequest.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureDnsSettingsRequest.java deleted file mode 100644 index 1e68ac06..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureDnsSettingsRequest.java +++ /dev/null @@ -1,1358 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Request for the `ConfigureDnsSettings` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest} - */ -public final class ConfigureDnsSettingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest) - ConfigureDnsSettingsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfigureDnsSettingsRequest.newBuilder() to construct. - private ConfigureDnsSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ConfigureDnsSettingsRequest() { - registration_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfigureDnsSettingsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ConfigureDnsSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ConfigureDnsSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest.class, - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private volatile java.lang.Object registration_; - /** - * - * - *
-   * Required. The name of the `Registration` whose DNS settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - @java.lang.Override - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` whose DNS settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DNS_SETTINGS_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1beta1.DnsSettings dnsSettings_; - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 2; - * - * @return Whether the dnsSettings field is set. - */ - @java.lang.Override - public boolean hasDnsSettings() { - return dnsSettings_ != null; - } - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 2; - * - * @return The dnsSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings getDnsSettings() { - return dnsSettings_ == null - ? com.google.cloud.domains.v1beta1.DnsSettings.getDefaultInstance() - : dnsSettings_; - } - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder getDnsSettingsOrBuilder() { - return getDnsSettings(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 3; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; - private boolean validateOnly_; - /** - * - * - *
-   * Validate the request without actually updating the DNS settings.
-   * 
- * - * bool validate_only = 4; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registration_); - } - if (dnsSettings_ != null) { - output.writeMessage(2, getDnsSettings()); - } - if (updateMask_ != null) { - output.writeMessage(3, getUpdateMask()); - } - if (validateOnly_ != false) { - output.writeBool(4, validateOnly_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registration_); - } - if (dnsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDnsSettings()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest other = - (com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest) obj; - - if (!getRegistration().equals(other.getRegistration())) return false; - if (hasDnsSettings() != other.hasDnsSettings()) return false; - if (hasDnsSettings()) { - if (!getDnsSettings().equals(other.getDnsSettings())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - if (hasDnsSettings()) { - hash = (37 * hash) + DNS_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getDnsSettings().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ConfigureDnsSettings` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest) - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ConfigureDnsSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ConfigureDnsSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest.class, - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - registration_ = ""; - - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = null; - } else { - dnsSettings_ = null; - dnsSettingsBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ConfigureDnsSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest build() { - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest buildPartial() { - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest result = - new com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest(this); - result.registration_ = registration_; - if (dnsSettingsBuilder_ == null) { - result.dnsSettings_ = dnsSettings_; - } else { - result.dnsSettings_ = dnsSettingsBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest) { - return mergeFrom((com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest other) { - if (other - == com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest.getDefaultInstance()) - return this; - if (!other.getRegistration().isEmpty()) { - registration_ = other.registration_; - onChanged(); - } - if (other.hasDnsSettings()) { - mergeDnsSettings(other.getDnsSettings()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - registration_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getDnsSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object registration_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` whose DNS settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose DNS settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose DNS settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The registration to set. - * @return This builder for chaining. - */ - public Builder setRegistration(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose DNS settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearRegistration() { - - registration_ = getDefaultInstance().getRegistration(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose DNS settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for registration to set. - * @return This builder for chaining. - */ - public Builder setRegistrationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registration_ = value; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1beta1.DnsSettings dnsSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings, - com.google.cloud.domains.v1beta1.DnsSettings.Builder, - com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder> - dnsSettingsBuilder_; - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 2; - * - * @return Whether the dnsSettings field is set. - */ - public boolean hasDnsSettings() { - return dnsSettingsBuilder_ != null || dnsSettings_ != null; - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 2; - * - * @return The dnsSettings. - */ - public com.google.cloud.domains.v1beta1.DnsSettings getDnsSettings() { - if (dnsSettingsBuilder_ == null) { - return dnsSettings_ == null - ? com.google.cloud.domains.v1beta1.DnsSettings.getDefaultInstance() - : dnsSettings_; - } else { - return dnsSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 2; - */ - public Builder setDnsSettings(com.google.cloud.domains.v1beta1.DnsSettings value) { - if (dnsSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsSettings_ = value; - onChanged(); - } else { - dnsSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 2; - */ - public Builder setDnsSettings( - com.google.cloud.domains.v1beta1.DnsSettings.Builder builderForValue) { - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = builderForValue.build(); - onChanged(); - } else { - dnsSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 2; - */ - public Builder mergeDnsSettings(com.google.cloud.domains.v1beta1.DnsSettings value) { - if (dnsSettingsBuilder_ == null) { - if (dnsSettings_ != null) { - dnsSettings_ = - com.google.cloud.domains.v1beta1.DnsSettings.newBuilder(dnsSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - dnsSettings_ = value; - } - onChanged(); - } else { - dnsSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 2; - */ - public Builder clearDnsSettings() { - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = null; - onChanged(); - } else { - dnsSettings_ = null; - dnsSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 2; - */ - public com.google.cloud.domains.v1beta1.DnsSettings.Builder getDnsSettingsBuilder() { - - onChanged(); - return getDnsSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 2; - */ - public com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder getDnsSettingsOrBuilder() { - if (dnsSettingsBuilder_ != null) { - return dnsSettingsBuilder_.getMessageOrBuilder(); - } else { - return dnsSettings_ == null - ? com.google.cloud.domains.v1beta1.DnsSettings.getDefaultInstance() - : dnsSettings_; - } - } - /** - * - * - *
-     * Fields of the `DnsSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings, - com.google.cloud.domains.v1beta1.DnsSettings.Builder, - com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder> - getDnsSettingsFieldBuilder() { - if (dnsSettingsBuilder_ == null) { - dnsSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings, - com.google.cloud.domains.v1beta1.DnsSettings.Builder, - com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder>( - getDnsSettings(), getParentForChildren(), isClean()); - dnsSettings_ = null; - } - return dnsSettingsBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the name servers are being updated for an existing
-     * Custom DNS configuration, the `update_mask` is
-     * `"custom_dns.name_servers"`.
-     * When changing the DNS provider from one type to another, pass the new
-     * provider's field name as part of the field mask. For example, when changing
-     * from a Google Domains DNS configuration to a Custom DNS configuration, the
-     * `update_mask` is `"custom_dns"`. //
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private boolean validateOnly_; - /** - * - * - *
-     * Validate the request without actually updating the DNS settings.
-     * 
- * - * bool validate_only = 4; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - * - * - *
-     * Validate the request without actually updating the DNS settings.
-     * 
- * - * bool validate_only = 4; - * - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Validate the request without actually updating the DNS settings.
-     * 
- * - * bool validate_only = 4; - * - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest) - private static final com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest(); - } - - public static com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigureDnsSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureDnsSettingsRequestOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureDnsSettingsRequestOrBuilder.java deleted file mode 100644 index d350792c..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureDnsSettingsRequestOrBuilder.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/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface ConfigureDnsSettingsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` whose DNS settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - java.lang.String getRegistration(); - /** - * - * - *
-   * Required. The name of the `Registration` whose DNS settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - com.google.protobuf.ByteString getRegistrationBytes(); - - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 2; - * - * @return Whether the dnsSettings field is set. - */ - boolean hasDnsSettings(); - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 2; - * - * @return The dnsSettings. - */ - com.google.cloud.domains.v1beta1.DnsSettings getDnsSettings(); - /** - * - * - *
-   * Fields of the `DnsSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 2; - */ - com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder getDnsSettingsOrBuilder(); - - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the name servers are being updated for an existing
-   * Custom DNS configuration, the `update_mask` is
-   * `"custom_dns.name_servers"`.
-   * When changing the DNS provider from one type to another, pass the new
-   * provider's field name as part of the field mask. For example, when changing
-   * from a Google Domains DNS configuration to a Custom DNS configuration, the
-   * `update_mask` is `"custom_dns"`. //
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - * - * - *
-   * Validate the request without actually updating the DNS settings.
-   * 
- * - * bool validate_only = 4; - * - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureManagementSettingsRequest.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureManagementSettingsRequest.java deleted file mode 100644 index f8becb31..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureManagementSettingsRequest.java +++ /dev/null @@ -1,1221 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Request for the `ConfigureManagementSettings` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest} - */ -public final class ConfigureManagementSettingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest) - ConfigureManagementSettingsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfigureManagementSettingsRequest.newBuilder() to construct. - private ConfigureManagementSettingsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ConfigureManagementSettingsRequest() { - registration_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfigureManagementSettingsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ConfigureManagementSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ConfigureManagementSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest.class, - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private volatile java.lang.Object registration_; - /** - * - * - *
-   * Required. The name of the `Registration` whose management settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - @java.lang.Override - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` whose management settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MANAGEMENT_SETTINGS_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1beta1.ManagementSettings managementSettings_; - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 2; - * - * @return Whether the managementSettings field is set. - */ - @java.lang.Override - public boolean hasManagementSettings() { - return managementSettings_ != null; - } - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 2; - * - * @return The managementSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ManagementSettings getManagementSettings() { - return managementSettings_ == null - ? com.google.cloud.domains.v1beta1.ManagementSettings.getDefaultInstance() - : managementSettings_; - } - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder - getManagementSettingsOrBuilder() { - return getManagementSettings(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 3; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registration_); - } - if (managementSettings_ != null) { - output.writeMessage(2, getManagementSettings()); - } - if (updateMask_ != null) { - output.writeMessage(3, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registration_); - } - if (managementSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getManagementSettings()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest other = - (com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest) obj; - - if (!getRegistration().equals(other.getRegistration())) return false; - if (hasManagementSettings() != other.hasManagementSettings()) return false; - if (hasManagementSettings()) { - if (!getManagementSettings().equals(other.getManagementSettings())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - if (hasManagementSettings()) { - hash = (37 * hash) + MANAGEMENT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getManagementSettings().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ConfigureManagementSettings` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest) - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ConfigureManagementSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ConfigureManagementSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest.class, - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest.Builder.class); - } - - // Construct using - // com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - registration_ = ""; - - if (managementSettingsBuilder_ == null) { - managementSettings_ = null; - } else { - managementSettings_ = null; - managementSettingsBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ConfigureManagementSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest build() { - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest buildPartial() { - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest result = - new com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest(this); - result.registration_ = registration_; - if (managementSettingsBuilder_ == null) { - result.managementSettings_ = managementSettings_; - } else { - result.managementSettings_ = managementSettingsBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest) { - return mergeFrom( - (com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest other) { - if (other - == com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest - .getDefaultInstance()) return this; - if (!other.getRegistration().isEmpty()) { - registration_ = other.registration_; - onChanged(); - } - if (other.hasManagementSettings()) { - mergeManagementSettings(other.getManagementSettings()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - registration_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getManagementSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object registration_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` whose management settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose management settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose management settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The registration to set. - * @return This builder for chaining. - */ - public Builder setRegistration(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose management settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearRegistration() { - - registration_ = getDefaultInstance().getRegistration(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose management settings are being updated,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for registration to set. - * @return This builder for chaining. - */ - public Builder setRegistrationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registration_ = value; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1beta1.ManagementSettings managementSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ManagementSettings, - com.google.cloud.domains.v1beta1.ManagementSettings.Builder, - com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder> - managementSettingsBuilder_; - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 2; - * - * @return Whether the managementSettings field is set. - */ - public boolean hasManagementSettings() { - return managementSettingsBuilder_ != null || managementSettings_ != null; - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 2; - * - * @return The managementSettings. - */ - public com.google.cloud.domains.v1beta1.ManagementSettings getManagementSettings() { - if (managementSettingsBuilder_ == null) { - return managementSettings_ == null - ? com.google.cloud.domains.v1beta1.ManagementSettings.getDefaultInstance() - : managementSettings_; - } else { - return managementSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 2; - */ - public Builder setManagementSettings( - com.google.cloud.domains.v1beta1.ManagementSettings value) { - if (managementSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - managementSettings_ = value; - onChanged(); - } else { - managementSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 2; - */ - public Builder setManagementSettings( - com.google.cloud.domains.v1beta1.ManagementSettings.Builder builderForValue) { - if (managementSettingsBuilder_ == null) { - managementSettings_ = builderForValue.build(); - onChanged(); - } else { - managementSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 2; - */ - public Builder mergeManagementSettings( - com.google.cloud.domains.v1beta1.ManagementSettings value) { - if (managementSettingsBuilder_ == null) { - if (managementSettings_ != null) { - managementSettings_ = - com.google.cloud.domains.v1beta1.ManagementSettings.newBuilder(managementSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - managementSettings_ = value; - } - onChanged(); - } else { - managementSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 2; - */ - public Builder clearManagementSettings() { - if (managementSettingsBuilder_ == null) { - managementSettings_ = null; - onChanged(); - } else { - managementSettings_ = null; - managementSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 2; - */ - public com.google.cloud.domains.v1beta1.ManagementSettings.Builder - getManagementSettingsBuilder() { - - onChanged(); - return getManagementSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 2; - */ - public com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder - getManagementSettingsOrBuilder() { - if (managementSettingsBuilder_ != null) { - return managementSettingsBuilder_.getMessageOrBuilder(); - } else { - return managementSettings_ == null - ? com.google.cloud.domains.v1beta1.ManagementSettings.getDefaultInstance() - : managementSettings_; - } - } - /** - * - * - *
-     * Fields of the `ManagementSettings` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ManagementSettings, - com.google.cloud.domains.v1beta1.ManagementSettings.Builder, - com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder> - getManagementSettingsFieldBuilder() { - if (managementSettingsBuilder_ == null) { - managementSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ManagementSettings, - com.google.cloud.domains.v1beta1.ManagementSettings.Builder, - com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder>( - getManagementSettings(), getParentForChildren(), isClean()); - managementSettings_ = null; - } - return managementSettingsBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the transfer lock is being updated, the `update_mask`
-     * is `"transfer_lock_state"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest) - private static final com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest(); - } - - public static com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigureManagementSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureManagementSettingsRequestOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureManagementSettingsRequestOrBuilder.java deleted file mode 100644 index 67e5c055..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureManagementSettingsRequestOrBuilder.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface ConfigureManagementSettingsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` whose management settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - java.lang.String getRegistration(); - /** - * - * - *
-   * Required. The name of the `Registration` whose management settings are being updated,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - com.google.protobuf.ByteString getRegistrationBytes(); - - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 2; - * - * @return Whether the managementSettings field is set. - */ - boolean hasManagementSettings(); - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 2; - * - * @return The managementSettings. - */ - com.google.cloud.domains.v1beta1.ManagementSettings getManagementSettings(); - /** - * - * - *
-   * Fields of the `ManagementSettings` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 2; - */ - com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder getManagementSettingsOrBuilder(); - - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the transfer lock is being updated, the `update_mask`
-   * is `"transfer_lock_state"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ContactNotice.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ContactNotice.java deleted file mode 100644 index fc252847..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ContactNotice.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Notices related to contact information.
- * 
- * - * Protobuf enum {@code google.cloud.domains.v1beta1.ContactNotice} - */ -public enum ContactNotice implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * The notice is undefined.
-   * 
- * - * CONTACT_NOTICE_UNSPECIFIED = 0; - */ - CONTACT_NOTICE_UNSPECIFIED(0), - /** - * - * - *
-   * Required when setting the `privacy` field of `ContactSettings` to
-   * `PUBLIC_CONTACT_DATA`, which exposes contact data publicly.
-   * 
- * - * PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT = 1; - */ - PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * The notice is undefined.
-   * 
- * - * CONTACT_NOTICE_UNSPECIFIED = 0; - */ - public static final int CONTACT_NOTICE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Required when setting the `privacy` field of `ContactSettings` to
-   * `PUBLIC_CONTACT_DATA`, which exposes contact data publicly.
-   * 
- * - * PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT = 1; - */ - public static final int PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT_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 ContactNotice 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 ContactNotice forNumber(int value) { - switch (value) { - case 0: - return CONTACT_NOTICE_UNSPECIFIED; - case 1: - return PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT; - 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 ContactNotice findValueByNumber(int number) { - return ContactNotice.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto.getDescriptor().getEnumTypes().get(2); - } - - private static final ContactNotice[] VALUES = values(); - - public static ContactNotice 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 ContactNotice(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1beta1.ContactNotice) -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ContactPrivacy.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ContactPrivacy.java deleted file mode 100644 index d9e6a204..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ContactPrivacy.java +++ /dev/null @@ -1,220 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Defines a set of possible contact privacy settings for a `Registration`.
- * [ICANN](https://icann.org/) maintains the WHOIS database, a publicly
- * accessible mapping from domain name to contact information, and requires that
- * each domain name have an entry. Choose from these options to control how much
- * information in your `ContactSettings` is published.
- * 
- * - * Protobuf enum {@code google.cloud.domains.v1beta1.ContactPrivacy} - */ -public enum ContactPrivacy implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * The contact privacy settings are undefined.
-   * 
- * - * CONTACT_PRIVACY_UNSPECIFIED = 0; - */ - CONTACT_PRIVACY_UNSPECIFIED(0), - /** - * - * - *
-   * All the data from `ContactSettings` is publicly available. When setting
-   * this option, you must also provide a
-   * `PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT` in the `contact_notices` field of the
-   * request.
-   * 
- * - * PUBLIC_CONTACT_DATA = 1; - */ - PUBLIC_CONTACT_DATA(1), - /** - * - * - *
-   * None of the data from `ContactSettings` is publicly available. Instead,
-   * proxy contact data is published for your domain. Email sent to the proxy
-   * email address is forwarded to the registrant's email address. Cloud Domains
-   * provides this privacy proxy service at no additional cost.
-   * 
- * - * PRIVATE_CONTACT_DATA = 2; - */ - PRIVATE_CONTACT_DATA(2), - /** - * - * - *
-   * Some data from `ContactSettings` is publicly available. The actual
-   * information redacted depends on the domain. For details, see [the
-   * registration privacy
-   * article](https://support.google.com/domains/answer/3251242).
-   * 
- * - * REDACTED_CONTACT_DATA = 3; - */ - REDACTED_CONTACT_DATA(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * The contact privacy settings are undefined.
-   * 
- * - * CONTACT_PRIVACY_UNSPECIFIED = 0; - */ - public static final int CONTACT_PRIVACY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * All the data from `ContactSettings` is publicly available. When setting
-   * this option, you must also provide a
-   * `PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT` in the `contact_notices` field of the
-   * request.
-   * 
- * - * PUBLIC_CONTACT_DATA = 1; - */ - public static final int PUBLIC_CONTACT_DATA_VALUE = 1; - /** - * - * - *
-   * None of the data from `ContactSettings` is publicly available. Instead,
-   * proxy contact data is published for your domain. Email sent to the proxy
-   * email address is forwarded to the registrant's email address. Cloud Domains
-   * provides this privacy proxy service at no additional cost.
-   * 
- * - * PRIVATE_CONTACT_DATA = 2; - */ - public static final int PRIVATE_CONTACT_DATA_VALUE = 2; - /** - * - * - *
-   * Some data from `ContactSettings` is publicly available. The actual
-   * information redacted depends on the domain. For details, see [the
-   * registration privacy
-   * article](https://support.google.com/domains/answer/3251242).
-   * 
- * - * REDACTED_CONTACT_DATA = 3; - */ - public static final int REDACTED_CONTACT_DATA_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 ContactPrivacy 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 ContactPrivacy forNumber(int value) { - switch (value) { - case 0: - return CONTACT_PRIVACY_UNSPECIFIED; - case 1: - return PUBLIC_CONTACT_DATA; - case 2: - return PRIVATE_CONTACT_DATA; - case 3: - return REDACTED_CONTACT_DATA; - 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 ContactPrivacy findValueByNumber(int number) { - return ContactPrivacy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto.getDescriptor().getEnumTypes().get(0); - } - - private static final ContactPrivacy[] VALUES = values(); - - public static ContactPrivacy 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 ContactPrivacy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1beta1.ContactPrivacy) -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ContactSettings.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ContactSettings.java deleted file mode 100644 index acc94ff8..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ContactSettings.java +++ /dev/null @@ -1,2952 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Defines the contact information associated with a `Registration`.
- * [ICANN](https://icann.org/) requires all domain names to have associated
- * contact information. The `registrant_contact` is considered the
- * domain's legal owner, and often the other contacts are identical.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ContactSettings} - */ -public final class ContactSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.ContactSettings) - ContactSettingsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ContactSettings.newBuilder() to construct. - private ContactSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ContactSettings() { - privacy_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ContactSettings(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ContactSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ContactSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ContactSettings.class, - com.google.cloud.domains.v1beta1.ContactSettings.Builder.class); - } - - public interface ContactOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.ContactSettings.Contact) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the postalAddress field is set. - */ - boolean hasPostalAddress(); - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The postalAddress. - */ - com.google.type.PostalAddress getPostalAddress(); - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder(); - - /** - * - * - *
-     * Required. Email address of the contact.
-     * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The email. - */ - java.lang.String getEmail(); - /** - * - * - *
-     * Required. Email address of the contact.
-     * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for email. - */ - com.google.protobuf.ByteString getEmailBytes(); - - /** - * - * - *
-     * Required. Phone number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The phoneNumber. - */ - java.lang.String getPhoneNumber(); - /** - * - * - *
-     * Required. Phone number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for phoneNumber. - */ - com.google.protobuf.ByteString getPhoneNumberBytes(); - - /** - * - * - *
-     * Fax number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string fax_number = 4; - * - * @return The faxNumber. - */ - java.lang.String getFaxNumber(); - /** - * - * - *
-     * Fax number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string fax_number = 4; - * - * @return The bytes for faxNumber. - */ - com.google.protobuf.ByteString getFaxNumberBytes(); - } - /** - * - * - *
-   * Details required for a contact associated with a `Registration`.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ContactSettings.Contact} - */ - public static final class Contact extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.ContactSettings.Contact) - ContactOrBuilder { - private static final long serialVersionUID = 0L; - // Use Contact.newBuilder() to construct. - private Contact(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Contact() { - email_ = ""; - phoneNumber_ = ""; - faxNumber_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Contact(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ContactSettings_Contact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ContactSettings_Contact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ContactSettings.Contact.class, - com.google.cloud.domains.v1beta1.ContactSettings.Contact.Builder.class); - } - - public static final int POSTAL_ADDRESS_FIELD_NUMBER = 1; - private com.google.type.PostalAddress postalAddress_; - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the postalAddress field is set. - */ - @java.lang.Override - public boolean hasPostalAddress() { - return postalAddress_ != null; - } - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The postalAddress. - */ - @java.lang.Override - public com.google.type.PostalAddress getPostalAddress() { - return postalAddress_ == null - ? com.google.type.PostalAddress.getDefaultInstance() - : postalAddress_; - } - /** - * - * - *
-     * Required. Postal address of the contact.
-     * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { - return getPostalAddress(); - } - - public static final int EMAIL_FIELD_NUMBER = 2; - private volatile java.lang.Object email_; - /** - * - * - *
-     * Required. Email address of the contact.
-     * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The email. - */ - @java.lang.Override - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - email_ = s; - return s; - } - } - /** - * - * - *
-     * Required. Email address of the contact.
-     * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for email. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PHONE_NUMBER_FIELD_NUMBER = 3; - private volatile java.lang.Object phoneNumber_; - /** - * - * - *
-     * Required. Phone number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The phoneNumber. - */ - @java.lang.Override - public java.lang.String getPhoneNumber() { - java.lang.Object ref = phoneNumber_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - phoneNumber_ = s; - return s; - } - } - /** - * - * - *
-     * Required. Phone number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for phoneNumber. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPhoneNumberBytes() { - java.lang.Object ref = phoneNumber_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - phoneNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FAX_NUMBER_FIELD_NUMBER = 4; - private volatile java.lang.Object faxNumber_; - /** - * - * - *
-     * Fax number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string fax_number = 4; - * - * @return The faxNumber. - */ - @java.lang.Override - public java.lang.String getFaxNumber() { - java.lang.Object ref = faxNumber_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - faxNumber_ = s; - return s; - } - } - /** - * - * - *
-     * Fax number of the contact in international format. For example,
-     * `"+1-800-555-0123"`.
-     * 
- * - * string fax_number = 4; - * - * @return The bytes for faxNumber. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFaxNumberBytes() { - java.lang.Object ref = faxNumber_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - faxNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (postalAddress_ != null) { - output.writeMessage(1, getPostalAddress()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, email_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumber_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, phoneNumber_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(faxNumber_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, faxNumber_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (postalAddress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPostalAddress()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumber_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, phoneNumber_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(faxNumber_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, faxNumber_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.ContactSettings.Contact)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.ContactSettings.Contact other = - (com.google.cloud.domains.v1beta1.ContactSettings.Contact) obj; - - if (hasPostalAddress() != other.hasPostalAddress()) return false; - if (hasPostalAddress()) { - if (!getPostalAddress().equals(other.getPostalAddress())) return false; - } - if (!getEmail().equals(other.getEmail())) return false; - if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; - if (!getFaxNumber().equals(other.getFaxNumber())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPostalAddress()) { - hash = (37 * hash) + POSTAL_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getPostalAddress().hashCode(); - } - hash = (37 * hash) + EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getEmail().hashCode(); - hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getPhoneNumber().hashCode(); - hash = (37 * hash) + FAX_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getFaxNumber().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.ContactSettings.Contact parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings.Contact parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings.Contact parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings.Contact parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings.Contact parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings.Contact parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings.Contact parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings.Contact parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings.Contact parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings.Contact parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings.Contact parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings.Contact parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.ContactSettings.Contact prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Details required for a contact associated with a `Registration`.
-     * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ContactSettings.Contact} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.ContactSettings.Contact) - com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ContactSettings_Contact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ContactSettings_Contact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ContactSettings.Contact.class, - com.google.cloud.domains.v1beta1.ContactSettings.Contact.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.ContactSettings.Contact.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (postalAddressBuilder_ == null) { - postalAddress_ = null; - } else { - postalAddress_ = null; - postalAddressBuilder_ = null; - } - email_ = ""; - - phoneNumber_ = ""; - - faxNumber_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ContactSettings_Contact_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettings.Contact getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.ContactSettings.Contact.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettings.Contact build() { - com.google.cloud.domains.v1beta1.ContactSettings.Contact result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettings.Contact buildPartial() { - com.google.cloud.domains.v1beta1.ContactSettings.Contact result = - new com.google.cloud.domains.v1beta1.ContactSettings.Contact(this); - if (postalAddressBuilder_ == null) { - result.postalAddress_ = postalAddress_; - } else { - result.postalAddress_ = postalAddressBuilder_.build(); - } - result.email_ = email_; - result.phoneNumber_ = phoneNumber_; - result.faxNumber_ = faxNumber_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.ContactSettings.Contact) { - return mergeFrom((com.google.cloud.domains.v1beta1.ContactSettings.Contact) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.ContactSettings.Contact other) { - if (other == com.google.cloud.domains.v1beta1.ContactSettings.Contact.getDefaultInstance()) - return this; - if (other.hasPostalAddress()) { - mergePostalAddress(other.getPostalAddress()); - } - if (!other.getEmail().isEmpty()) { - email_ = other.email_; - onChanged(); - } - if (!other.getPhoneNumber().isEmpty()) { - phoneNumber_ = other.phoneNumber_; - onChanged(); - } - if (!other.getFaxNumber().isEmpty()) { - faxNumber_ = other.faxNumber_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getPostalAddressFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - email_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - phoneNumber_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - faxNumber_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.type.PostalAddress postalAddress_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.PostalAddress, - com.google.type.PostalAddress.Builder, - com.google.type.PostalAddressOrBuilder> - postalAddressBuilder_; - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the postalAddress field is set. - */ - public boolean hasPostalAddress() { - return postalAddressBuilder_ != null || postalAddress_ != null; - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The postalAddress. - */ - public com.google.type.PostalAddress getPostalAddress() { - if (postalAddressBuilder_ == null) { - return postalAddress_ == null - ? com.google.type.PostalAddress.getDefaultInstance() - : postalAddress_; - } else { - return postalAddressBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPostalAddress(com.google.type.PostalAddress value) { - if (postalAddressBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - postalAddress_ = value; - onChanged(); - } else { - postalAddressBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPostalAddress(com.google.type.PostalAddress.Builder builderForValue) { - if (postalAddressBuilder_ == null) { - postalAddress_ = builderForValue.build(); - onChanged(); - } else { - postalAddressBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergePostalAddress(com.google.type.PostalAddress value) { - if (postalAddressBuilder_ == null) { - if (postalAddress_ != null) { - postalAddress_ = - com.google.type.PostalAddress.newBuilder(postalAddress_) - .mergeFrom(value) - .buildPartial(); - } else { - postalAddress_ = value; - } - onChanged(); - } else { - postalAddressBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearPostalAddress() { - if (postalAddressBuilder_ == null) { - postalAddress_ = null; - onChanged(); - } else { - postalAddress_ = null; - postalAddressBuilder_ = null; - } - - return this; - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.type.PostalAddress.Builder getPostalAddressBuilder() { - - onChanged(); - return getPostalAddressFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { - if (postalAddressBuilder_ != null) { - return postalAddressBuilder_.getMessageOrBuilder(); - } else { - return postalAddress_ == null - ? com.google.type.PostalAddress.getDefaultInstance() - : postalAddress_; - } - } - /** - * - * - *
-       * Required. Postal address of the contact.
-       * 
- * - * - * .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.PostalAddress, - com.google.type.PostalAddress.Builder, - com.google.type.PostalAddressOrBuilder> - getPostalAddressFieldBuilder() { - if (postalAddressBuilder_ == null) { - postalAddressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.PostalAddress, - com.google.type.PostalAddress.Builder, - com.google.type.PostalAddressOrBuilder>( - getPostalAddress(), getParentForChildren(), isClean()); - postalAddress_ = null; - } - return postalAddressBuilder_; - } - - private java.lang.Object email_ = ""; - /** - * - * - *
-       * Required. Email address of the contact.
-       * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The email. - */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - email_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Required. Email address of the contact.
-       * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for email. - */ - public com.google.protobuf.ByteString getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Required. Email address of the contact.
-       * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The email to set. - * @return This builder for chaining. - */ - public Builder setEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - email_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Email address of the contact.
-       * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearEmail() { - - email_ = getDefaultInstance().getEmail(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Email address of the contact.
-       * 
- * - * string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for email to set. - * @return This builder for chaining. - */ - public Builder setEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - email_ = value; - onChanged(); - return this; - } - - private java.lang.Object phoneNumber_ = ""; - /** - * - * - *
-       * Required. Phone number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The phoneNumber. - */ - public java.lang.String getPhoneNumber() { - java.lang.Object ref = phoneNumber_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - phoneNumber_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Required. Phone number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for phoneNumber. - */ - public com.google.protobuf.ByteString getPhoneNumberBytes() { - java.lang.Object ref = phoneNumber_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - phoneNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Required. Phone number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The phoneNumber to set. - * @return This builder for chaining. - */ - public Builder setPhoneNumber(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - phoneNumber_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Phone number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearPhoneNumber() { - - phoneNumber_ = getDefaultInstance().getPhoneNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Phone number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for phoneNumber to set. - * @return This builder for chaining. - */ - public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - phoneNumber_ = value; - onChanged(); - return this; - } - - private java.lang.Object faxNumber_ = ""; - /** - * - * - *
-       * Fax number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string fax_number = 4; - * - * @return The faxNumber. - */ - public java.lang.String getFaxNumber() { - java.lang.Object ref = faxNumber_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - faxNumber_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Fax number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string fax_number = 4; - * - * @return The bytes for faxNumber. - */ - public com.google.protobuf.ByteString getFaxNumberBytes() { - java.lang.Object ref = faxNumber_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - faxNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Fax number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string fax_number = 4; - * - * @param value The faxNumber to set. - * @return This builder for chaining. - */ - public Builder setFaxNumber(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - faxNumber_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Fax number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string fax_number = 4; - * - * @return This builder for chaining. - */ - public Builder clearFaxNumber() { - - faxNumber_ = getDefaultInstance().getFaxNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Fax number of the contact in international format. For example,
-       * `"+1-800-555-0123"`.
-       * 
- * - * string fax_number = 4; - * - * @param value The bytes for faxNumber to set. - * @return This builder for chaining. - */ - public Builder setFaxNumberBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - faxNumber_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.ContactSettings.Contact) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.ContactSettings.Contact) - private static final com.google.cloud.domains.v1beta1.ContactSettings.Contact DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.ContactSettings.Contact(); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings.Contact getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Contact parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettings.Contact getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int PRIVACY_FIELD_NUMBER = 1; - private int privacy_; - /** - * - * - *
-   * Required. Privacy setting for the contacts associated with the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for privacy. - */ - @java.lang.Override - public int getPrivacyValue() { - return privacy_; - } - /** - * - * - *
-   * Required. Privacy setting for the contacts associated with the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The privacy. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactPrivacy getPrivacy() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.ContactPrivacy result = - com.google.cloud.domains.v1beta1.ContactPrivacy.valueOf(privacy_); - return result == null ? com.google.cloud.domains.v1beta1.ContactPrivacy.UNRECOGNIZED : result; - } - - public static final int REGISTRANT_CONTACT_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1beta1.ContactSettings.Contact registrantContact_; - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registrantContact field is set. - */ - @java.lang.Override - public boolean hasRegistrantContact() { - return registrantContact_ != null; - } - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registrantContact. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettings.Contact getRegistrantContact() { - return registrantContact_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.Contact.getDefaultInstance() - : registrantContact_; - } - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder - getRegistrantContactOrBuilder() { - return getRegistrantContact(); - } - - public static final int ADMIN_CONTACT_FIELD_NUMBER = 3; - private com.google.cloud.domains.v1beta1.ContactSettings.Contact adminContact_; - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the adminContact field is set. - */ - @java.lang.Override - public boolean hasAdminContact() { - return adminContact_ != null; - } - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The adminContact. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettings.Contact getAdminContact() { - return adminContact_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.Contact.getDefaultInstance() - : adminContact_; - } - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder - getAdminContactOrBuilder() { - return getAdminContact(); - } - - public static final int TECHNICAL_CONTACT_FIELD_NUMBER = 4; - private com.google.cloud.domains.v1beta1.ContactSettings.Contact technicalContact_; - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the technicalContact field is set. - */ - @java.lang.Override - public boolean hasTechnicalContact() { - return technicalContact_ != null; - } - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The technicalContact. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettings.Contact getTechnicalContact() { - return technicalContact_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.Contact.getDefaultInstance() - : technicalContact_; - } - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder - getTechnicalContactOrBuilder() { - return getTechnicalContact(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (privacy_ - != com.google.cloud.domains.v1beta1.ContactPrivacy.CONTACT_PRIVACY_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, privacy_); - } - if (registrantContact_ != null) { - output.writeMessage(2, getRegistrantContact()); - } - if (adminContact_ != null) { - output.writeMessage(3, getAdminContact()); - } - if (technicalContact_ != null) { - output.writeMessage(4, getTechnicalContact()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (privacy_ - != com.google.cloud.domains.v1beta1.ContactPrivacy.CONTACT_PRIVACY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, privacy_); - } - if (registrantContact_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRegistrantContact()); - } - if (adminContact_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAdminContact()); - } - if (technicalContact_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTechnicalContact()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.ContactSettings)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.ContactSettings other = - (com.google.cloud.domains.v1beta1.ContactSettings) obj; - - if (privacy_ != other.privacy_) return false; - if (hasRegistrantContact() != other.hasRegistrantContact()) return false; - if (hasRegistrantContact()) { - if (!getRegistrantContact().equals(other.getRegistrantContact())) return false; - } - if (hasAdminContact() != other.hasAdminContact()) return false; - if (hasAdminContact()) { - if (!getAdminContact().equals(other.getAdminContact())) return false; - } - if (hasTechnicalContact() != other.hasTechnicalContact()) return false; - if (hasTechnicalContact()) { - if (!getTechnicalContact().equals(other.getTechnicalContact())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PRIVACY_FIELD_NUMBER; - hash = (53 * hash) + privacy_; - if (hasRegistrantContact()) { - hash = (37 * hash) + REGISTRANT_CONTACT_FIELD_NUMBER; - hash = (53 * hash) + getRegistrantContact().hashCode(); - } - if (hasAdminContact()) { - hash = (37 * hash) + ADMIN_CONTACT_FIELD_NUMBER; - hash = (53 * hash) + getAdminContact().hashCode(); - } - if (hasTechnicalContact()) { - hash = (37 * hash) + TECHNICAL_CONTACT_FIELD_NUMBER; - hash = (53 * hash) + getTechnicalContact().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.ContactSettings parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1beta1.ContactSettings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Defines the contact information associated with a `Registration`.
-   * [ICANN](https://icann.org/) requires all domain names to have associated
-   * contact information. The `registrant_contact` is considered the
-   * domain's legal owner, and often the other contacts are identical.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ContactSettings} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.ContactSettings) - com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ContactSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ContactSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ContactSettings.class, - com.google.cloud.domains.v1beta1.ContactSettings.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.ContactSettings.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - privacy_ = 0; - - if (registrantContactBuilder_ == null) { - registrantContact_ = null; - } else { - registrantContact_ = null; - registrantContactBuilder_ = null; - } - if (adminContactBuilder_ == null) { - adminContact_ = null; - } else { - adminContact_ = null; - adminContactBuilder_ = null; - } - if (technicalContactBuilder_ == null) { - technicalContact_ = null; - } else { - technicalContact_ = null; - technicalContactBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ContactSettings_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettings getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettings build() { - com.google.cloud.domains.v1beta1.ContactSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettings buildPartial() { - com.google.cloud.domains.v1beta1.ContactSettings result = - new com.google.cloud.domains.v1beta1.ContactSettings(this); - result.privacy_ = privacy_; - if (registrantContactBuilder_ == null) { - result.registrantContact_ = registrantContact_; - } else { - result.registrantContact_ = registrantContactBuilder_.build(); - } - if (adminContactBuilder_ == null) { - result.adminContact_ = adminContact_; - } else { - result.adminContact_ = adminContactBuilder_.build(); - } - if (technicalContactBuilder_ == null) { - result.technicalContact_ = technicalContact_; - } else { - result.technicalContact_ = technicalContactBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.ContactSettings) { - return mergeFrom((com.google.cloud.domains.v1beta1.ContactSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.ContactSettings other) { - if (other == com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance()) - return this; - if (other.privacy_ != 0) { - setPrivacyValue(other.getPrivacyValue()); - } - if (other.hasRegistrantContact()) { - mergeRegistrantContact(other.getRegistrantContact()); - } - if (other.hasAdminContact()) { - mergeAdminContact(other.getAdminContact()); - } - if (other.hasTechnicalContact()) { - mergeTechnicalContact(other.getTechnicalContact()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - privacy_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getRegistrantContactFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getAdminContactFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage( - getTechnicalContactFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int privacy_ = 0; - /** - * - * - *
-     * Required. Privacy setting for the contacts associated with the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for privacy. - */ - @java.lang.Override - public int getPrivacyValue() { - return privacy_; - } - /** - * - * - *
-     * Required. Privacy setting for the contacts associated with the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for privacy to set. - * @return This builder for chaining. - */ - public Builder setPrivacyValue(int value) { - - privacy_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Privacy setting for the contacts associated with the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The privacy. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactPrivacy getPrivacy() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.ContactPrivacy result = - com.google.cloud.domains.v1beta1.ContactPrivacy.valueOf(privacy_); - return result == null ? com.google.cloud.domains.v1beta1.ContactPrivacy.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Required. Privacy setting for the contacts associated with the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The privacy to set. - * @return This builder for chaining. - */ - public Builder setPrivacy(com.google.cloud.domains.v1beta1.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - - privacy_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Privacy setting for the contacts associated with the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearPrivacy() { - - privacy_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1beta1.ContactSettings.Contact registrantContact_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings.Contact, - com.google.cloud.domains.v1beta1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder> - registrantContactBuilder_; - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registrantContact field is set. - */ - public boolean hasRegistrantContact() { - return registrantContactBuilder_ != null || registrantContact_ != null; - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registrantContact. - */ - public com.google.cloud.domains.v1beta1.ContactSettings.Contact getRegistrantContact() { - if (registrantContactBuilder_ == null) { - return registrantContact_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.Contact.getDefaultInstance() - : registrantContact_; - } else { - return registrantContactBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistrantContact( - com.google.cloud.domains.v1beta1.ContactSettings.Contact value) { - if (registrantContactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - registrantContact_ = value; - onChanged(); - } else { - registrantContactBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistrantContact( - com.google.cloud.domains.v1beta1.ContactSettings.Contact.Builder builderForValue) { - if (registrantContactBuilder_ == null) { - registrantContact_ = builderForValue.build(); - onChanged(); - } else { - registrantContactBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRegistrantContact( - com.google.cloud.domains.v1beta1.ContactSettings.Contact value) { - if (registrantContactBuilder_ == null) { - if (registrantContact_ != null) { - registrantContact_ = - com.google.cloud.domains.v1beta1.ContactSettings.Contact.newBuilder( - registrantContact_) - .mergeFrom(value) - .buildPartial(); - } else { - registrantContact_ = value; - } - onChanged(); - } else { - registrantContactBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRegistrantContact() { - if (registrantContactBuilder_ == null) { - registrantContact_ = null; - onChanged(); - } else { - registrantContact_ = null; - registrantContactBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1beta1.ContactSettings.Contact.Builder - getRegistrantContactBuilder() { - - onChanged(); - return getRegistrantContactFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder - getRegistrantContactOrBuilder() { - if (registrantContactBuilder_ != null) { - return registrantContactBuilder_.getMessageOrBuilder(); - } else { - return registrantContact_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.Contact.getDefaultInstance() - : registrantContact_; - } - } - /** - * - * - *
-     * Required. The registrant contact for the `Registration`.
-     * *Caution: Anyone with access to this email address, phone number,
-     * and/or postal address can take control of the domain.*
-     * *Warning: For new `Registration`s, the registrant receives an email
-     * confirmation that they must complete within 15 days to avoid domain
-     * suspension.*
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings.Contact, - com.google.cloud.domains.v1beta1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder> - getRegistrantContactFieldBuilder() { - if (registrantContactBuilder_ == null) { - registrantContactBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings.Contact, - com.google.cloud.domains.v1beta1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder>( - getRegistrantContact(), getParentForChildren(), isClean()); - registrantContact_ = null; - } - return registrantContactBuilder_; - } - - private com.google.cloud.domains.v1beta1.ContactSettings.Contact adminContact_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings.Contact, - com.google.cloud.domains.v1beta1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder> - adminContactBuilder_; - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the adminContact field is set. - */ - public boolean hasAdminContact() { - return adminContactBuilder_ != null || adminContact_ != null; - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The adminContact. - */ - public com.google.cloud.domains.v1beta1.ContactSettings.Contact getAdminContact() { - if (adminContactBuilder_ == null) { - return adminContact_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.Contact.getDefaultInstance() - : adminContact_; - } else { - return adminContactBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAdminContact(com.google.cloud.domains.v1beta1.ContactSettings.Contact value) { - if (adminContactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - adminContact_ = value; - onChanged(); - } else { - adminContactBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAdminContact( - com.google.cloud.domains.v1beta1.ContactSettings.Contact.Builder builderForValue) { - if (adminContactBuilder_ == null) { - adminContact_ = builderForValue.build(); - onChanged(); - } else { - adminContactBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeAdminContact( - com.google.cloud.domains.v1beta1.ContactSettings.Contact value) { - if (adminContactBuilder_ == null) { - if (adminContact_ != null) { - adminContact_ = - com.google.cloud.domains.v1beta1.ContactSettings.Contact.newBuilder(adminContact_) - .mergeFrom(value) - .buildPartial(); - } else { - adminContact_ = value; - } - onChanged(); - } else { - adminContactBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearAdminContact() { - if (adminContactBuilder_ == null) { - adminContact_ = null; - onChanged(); - } else { - adminContact_ = null; - adminContactBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1beta1.ContactSettings.Contact.Builder - getAdminContactBuilder() { - - onChanged(); - return getAdminContactFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder - getAdminContactOrBuilder() { - if (adminContactBuilder_ != null) { - return adminContactBuilder_.getMessageOrBuilder(); - } else { - return adminContact_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.Contact.getDefaultInstance() - : adminContact_; - } - } - /** - * - * - *
-     * Required. The administrative contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings.Contact, - com.google.cloud.domains.v1beta1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder> - getAdminContactFieldBuilder() { - if (adminContactBuilder_ == null) { - adminContactBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings.Contact, - com.google.cloud.domains.v1beta1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder>( - getAdminContact(), getParentForChildren(), isClean()); - adminContact_ = null; - } - return adminContactBuilder_; - } - - private com.google.cloud.domains.v1beta1.ContactSettings.Contact technicalContact_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings.Contact, - com.google.cloud.domains.v1beta1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder> - technicalContactBuilder_; - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the technicalContact field is set. - */ - public boolean hasTechnicalContact() { - return technicalContactBuilder_ != null || technicalContact_ != null; - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The technicalContact. - */ - public com.google.cloud.domains.v1beta1.ContactSettings.Contact getTechnicalContact() { - if (technicalContactBuilder_ == null) { - return technicalContact_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.Contact.getDefaultInstance() - : technicalContact_; - } else { - return technicalContactBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTechnicalContact( - com.google.cloud.domains.v1beta1.ContactSettings.Contact value) { - if (technicalContactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - technicalContact_ = value; - onChanged(); - } else { - technicalContactBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTechnicalContact( - com.google.cloud.domains.v1beta1.ContactSettings.Contact.Builder builderForValue) { - if (technicalContactBuilder_ == null) { - technicalContact_ = builderForValue.build(); - onChanged(); - } else { - technicalContactBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTechnicalContact( - com.google.cloud.domains.v1beta1.ContactSettings.Contact value) { - if (technicalContactBuilder_ == null) { - if (technicalContact_ != null) { - technicalContact_ = - com.google.cloud.domains.v1beta1.ContactSettings.Contact.newBuilder(technicalContact_) - .mergeFrom(value) - .buildPartial(); - } else { - technicalContact_ = value; - } - onChanged(); - } else { - technicalContactBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTechnicalContact() { - if (technicalContactBuilder_ == null) { - technicalContact_ = null; - onChanged(); - } else { - technicalContact_ = null; - technicalContactBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1beta1.ContactSettings.Contact.Builder - getTechnicalContactBuilder() { - - onChanged(); - return getTechnicalContactFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder - getTechnicalContactOrBuilder() { - if (technicalContactBuilder_ != null) { - return technicalContactBuilder_.getMessageOrBuilder(); - } else { - return technicalContact_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.Contact.getDefaultInstance() - : technicalContact_; - } - } - /** - * - * - *
-     * Required. The technical contact for the `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings.Contact, - com.google.cloud.domains.v1beta1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder> - getTechnicalContactFieldBuilder() { - if (technicalContactBuilder_ == null) { - technicalContactBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings.Contact, - com.google.cloud.domains.v1beta1.ContactSettings.Contact.Builder, - com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder>( - getTechnicalContact(), getParentForChildren(), isClean()); - technicalContact_ = null; - } - return technicalContactBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.ContactSettings) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.ContactSettings) - private static final com.google.cloud.domains.v1beta1.ContactSettings DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.ContactSettings(); - } - - public static com.google.cloud.domains.v1beta1.ContactSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContactSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ContactSettingsOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ContactSettingsOrBuilder.java deleted file mode 100644 index a8d56a2f..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ContactSettingsOrBuilder.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface ContactSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.ContactSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Privacy setting for the contacts associated with the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for privacy. - */ - int getPrivacyValue(); - /** - * - * - *
-   * Required. Privacy setting for the contacts associated with the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The privacy. - */ - com.google.cloud.domains.v1beta1.ContactPrivacy getPrivacy(); - - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registrantContact field is set. - */ - boolean hasRegistrantContact(); - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registrantContact. - */ - com.google.cloud.domains.v1beta1.ContactSettings.Contact getRegistrantContact(); - /** - * - * - *
-   * Required. The registrant contact for the `Registration`.
-   * *Caution: Anyone with access to this email address, phone number,
-   * and/or postal address can take control of the domain.*
-   * *Warning: For new `Registration`s, the registrant receives an email
-   * confirmation that they must complete within 15 days to avoid domain
-   * suspension.*
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder getRegistrantContactOrBuilder(); - - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the adminContact field is set. - */ - boolean hasAdminContact(); - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The adminContact. - */ - com.google.cloud.domains.v1beta1.ContactSettings.Contact getAdminContact(); - /** - * - * - *
-   * Required. The administrative contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder getAdminContactOrBuilder(); - - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the technicalContact field is set. - */ - boolean hasTechnicalContact(); - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The technicalContact. - */ - com.google.cloud.domains.v1beta1.ContactSettings.Contact getTechnicalContact(); - /** - * - * - *
-   * Required. The technical contact for the `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1beta1.ContactSettings.ContactOrBuilder getTechnicalContactOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DeleteRegistrationRequest.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DeleteRegistrationRequest.java deleted file mode 100644 index d5065fb7..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DeleteRegistrationRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Request for the `DeleteRegistration` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.DeleteRegistrationRequest} - */ -public final class DeleteRegistrationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.DeleteRegistrationRequest) - DeleteRegistrationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteRegistrationRequest.newBuilder() to construct. - private DeleteRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteRegistrationRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteRegistrationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DeleteRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DeleteRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.DeleteRegistrationRequest.class, - com.google.cloud.domains.v1beta1.DeleteRegistrationRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the `Registration` to delete,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` to delete,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.DeleteRegistrationRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.DeleteRegistrationRequest other = - (com.google.cloud.domains.v1beta1.DeleteRegistrationRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.DeleteRegistrationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DeleteRegistrationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DeleteRegistrationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DeleteRegistrationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DeleteRegistrationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DeleteRegistrationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DeleteRegistrationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DeleteRegistrationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DeleteRegistrationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DeleteRegistrationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DeleteRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DeleteRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.DeleteRegistrationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `DeleteRegistration` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.DeleteRegistrationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.DeleteRegistrationRequest) - com.google.cloud.domains.v1beta1.DeleteRegistrationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DeleteRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DeleteRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.DeleteRegistrationRequest.class, - com.google.cloud.domains.v1beta1.DeleteRegistrationRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.DeleteRegistrationRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DeleteRegistrationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DeleteRegistrationRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.DeleteRegistrationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DeleteRegistrationRequest build() { - com.google.cloud.domains.v1beta1.DeleteRegistrationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DeleteRegistrationRequest buildPartial() { - com.google.cloud.domains.v1beta1.DeleteRegistrationRequest result = - new com.google.cloud.domains.v1beta1.DeleteRegistrationRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.DeleteRegistrationRequest) { - return mergeFrom((com.google.cloud.domains.v1beta1.DeleteRegistrationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.DeleteRegistrationRequest other) { - if (other == com.google.cloud.domains.v1beta1.DeleteRegistrationRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` to delete,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to delete,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to delete,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to delete,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to delete,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.DeleteRegistrationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.DeleteRegistrationRequest) - private static final com.google.cloud.domains.v1beta1.DeleteRegistrationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.DeleteRegistrationRequest(); - } - - public static com.google.cloud.domains.v1beta1.DeleteRegistrationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRegistrationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DeleteRegistrationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DeleteRegistrationRequestOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DeleteRegistrationRequestOrBuilder.java deleted file mode 100644 index 146a1856..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DeleteRegistrationRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface DeleteRegistrationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.DeleteRegistrationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` to delete,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the `Registration` to delete,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DnsSettings.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DnsSettings.java deleted file mode 100644 index 28f1d6aa..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DnsSettings.java +++ /dev/null @@ -1,8066 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Defines the DNS configuration of a `Registration`, including name servers,
- * DNSSEC, and glue records.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.DnsSettings} - */ -public final class DnsSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.DnsSettings) - DnsSettingsOrBuilder { - private static final long serialVersionUID = 0L; - // Use DnsSettings.newBuilder() to construct. - private DnsSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DnsSettings() { - glueRecords_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DnsSettings(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.DnsSettings.class, - com.google.cloud.domains.v1beta1.DnsSettings.Builder.class); - } - - /** - * - * - *
-   * The publication state of DS records for a `Registration`.
-   * 
- * - * Protobuf enum {@code google.cloud.domains.v1beta1.DnsSettings.DsState} - */ - public enum DsState implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * DS state is unspecified.
-     * 
- * - * DS_STATE_UNSPECIFIED = 0; - */ - DS_STATE_UNSPECIFIED(0), - /** - * - * - *
-     * DNSSEC is disabled for this domain. No DS records for this domain are
-     * published in the parent DNS zone.
-     * 
- * - * DS_RECORDS_UNPUBLISHED = 1; - */ - DS_RECORDS_UNPUBLISHED(1), - /** - * - * - *
-     * DNSSEC is enabled for this domain. Appropriate DS records for this domain
-     * are published in the parent DNS zone. This option is valid only if the
-     * DNS zone referenced in the `Registration`'s `dns_provider` field is
-     * already DNSSEC-signed.
-     * 
- * - * DS_RECORDS_PUBLISHED = 2; - */ - DS_RECORDS_PUBLISHED(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * DS state is unspecified.
-     * 
- * - * DS_STATE_UNSPECIFIED = 0; - */ - public static final int DS_STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * DNSSEC is disabled for this domain. No DS records for this domain are
-     * published in the parent DNS zone.
-     * 
- * - * DS_RECORDS_UNPUBLISHED = 1; - */ - public static final int DS_RECORDS_UNPUBLISHED_VALUE = 1; - /** - * - * - *
-     * DNSSEC is enabled for this domain. Appropriate DS records for this domain
-     * are published in the parent DNS zone. This option is valid only if the
-     * DNS zone referenced in the `Registration`'s `dns_provider` field is
-     * already DNSSEC-signed.
-     * 
- * - * DS_RECORDS_PUBLISHED = 2; - */ - public static final int DS_RECORDS_PUBLISHED_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 DsState 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 DsState forNumber(int value) { - switch (value) { - case 0: - return DS_STATE_UNSPECIFIED; - case 1: - return DS_RECORDS_UNPUBLISHED; - case 2: - return DS_RECORDS_PUBLISHED; - 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 DsState findValueByNumber(int number) { - return DsState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DnsSettings.getDescriptor().getEnumTypes().get(0); - } - - private static final DsState[] VALUES = values(); - - public static DsState 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 DsState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1beta1.DnsSettings.DsState) - } - - public interface CustomDnsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.DnsSettings.CustomDns) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the nameServers. - */ - java.util.List getNameServersList(); - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of nameServers. - */ - int getNameServersCount(); - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - java.lang.String getNameServers(int index); - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - com.google.protobuf.ByteString getNameServersBytes(int index); - - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - java.util.List getDsRecordsList(); - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord getDsRecords(int index); - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - int getDsRecordsCount(); - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - java.util.List - getDsRecordsOrBuilderList(); - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - com.google.cloud.domains.v1beta1.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder(int index); - } - /** - * - * - *
-   * Configuration for an arbitrary DNS provider.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.DnsSettings.CustomDns} - */ - public static final class CustomDns extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.DnsSettings.CustomDns) - CustomDnsOrBuilder { - private static final long serialVersionUID = 0L; - // Use CustomDns.newBuilder() to construct. - private CustomDns(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CustomDns() { - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - dsRecords_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CustomDns(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_CustomDns_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_CustomDns_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.class, - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.Builder.class); - } - - public static final int NAME_SERVERS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList nameServers_; - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_; - } - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-     * Required. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - - public static final int DS_RECORDS_FIELD_NUMBER = 2; - private java.util.List dsRecords_; - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - @java.lang.Override - public java.util.List - getDsRecordsList() { - return dsRecords_; - } - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - @java.lang.Override - public java.util.List - getDsRecordsOrBuilderList() { - return dsRecords_; - } - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - @java.lang.Override - public int getDsRecordsCount() { - return dsRecords_.size(); - } - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord getDsRecords(int index) { - return dsRecords_.get(index); - } - /** - * - * - *
-     * The list of DS records for this domain, which are used to enable DNSSEC.
-     * The domain's DNS provider can provide the values to set here. If this
-     * field is empty, DNSSEC is disabled.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder( - int index) { - return dsRecords_.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 < nameServers_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nameServers_.getRaw(i)); - } - for (int i = 0; i < dsRecords_.size(); i++) { - output.writeMessage(2, dsRecords_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < nameServers_.size(); i++) { - dataSize += computeStringSizeNoTag(nameServers_.getRaw(i)); - } - size += dataSize; - size += 1 * getNameServersList().size(); - } - for (int i = 0; i < dsRecords_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dsRecords_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.DnsSettings.CustomDns)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns other = - (com.google.cloud.domains.v1beta1.DnsSettings.CustomDns) obj; - - if (!getNameServersList().equals(other.getNameServersList())) return false; - if (!getDsRecordsList().equals(other.getDsRecordsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNameServersCount() > 0) { - hash = (37 * hash) + NAME_SERVERS_FIELD_NUMBER; - hash = (53 * hash) + getNameServersList().hashCode(); - } - if (getDsRecordsCount() > 0) { - hash = (37 * hash) + DS_RECORDS_FIELD_NUMBER; - hash = (53 * hash) + getDsRecordsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.CustomDns parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.CustomDns parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.CustomDns parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.CustomDns parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.CustomDns parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.CustomDns parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.CustomDns parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.CustomDns parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.CustomDns parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.CustomDns parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.CustomDns parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.CustomDns parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 an arbitrary DNS provider.
-     * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.DnsSettings.CustomDns} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.DnsSettings.CustomDns) - com.google.cloud.domains.v1beta1.DnsSettings.CustomDnsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_CustomDns_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_CustomDns_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.class, - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (dsRecordsBuilder_ == null) { - dsRecords_ = java.util.Collections.emptyList(); - } else { - dsRecords_ = null; - dsRecordsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_CustomDns_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.CustomDns getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.CustomDns build() { - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.CustomDns buildPartial() { - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns result = - new com.google.cloud.domains.v1beta1.DnsSettings.CustomDns(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - nameServers_ = nameServers_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nameServers_ = nameServers_; - if (dsRecordsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - dsRecords_ = java.util.Collections.unmodifiableList(dsRecords_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.dsRecords_ = dsRecords_; - } else { - result.dsRecords_ = dsRecordsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.DnsSettings.CustomDns) { - return mergeFrom((com.google.cloud.domains.v1beta1.DnsSettings.CustomDns) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.DnsSettings.CustomDns other) { - if (other == com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.getDefaultInstance()) - return this; - if (!other.nameServers_.isEmpty()) { - if (nameServers_.isEmpty()) { - nameServers_ = other.nameServers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNameServersIsMutable(); - nameServers_.addAll(other.nameServers_); - } - onChanged(); - } - if (dsRecordsBuilder_ == null) { - if (!other.dsRecords_.isEmpty()) { - if (dsRecords_.isEmpty()) { - dsRecords_ = other.dsRecords_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDsRecordsIsMutable(); - dsRecords_.addAll(other.dsRecords_); - } - onChanged(); - } - } else { - if (!other.dsRecords_.isEmpty()) { - if (dsRecordsBuilder_.isEmpty()) { - dsRecordsBuilder_.dispose(); - dsRecordsBuilder_ = null; - dsRecords_ = other.dsRecords_; - bitField0_ = (bitField0_ & ~0x00000002); - dsRecordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDsRecordsFieldBuilder() - : null; - } else { - dsRecordsBuilder_.addAllMessages(other.dsRecords_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureNameServersIsMutable(); - nameServers_.add(s); - break; - } // case 10 - case 18: - { - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord m = - input.readMessage( - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.parser(), - extensionRegistry); - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(m); - } else { - dsRecordsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList nameServers_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureNameServersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nameServers_ = new com.google.protobuf.LazyStringArrayList(nameServers_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_.getUnmodifiableView(); - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index to set the value at. - * @param value The nameServers to set. - * @return This builder for chaining. - */ - public Builder setNameServers(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServers(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param values The nameServers to add. - * @return This builder for chaining. - */ - public Builder addAllNameServers(java.lang.Iterable values) { - ensureNameServersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nameServers_); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearNameServers() { - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes of the nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServersBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - - private java.util.List dsRecords_ = - java.util.Collections.emptyList(); - - private void ensureDsRecordsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - dsRecords_ = - new java.util.ArrayList( - dsRecords_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecordOrBuilder> - dsRecordsBuilder_; - - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public java.util.List - getDsRecordsList() { - if (dsRecordsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dsRecords_); - } else { - return dsRecordsBuilder_.getMessageList(); - } - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public int getDsRecordsCount() { - if (dsRecordsBuilder_ == null) { - return dsRecords_.size(); - } else { - return dsRecordsBuilder_.getCount(); - } - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord getDsRecords(int index) { - if (dsRecordsBuilder_ == null) { - return dsRecords_.get(index); - } else { - return dsRecordsBuilder_.getMessage(index); - } - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder setDsRecords( - int index, com.google.cloud.domains.v1beta1.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.set(index, value); - onChanged(); - } else { - dsRecordsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder setDsRecords( - int index, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.set(index, builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder addDsRecords(com.google.cloud.domains.v1beta1.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.add(value); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder addDsRecords( - int index, com.google.cloud.domains.v1beta1.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.add(index, value); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder addDsRecords( - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder addDsRecords( - int index, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(index, builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder addAllDsRecords( - java.lang.Iterable - values) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dsRecords_); - onChanged(); - } else { - dsRecordsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder clearDsRecords() { - if (dsRecordsBuilder_ == null) { - dsRecords_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - dsRecordsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public Builder removeDsRecords(int index) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.remove(index); - onChanged(); - } else { - dsRecordsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder getDsRecordsBuilder( - int index) { - return getDsRecordsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder( - int index) { - if (dsRecordsBuilder_ == null) { - return dsRecords_.get(index); - } else { - return dsRecordsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public java.util.List< - ? extends com.google.cloud.domains.v1beta1.DnsSettings.DsRecordOrBuilder> - getDsRecordsOrBuilderList() { - if (dsRecordsBuilder_ != null) { - return dsRecordsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dsRecords_); - } - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder addDsRecordsBuilder() { - return getDsRecordsFieldBuilder() - .addBuilder(com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.getDefaultInstance()); - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder addDsRecordsBuilder( - int index) { - return getDsRecordsFieldBuilder() - .addBuilder( - index, com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.getDefaultInstance()); - } - /** - * - * - *
-       * The list of DS records for this domain, which are used to enable DNSSEC.
-       * The domain's DNS provider can provide the values to set here. If this
-       * field is empty, DNSSEC is disabled.
-       * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 2; - */ - public java.util.List - getDsRecordsBuilderList() { - return getDsRecordsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecordOrBuilder> - getDsRecordsFieldBuilder() { - if (dsRecordsBuilder_ == null) { - dsRecordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecordOrBuilder>( - dsRecords_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - dsRecords_ = null; - } - return dsRecordsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.DnsSettings.CustomDns) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.DnsSettings.CustomDns) - private static final com.google.cloud.domains.v1beta1.DnsSettings.CustomDns DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.DnsSettings.CustomDns(); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.CustomDns getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomDns parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.CustomDns getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface GoogleDomainsDnsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the nameServers. - */ - java.util.List getNameServersList(); - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of nameServers. - */ - int getNameServersCount(); - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - java.lang.String getNameServers(int index); - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - com.google.protobuf.ByteString getNameServersBytes(int index); - - /** - * - * - *
-     * Required. The state of DS records for this domain. Used to enable or disable
-     * automatic DNSSEC.
-     * 
- * - * - * .google.cloud.domains.v1beta1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for dsState. - */ - int getDsStateValue(); - /** - * - * - *
-     * Required. The state of DS records for this domain. Used to enable or disable
-     * automatic DNSSEC.
-     * 
- * - * - * .google.cloud.domains.v1beta1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dsState. - */ - com.google.cloud.domains.v1beta1.DnsSettings.DsState getDsState(); - - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getDsRecordsList(); - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord getDsRecords(int index); - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getDsRecordsCount(); - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getDsRecordsOrBuilderList(); - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.domains.v1beta1.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder(int index); - } - /** - * - * - *
-   * Configuration for using the free DNS zone provided by Google Domains as a
-   * `Registration`'s `dns_provider`. You cannot configure the DNS zone itself
-   * using the API. To configure the DNS zone, go to
-   * [Google Domains](https://domains.google/).
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns} - */ - public static final class GoogleDomainsDns extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns) - GoogleDomainsDnsOrBuilder { - private static final long serialVersionUID = 0L; - // Use GoogleDomainsDns.newBuilder() to construct. - private GoogleDomainsDns(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GoogleDomainsDns() { - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - dsState_ = 0; - dsRecords_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GoogleDomainsDns(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_GoogleDomainsDns_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_GoogleDomainsDns_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.class, - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.Builder.class); - } - - public static final int NAME_SERVERS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList nameServers_; - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_; - } - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-     * Output only. A list of name servers that store the DNS zone for this domain. Each name
-     * server is a domain name, with Unicode domain names expressed in
-     * Punycode format. This field is automatically populated with the name
-     * servers assigned to the Google Domains DNS zone.
-     * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - - public static final int DS_STATE_FIELD_NUMBER = 2; - private int dsState_; - /** - * - * - *
-     * Required. The state of DS records for this domain. Used to enable or disable
-     * automatic DNSSEC.
-     * 
- * - * - * .google.cloud.domains.v1beta1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for dsState. - */ - @java.lang.Override - public int getDsStateValue() { - return dsState_; - } - /** - * - * - *
-     * Required. The state of DS records for this domain. Used to enable or disable
-     * automatic DNSSEC.
-     * 
- * - * - * .google.cloud.domains.v1beta1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dsState. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.DsState getDsState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.DnsSettings.DsState result = - com.google.cloud.domains.v1beta1.DnsSettings.DsState.valueOf(dsState_); - return result == null - ? com.google.cloud.domains.v1beta1.DnsSettings.DsState.UNRECOGNIZED - : result; - } - - public static final int DS_RECORDS_FIELD_NUMBER = 3; - private java.util.List dsRecords_; - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getDsRecordsList() { - return dsRecords_; - } - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getDsRecordsOrBuilderList() { - return dsRecords_; - } - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getDsRecordsCount() { - return dsRecords_.size(); - } - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord getDsRecords(int index) { - return dsRecords_.get(index); - } - /** - * - * - *
-     * Output only. The list of DS records published for this domain. The list is
-     * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-     * otherwise it remains empty.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder( - int index) { - return dsRecords_.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 < nameServers_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nameServers_.getRaw(i)); - } - if (dsState_ - != com.google.cloud.domains.v1beta1.DnsSettings.DsState.DS_STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, dsState_); - } - for (int i = 0; i < dsRecords_.size(); i++) { - output.writeMessage(3, dsRecords_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < nameServers_.size(); i++) { - dataSize += computeStringSizeNoTag(nameServers_.getRaw(i)); - } - size += dataSize; - size += 1 * getNameServersList().size(); - } - if (dsState_ - != com.google.cloud.domains.v1beta1.DnsSettings.DsState.DS_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, dsState_); - } - for (int i = 0; i < dsRecords_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, dsRecords_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns other = - (com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns) obj; - - if (!getNameServersList().equals(other.getNameServersList())) return false; - if (dsState_ != other.dsState_) return false; - if (!getDsRecordsList().equals(other.getDsRecordsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNameServersCount() > 0) { - hash = (37 * hash) + NAME_SERVERS_FIELD_NUMBER; - hash = (53 * hash) + getNameServersList().hashCode(); - } - hash = (37 * hash) + DS_STATE_FIELD_NUMBER; - hash = (53 * hash) + dsState_; - if (getDsRecordsCount() > 0) { - hash = (37 * hash) + DS_RECORDS_FIELD_NUMBER; - hash = (53 * hash) + getDsRecordsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 using the free DNS zone provided by Google Domains as a
-     * `Registration`'s `dns_provider`. You cannot configure the DNS zone itself
-     * using the API. To configure the DNS zone, go to
-     * [Google Domains](https://domains.google/).
-     * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns) - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDnsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_GoogleDomainsDns_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_GoogleDomainsDns_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.class, - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - dsState_ = 0; - - if (dsRecordsBuilder_ == null) { - dsRecords_ = java.util.Collections.emptyList(); - } else { - dsRecords_ = null; - dsRecordsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_GoogleDomainsDns_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns - getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns build() { - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns buildPartial() { - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns result = - new com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - nameServers_ = nameServers_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nameServers_ = nameServers_; - result.dsState_ = dsState_; - if (dsRecordsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - dsRecords_ = java.util.Collections.unmodifiableList(dsRecords_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.dsRecords_ = dsRecords_; - } else { - result.dsRecords_ = dsRecordsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns) { - return mergeFrom((com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns other) { - if (other - == com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.getDefaultInstance()) - return this; - if (!other.nameServers_.isEmpty()) { - if (nameServers_.isEmpty()) { - nameServers_ = other.nameServers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNameServersIsMutable(); - nameServers_.addAll(other.nameServers_); - } - onChanged(); - } - if (other.dsState_ != 0) { - setDsStateValue(other.getDsStateValue()); - } - if (dsRecordsBuilder_ == null) { - if (!other.dsRecords_.isEmpty()) { - if (dsRecords_.isEmpty()) { - dsRecords_ = other.dsRecords_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDsRecordsIsMutable(); - dsRecords_.addAll(other.dsRecords_); - } - onChanged(); - } - } else { - if (!other.dsRecords_.isEmpty()) { - if (dsRecordsBuilder_.isEmpty()) { - dsRecordsBuilder_.dispose(); - dsRecordsBuilder_ = null; - dsRecords_ = other.dsRecords_; - bitField0_ = (bitField0_ & ~0x00000002); - dsRecordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDsRecordsFieldBuilder() - : null; - } else { - dsRecordsBuilder_.addAllMessages(other.dsRecords_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureNameServersIsMutable(); - nameServers_.add(s); - break; - } // case 10 - case 16: - { - dsState_ = input.readEnum(); - - break; - } // case 16 - case 26: - { - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord m = - input.readMessage( - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.parser(), - extensionRegistry); - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(m); - } else { - dsRecordsBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList nameServers_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureNameServersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nameServers_ = new com.google.protobuf.LazyStringArrayList(nameServers_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_.getUnmodifiableView(); - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index to set the value at. - * @param value The nameServers to set. - * @return This builder for chaining. - */ - public Builder setNameServers(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServers(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param values The nameServers to add. - * @return This builder for chaining. - */ - public Builder addAllNameServers(java.lang.Iterable values) { - ensureNameServersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nameServers_); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearNameServers() { - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A list of name servers that store the DNS zone for this domain. Each name
-       * server is a domain name, with Unicode domain names expressed in
-       * Punycode format. This field is automatically populated with the name
-       * servers assigned to the Google Domains DNS zone.
-       * 
- * - * repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes of the nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServersBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - - private int dsState_ = 0; - /** - * - * - *
-       * Required. The state of DS records for this domain. Used to enable or disable
-       * automatic DNSSEC.
-       * 
- * - * - * .google.cloud.domains.v1beta1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for dsState. - */ - @java.lang.Override - public int getDsStateValue() { - return dsState_; - } - /** - * - * - *
-       * Required. The state of DS records for this domain. Used to enable or disable
-       * automatic DNSSEC.
-       * 
- * - * - * .google.cloud.domains.v1beta1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for dsState to set. - * @return This builder for chaining. - */ - public Builder setDsStateValue(int value) { - - dsState_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Required. The state of DS records for this domain. Used to enable or disable
-       * automatic DNSSEC.
-       * 
- * - * - * .google.cloud.domains.v1beta1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dsState. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.DsState getDsState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.DnsSettings.DsState result = - com.google.cloud.domains.v1beta1.DnsSettings.DsState.valueOf(dsState_); - return result == null - ? com.google.cloud.domains.v1beta1.DnsSettings.DsState.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Required. The state of DS records for this domain. Used to enable or disable
-       * automatic DNSSEC.
-       * 
- * - * - * .google.cloud.domains.v1beta1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The dsState to set. - * @return This builder for chaining. - */ - public Builder setDsState(com.google.cloud.domains.v1beta1.DnsSettings.DsState value) { - if (value == null) { - throw new NullPointerException(); - } - - dsState_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. The state of DS records for this domain. Used to enable or disable
-       * automatic DNSSEC.
-       * 
- * - * - * .google.cloud.domains.v1beta1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearDsState() { - - dsState_ = 0; - onChanged(); - return this; - } - - private java.util.List dsRecords_ = - java.util.Collections.emptyList(); - - private void ensureDsRecordsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - dsRecords_ = - new java.util.ArrayList( - dsRecords_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecordOrBuilder> - dsRecordsBuilder_; - - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getDsRecordsList() { - if (dsRecordsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dsRecords_); - } else { - return dsRecordsBuilder_.getMessageList(); - } - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getDsRecordsCount() { - if (dsRecordsBuilder_ == null) { - return dsRecords_.size(); - } else { - return dsRecordsBuilder_.getCount(); - } - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord getDsRecords(int index) { - if (dsRecordsBuilder_ == null) { - return dsRecords_.get(index); - } else { - return dsRecordsBuilder_.getMessage(index); - } - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDsRecords( - int index, com.google.cloud.domains.v1beta1.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.set(index, value); - onChanged(); - } else { - dsRecordsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDsRecords( - int index, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.set(index, builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addDsRecords(com.google.cloud.domains.v1beta1.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.add(value); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addDsRecords( - int index, com.google.cloud.domains.v1beta1.DnsSettings.DsRecord value) { - if (dsRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDsRecordsIsMutable(); - dsRecords_.add(index, value); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addDsRecords( - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addDsRecords( - int index, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder builderForValue) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.add(index, builderForValue.build()); - onChanged(); - } else { - dsRecordsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllDsRecords( - java.lang.Iterable - values) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dsRecords_); - onChanged(); - } else { - dsRecordsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearDsRecords() { - if (dsRecordsBuilder_ == null) { - dsRecords_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - dsRecordsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeDsRecords(int index) { - if (dsRecordsBuilder_ == null) { - ensureDsRecordsIsMutable(); - dsRecords_.remove(index); - onChanged(); - } else { - dsRecordsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder getDsRecordsBuilder( - int index) { - return getDsRecordsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder( - int index) { - if (dsRecordsBuilder_ == null) { - return dsRecords_.get(index); - } else { - return dsRecordsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List< - ? extends com.google.cloud.domains.v1beta1.DnsSettings.DsRecordOrBuilder> - getDsRecordsOrBuilderList() { - if (dsRecordsBuilder_ != null) { - return dsRecordsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dsRecords_); - } - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder addDsRecordsBuilder() { - return getDsRecordsFieldBuilder() - .addBuilder(com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.getDefaultInstance()); - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder addDsRecordsBuilder( - int index) { - return getDsRecordsFieldBuilder() - .addBuilder( - index, com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.getDefaultInstance()); - } - /** - * - * - *
-       * Output only. The list of DS records published for this domain. The list is
-       * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
-       * otherwise it remains empty.
-       * 
- * - * - * repeated .google.cloud.domains.v1beta1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getDsRecordsBuilderList() { - return getDsRecordsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecordOrBuilder> - getDsRecordsFieldBuilder() { - if (dsRecordsBuilder_ == null) { - dsRecordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecordOrBuilder>( - dsRecords_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - dsRecords_ = null; - } - return dsRecordsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns) - private static final com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns(); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GoogleDomainsDns parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface DsRecordOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.DnsSettings.DsRecord) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The key tag of the record. Must be set in range 0 -- 65535.
-     * 
- * - * int32 key_tag = 1; - * - * @return The keyTag. - */ - int getKeyTag(); - - /** - * - * - *
-     * The algorithm used to generate the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The enum numeric value on the wire for algorithm. - */ - int getAlgorithmValue(); - /** - * - * - *
-     * The algorithm used to generate the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The algorithm. - */ - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm getAlgorithm(); - - /** - * - * - *
-     * The hash function used to generate the digest of the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return The enum numeric value on the wire for digestType. - */ - int getDigestTypeValue(); - /** - * - * - *
-     * The hash function used to generate the digest of the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return The digestType. - */ - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType getDigestType(); - - /** - * - * - *
-     * The digest generated from the referenced DNSKEY.
-     * 
- * - * string digest = 4; - * - * @return The digest. - */ - java.lang.String getDigest(); - /** - * - * - *
-     * The digest generated from the referenced DNSKEY.
-     * 
- * - * string digest = 4; - * - * @return The bytes for digest. - */ - com.google.protobuf.ByteString getDigestBytes(); - } - /** - * - * - *
-   * Defines a Delegation Signer (DS) record, which is needed to enable DNSSEC
-   * for a domain. It contains a digest (hash) of a DNSKEY record that must be
-   * present in the domain's DNS zone.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.DnsSettings.DsRecord} - */ - public static final class DsRecord extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.DnsSettings.DsRecord) - DsRecordOrBuilder { - private static final long serialVersionUID = 0L; - // Use DsRecord.newBuilder() to construct. - private DsRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DsRecord() { - algorithm_ = 0; - digestType_ = 0; - digest_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DsRecord(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_DsRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_DsRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.class, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder.class); - } - - /** - * - * - *
-     * List of algorithms used to create a DNSKEY. Certain
-     * algorithms are not supported for particular domains.
-     * 
- * - * Protobuf enum {@code google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm} - */ - public enum Algorithm implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * The algorithm is unspecified.
-       * 
- * - * ALGORITHM_UNSPECIFIED = 0; - */ - ALGORITHM_UNSPECIFIED(0), - /** - * - * - *
-       * RSA/MD5. Cannot be used for new deployments.
-       * 
- * - * RSAMD5 = 1; - */ - RSAMD5(1), - /** - * - * - *
-       * Diffie-Hellman. Cannot be used for new deployments.
-       * 
- * - * DH = 2; - */ - DH(2), - /** - * - * - *
-       * DSA/SHA1. Not recommended for new deployments.
-       * 
- * - * DSA = 3; - */ - DSA(3), - /** - * - * - *
-       * ECC. Not recommended for new deployments.
-       * 
- * - * ECC = 4; - */ - ECC(4), - /** - * - * - *
-       * RSA/SHA-1. Not recommended for new deployments.
-       * 
- * - * RSASHA1 = 5; - */ - RSASHA1(5), - /** - * - * - *
-       * DSA-NSEC3-SHA1. Not recommended for new deployments.
-       * 
- * - * DSANSEC3SHA1 = 6; - */ - DSANSEC3SHA1(6), - /** - * - * - *
-       * RSA/SHA1-NSEC3-SHA1. Not recommended for new deployments.
-       * 
- * - * RSASHA1NSEC3SHA1 = 7; - */ - RSASHA1NSEC3SHA1(7), - /** - * - * - *
-       * RSA/SHA-256.
-       * 
- * - * RSASHA256 = 8; - */ - RSASHA256(8), - /** - * - * - *
-       * RSA/SHA-512.
-       * 
- * - * RSASHA512 = 10; - */ - RSASHA512(10), - /** - * - * - *
-       * GOST R 34.10-2001.
-       * 
- * - * ECCGOST = 12; - */ - ECCGOST(12), - /** - * - * - *
-       * ECDSA Curve P-256 with SHA-256.
-       * 
- * - * ECDSAP256SHA256 = 13; - */ - ECDSAP256SHA256(13), - /** - * - * - *
-       * ECDSA Curve P-384 with SHA-384.
-       * 
- * - * ECDSAP384SHA384 = 14; - */ - ECDSAP384SHA384(14), - /** - * - * - *
-       * Ed25519.
-       * 
- * - * ED25519 = 15; - */ - ED25519(15), - /** - * - * - *
-       * Ed448.
-       * 
- * - * ED448 = 16; - */ - ED448(16), - /** - * - * - *
-       * Reserved for Indirect Keys. Cannot be used for new deployments.
-       * 
- * - * INDIRECT = 252; - */ - INDIRECT(252), - /** - * - * - *
-       * Private algorithm. Cannot be used for new deployments.
-       * 
- * - * PRIVATEDNS = 253; - */ - PRIVATEDNS(253), - /** - * - * - *
-       * Private algorithm OID. Cannot be used for new deployments.
-       * 
- * - * PRIVATEOID = 254; - */ - PRIVATEOID(254), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * The algorithm is unspecified.
-       * 
- * - * ALGORITHM_UNSPECIFIED = 0; - */ - public static final int ALGORITHM_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * RSA/MD5. Cannot be used for new deployments.
-       * 
- * - * RSAMD5 = 1; - */ - public static final int RSAMD5_VALUE = 1; - /** - * - * - *
-       * Diffie-Hellman. Cannot be used for new deployments.
-       * 
- * - * DH = 2; - */ - public static final int DH_VALUE = 2; - /** - * - * - *
-       * DSA/SHA1. Not recommended for new deployments.
-       * 
- * - * DSA = 3; - */ - public static final int DSA_VALUE = 3; - /** - * - * - *
-       * ECC. Not recommended for new deployments.
-       * 
- * - * ECC = 4; - */ - public static final int ECC_VALUE = 4; - /** - * - * - *
-       * RSA/SHA-1. Not recommended for new deployments.
-       * 
- * - * RSASHA1 = 5; - */ - public static final int RSASHA1_VALUE = 5; - /** - * - * - *
-       * DSA-NSEC3-SHA1. Not recommended for new deployments.
-       * 
- * - * DSANSEC3SHA1 = 6; - */ - public static final int DSANSEC3SHA1_VALUE = 6; - /** - * - * - *
-       * RSA/SHA1-NSEC3-SHA1. Not recommended for new deployments.
-       * 
- * - * RSASHA1NSEC3SHA1 = 7; - */ - public static final int RSASHA1NSEC3SHA1_VALUE = 7; - /** - * - * - *
-       * RSA/SHA-256.
-       * 
- * - * RSASHA256 = 8; - */ - public static final int RSASHA256_VALUE = 8; - /** - * - * - *
-       * RSA/SHA-512.
-       * 
- * - * RSASHA512 = 10; - */ - public static final int RSASHA512_VALUE = 10; - /** - * - * - *
-       * GOST R 34.10-2001.
-       * 
- * - * ECCGOST = 12; - */ - public static final int ECCGOST_VALUE = 12; - /** - * - * - *
-       * ECDSA Curve P-256 with SHA-256.
-       * 
- * - * ECDSAP256SHA256 = 13; - */ - public static final int ECDSAP256SHA256_VALUE = 13; - /** - * - * - *
-       * ECDSA Curve P-384 with SHA-384.
-       * 
- * - * ECDSAP384SHA384 = 14; - */ - public static final int ECDSAP384SHA384_VALUE = 14; - /** - * - * - *
-       * Ed25519.
-       * 
- * - * ED25519 = 15; - */ - public static final int ED25519_VALUE = 15; - /** - * - * - *
-       * Ed448.
-       * 
- * - * ED448 = 16; - */ - public static final int ED448_VALUE = 16; - /** - * - * - *
-       * Reserved for Indirect Keys. Cannot be used for new deployments.
-       * 
- * - * INDIRECT = 252; - */ - public static final int INDIRECT_VALUE = 252; - /** - * - * - *
-       * Private algorithm. Cannot be used for new deployments.
-       * 
- * - * PRIVATEDNS = 253; - */ - public static final int PRIVATEDNS_VALUE = 253; - /** - * - * - *
-       * Private algorithm OID. Cannot be used for new deployments.
-       * 
- * - * PRIVATEOID = 254; - */ - public static final int PRIVATEOID_VALUE = 254; - - 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 Algorithm 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 Algorithm forNumber(int value) { - switch (value) { - case 0: - return ALGORITHM_UNSPECIFIED; - case 1: - return RSAMD5; - case 2: - return DH; - case 3: - return DSA; - case 4: - return ECC; - case 5: - return RSASHA1; - case 6: - return DSANSEC3SHA1; - case 7: - return RSASHA1NSEC3SHA1; - case 8: - return RSASHA256; - case 10: - return RSASHA512; - case 12: - return ECCGOST; - case 13: - return ECDSAP256SHA256; - case 14: - return ECDSAP384SHA384; - case 15: - return ED25519; - case 16: - return ED448; - case 252: - return INDIRECT; - case 253: - return PRIVATEDNS; - case 254: - return PRIVATEOID; - 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 Algorithm findValueByNumber(int number) { - return Algorithm.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Algorithm[] VALUES = values(); - - public static Algorithm 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 Algorithm(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm) - } - - /** - * - * - *
-     * List of hash functions that may have been used to generate a digest of a
-     * DNSKEY.
-     * 
- * - * Protobuf enum {@code google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType} - */ - public enum DigestType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * The DigestType is unspecified.
-       * 
- * - * DIGEST_TYPE_UNSPECIFIED = 0; - */ - DIGEST_TYPE_UNSPECIFIED(0), - /** - * - * - *
-       * SHA-1. Not recommended for new deployments.
-       * 
- * - * SHA1 = 1; - */ - SHA1(1), - /** - * - * - *
-       * SHA-256.
-       * 
- * - * SHA256 = 2; - */ - SHA256(2), - /** - * - * - *
-       * GOST R 34.11-94.
-       * 
- * - * GOST3411 = 3; - */ - GOST3411(3), - /** - * - * - *
-       * SHA-384.
-       * 
- * - * SHA384 = 4; - */ - SHA384(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * The DigestType is unspecified.
-       * 
- * - * DIGEST_TYPE_UNSPECIFIED = 0; - */ - public static final int DIGEST_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * SHA-1. Not recommended for new deployments.
-       * 
- * - * SHA1 = 1; - */ - public static final int SHA1_VALUE = 1; - /** - * - * - *
-       * SHA-256.
-       * 
- * - * SHA256 = 2; - */ - public static final int SHA256_VALUE = 2; - /** - * - * - *
-       * GOST R 34.11-94.
-       * 
- * - * GOST3411 = 3; - */ - public static final int GOST3411_VALUE = 3; - /** - * - * - *
-       * SHA-384.
-       * 
- * - * SHA384 = 4; - */ - public static final int SHA384_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 DigestType 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 DigestType forNumber(int value) { - switch (value) { - case 0: - return DIGEST_TYPE_UNSPECIFIED; - case 1: - return SHA1; - case 2: - return SHA256; - case 3: - return GOST3411; - case 4: - return SHA384; - 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 DigestType findValueByNumber(int number) { - return DigestType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.getDescriptor() - .getEnumTypes() - .get(1); - } - - private static final DigestType[] VALUES = values(); - - public static DigestType 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 DigestType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType) - } - - public static final int KEY_TAG_FIELD_NUMBER = 1; - private int keyTag_; - /** - * - * - *
-     * The key tag of the record. Must be set in range 0 -- 65535.
-     * 
- * - * int32 key_tag = 1; - * - * @return The keyTag. - */ - @java.lang.Override - public int getKeyTag() { - return keyTag_; - } - - public static final int ALGORITHM_FIELD_NUMBER = 2; - private int algorithm_; - /** - * - * - *
-     * The algorithm used to generate the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The enum numeric value on the wire for algorithm. - */ - @java.lang.Override - public int getAlgorithmValue() { - return algorithm_; - } - /** - * - * - *
-     * The algorithm used to generate the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The algorithm. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm getAlgorithm() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm result = - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm.valueOf(algorithm_); - return result == null - ? com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm.UNRECOGNIZED - : result; - } - - public static final int DIGEST_TYPE_FIELD_NUMBER = 3; - private int digestType_; - /** - * - * - *
-     * The hash function used to generate the digest of the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return The enum numeric value on the wire for digestType. - */ - @java.lang.Override - public int getDigestTypeValue() { - return digestType_; - } - /** - * - * - *
-     * The hash function used to generate the digest of the referenced DNSKEY.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return The digestType. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType getDigestType() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType result = - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType.valueOf(digestType_); - return result == null - ? com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType.UNRECOGNIZED - : result; - } - - public static final int DIGEST_FIELD_NUMBER = 4; - private volatile java.lang.Object digest_; - /** - * - * - *
-     * The digest generated from the referenced DNSKEY.
-     * 
- * - * string digest = 4; - * - * @return The digest. - */ - @java.lang.Override - public java.lang.String getDigest() { - java.lang.Object ref = digest_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - digest_ = s; - return s; - } - } - /** - * - * - *
-     * The digest generated from the referenced DNSKEY.
-     * 
- * - * string digest = 4; - * - * @return The bytes for digest. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDigestBytes() { - java.lang.Object ref = digest_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - digest_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (keyTag_ != 0) { - output.writeInt32(1, keyTag_); - } - if (algorithm_ - != com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm.ALGORITHM_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, algorithm_); - } - if (digestType_ - != com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType - .DIGEST_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(3, digestType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(digest_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, digest_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (keyTag_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, keyTag_); - } - if (algorithm_ - != com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm.ALGORITHM_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, algorithm_); - } - if (digestType_ - != com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType - .DIGEST_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, digestType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(digest_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, digest_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.DnsSettings.DsRecord)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord other = - (com.google.cloud.domains.v1beta1.DnsSettings.DsRecord) obj; - - if (getKeyTag() != other.getKeyTag()) return false; - if (algorithm_ != other.algorithm_) return false; - if (digestType_ != other.digestType_) return false; - if (!getDigest().equals(other.getDigest())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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_TAG_FIELD_NUMBER; - hash = (53 * hash) + getKeyTag(); - hash = (37 * hash) + ALGORITHM_FIELD_NUMBER; - hash = (53 * hash) + algorithm_; - hash = (37 * hash) + DIGEST_TYPE_FIELD_NUMBER; - hash = (53 * hash) + digestType_; - hash = (37 * hash) + DIGEST_FIELD_NUMBER; - hash = (53 * hash) + getDigest().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.DsRecord parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.DsRecord parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.DsRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.DsRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.DsRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.DsRecord parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.DsRecord parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.DsRecord parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.DsRecord parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.DsRecord parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.DsRecord parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.DsRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Defines a Delegation Signer (DS) record, which is needed to enable DNSSEC
-     * for a domain. It contains a digest (hash) of a DNSKEY record that must be
-     * present in the domain's DNS zone.
-     * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.DnsSettings.DsRecord} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.DnsSettings.DsRecord) - com.google.cloud.domains.v1beta1.DnsSettings.DsRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_DsRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_DsRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.class, - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - keyTag_ = 0; - - algorithm_ = 0; - - digestType_ = 0; - - digest_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_DsRecord_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord build() { - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord buildPartial() { - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord result = - new com.google.cloud.domains.v1beta1.DnsSettings.DsRecord(this); - result.keyTag_ = keyTag_; - result.algorithm_ = algorithm_; - result.digestType_ = digestType_; - result.digest_ = digest_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.DnsSettings.DsRecord) { - return mergeFrom((com.google.cloud.domains.v1beta1.DnsSettings.DsRecord) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.DnsSettings.DsRecord other) { - if (other == com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.getDefaultInstance()) - return this; - if (other.getKeyTag() != 0) { - setKeyTag(other.getKeyTag()); - } - if (other.algorithm_ != 0) { - setAlgorithmValue(other.getAlgorithmValue()); - } - if (other.digestType_ != 0) { - setDigestTypeValue(other.getDigestTypeValue()); - } - if (!other.getDigest().isEmpty()) { - digest_ = other.digest_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - keyTag_ = input.readInt32(); - - break; - } // case 8 - case 16: - { - algorithm_ = input.readEnum(); - - break; - } // case 16 - case 24: - { - digestType_ = input.readEnum(); - - break; - } // case 24 - case 34: - { - digest_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int keyTag_; - /** - * - * - *
-       * The key tag of the record. Must be set in range 0 -- 65535.
-       * 
- * - * int32 key_tag = 1; - * - * @return The keyTag. - */ - @java.lang.Override - public int getKeyTag() { - return keyTag_; - } - /** - * - * - *
-       * The key tag of the record. Must be set in range 0 -- 65535.
-       * 
- * - * int32 key_tag = 1; - * - * @param value The keyTag to set. - * @return This builder for chaining. - */ - public Builder setKeyTag(int value) { - - keyTag_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The key tag of the record. Must be set in range 0 -- 65535.
-       * 
- * - * int32 key_tag = 1; - * - * @return This builder for chaining. - */ - public Builder clearKeyTag() { - - keyTag_ = 0; - onChanged(); - return this; - } - - private int algorithm_ = 0; - /** - * - * - *
-       * The algorithm used to generate the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The enum numeric value on the wire for algorithm. - */ - @java.lang.Override - public int getAlgorithmValue() { - return algorithm_; - } - /** - * - * - *
-       * The algorithm used to generate the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @param value The enum numeric value on the wire for algorithm to set. - * @return This builder for chaining. - */ - public Builder setAlgorithmValue(int value) { - - algorithm_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The algorithm used to generate the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return The algorithm. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm getAlgorithm() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm result = - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm.valueOf(algorithm_); - return result == null - ? com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * The algorithm used to generate the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @param value The algorithm to set. - * @return This builder for chaining. - */ - public Builder setAlgorithm( - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm value) { - if (value == null) { - throw new NullPointerException(); - } - - algorithm_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * The algorithm used to generate the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * - * @return This builder for chaining. - */ - public Builder clearAlgorithm() { - - algorithm_ = 0; - onChanged(); - return this; - } - - private int digestType_ = 0; - /** - * - * - *
-       * The hash function used to generate the digest of the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return The enum numeric value on the wire for digestType. - */ - @java.lang.Override - public int getDigestTypeValue() { - return digestType_; - } - /** - * - * - *
-       * The hash function used to generate the digest of the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @param value The enum numeric value on the wire for digestType to set. - * @return This builder for chaining. - */ - public Builder setDigestTypeValue(int value) { - - digestType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The hash function used to generate the digest of the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return The digestType. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType getDigestType() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType result = - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType.valueOf(digestType_); - return result == null - ? com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * The hash function used to generate the digest of the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @param value The digestType to set. - * @return This builder for chaining. - */ - public Builder setDigestType( - com.google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType value) { - if (value == null) { - throw new NullPointerException(); - } - - digestType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * The hash function used to generate the digest of the referenced DNSKEY.
-       * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.DsRecord.DigestType digest_type = 3; - * - * @return This builder for chaining. - */ - public Builder clearDigestType() { - - digestType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object digest_ = ""; - /** - * - * - *
-       * The digest generated from the referenced DNSKEY.
-       * 
- * - * string digest = 4; - * - * @return The digest. - */ - public java.lang.String getDigest() { - java.lang.Object ref = digest_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - digest_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The digest generated from the referenced DNSKEY.
-       * 
- * - * string digest = 4; - * - * @return The bytes for digest. - */ - public com.google.protobuf.ByteString getDigestBytes() { - java.lang.Object ref = digest_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - digest_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The digest generated from the referenced DNSKEY.
-       * 
- * - * string digest = 4; - * - * @param value The digest to set. - * @return This builder for chaining. - */ - public Builder setDigest(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - digest_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The digest generated from the referenced DNSKEY.
-       * 
- * - * string digest = 4; - * - * @return This builder for chaining. - */ - public Builder clearDigest() { - - digest_ = getDefaultInstance().getDigest(); - onChanged(); - return this; - } - /** - * - * - *
-       * The digest generated from the referenced DNSKEY.
-       * 
- * - * string digest = 4; - * - * @param value The bytes for digest to set. - * @return This builder for chaining. - */ - public Builder setDigestBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - digest_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.DnsSettings.DsRecord) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.DnsSettings.DsRecord) - private static final com.google.cloud.domains.v1beta1.DnsSettings.DsRecord DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.DnsSettings.DsRecord(); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.DsRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DsRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.DsRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface GlueRecordOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.DnsSettings.GlueRecord) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Required. Domain name of the host in Punycode format.
-     * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The hostName. - */ - java.lang.String getHostName(); - /** - * - * - *
-     * Required. Domain name of the host in Punycode format.
-     * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for hostName. - */ - com.google.protobuf.ByteString getHostNameBytes(); - - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @return A list containing the ipv4Addresses. - */ - java.util.List getIpv4AddressesList(); - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @return The count of ipv4Addresses. - */ - int getIpv4AddressesCount(); - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the element to return. - * @return The ipv4Addresses at the given index. - */ - java.lang.String getIpv4Addresses(int index); - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the value to return. - * @return The bytes of the ipv4Addresses at the given index. - */ - com.google.protobuf.ByteString getIpv4AddressesBytes(int index); - - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @return A list containing the ipv6Addresses. - */ - java.util.List getIpv6AddressesList(); - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @return The count of ipv6Addresses. - */ - int getIpv6AddressesCount(); - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the element to return. - * @return The ipv6Addresses at the given index. - */ - java.lang.String getIpv6Addresses(int index); - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the value to return. - * @return The bytes of the ipv6Addresses at the given index. - */ - com.google.protobuf.ByteString getIpv6AddressesBytes(int index); - } - /** - * - * - *
-   * Defines a host on your domain that is a DNS name server for your domain
-   * and/or other domains. Glue records are a way of making the IP address of a
-   * name server known, even when it serves DNS queries for its parent domain.
-   * For example, when `ns.example.com` is a name server for `example.com`, the
-   * host `ns.example.com` must have a glue record to break the circular DNS
-   * reference.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.DnsSettings.GlueRecord} - */ - public static final class GlueRecord extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.DnsSettings.GlueRecord) - GlueRecordOrBuilder { - private static final long serialVersionUID = 0L; - // Use GlueRecord.newBuilder() to construct. - private GlueRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GlueRecord() { - hostName_ = ""; - ipv4Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - ipv6Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GlueRecord(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_GlueRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_GlueRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.class, - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.Builder.class); - } - - public static final int HOST_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object hostName_; - /** - * - * - *
-     * Required. Domain name of the host in Punycode format.
-     * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The hostName. - */ - @java.lang.Override - public java.lang.String getHostName() { - java.lang.Object ref = hostName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hostName_ = s; - return s; - } - } - /** - * - * - *
-     * Required. Domain name of the host in Punycode format.
-     * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for hostName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getHostNameBytes() { - java.lang.Object ref = hostName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - hostName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IPV4_ADDRESSES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList ipv4Addresses_; - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @return A list containing the ipv4Addresses. - */ - public com.google.protobuf.ProtocolStringList getIpv4AddressesList() { - return ipv4Addresses_; - } - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @return The count of ipv4Addresses. - */ - public int getIpv4AddressesCount() { - return ipv4Addresses_.size(); - } - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the element to return. - * @return The ipv4Addresses at the given index. - */ - public java.lang.String getIpv4Addresses(int index) { - return ipv4Addresses_.get(index); - } - /** - * - * - *
-     * List of IPv4 addresses corresponding to this host in the standard decimal
-     * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-     * `ipv6_address` must be set.
-     * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the value to return. - * @return The bytes of the ipv4Addresses at the given index. - */ - public com.google.protobuf.ByteString getIpv4AddressesBytes(int index) { - return ipv4Addresses_.getByteString(index); - } - - public static final int IPV6_ADDRESSES_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList ipv6Addresses_; - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @return A list containing the ipv6Addresses. - */ - public com.google.protobuf.ProtocolStringList getIpv6AddressesList() { - return ipv6Addresses_; - } - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @return The count of ipv6Addresses. - */ - public int getIpv6AddressesCount() { - return ipv6Addresses_.size(); - } - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the element to return. - * @return The ipv6Addresses at the given index. - */ - public java.lang.String getIpv6Addresses(int index) { - return ipv6Addresses_.get(index); - } - /** - * - * - *
-     * List of IPv6 addresses corresponding to this host in the standard
-     * hexadecimal format (e.g. `2001:db8::`). At least one of
-     * `ipv4_address` and `ipv6_address` must be set.
-     * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the value to return. - * @return The bytes of the ipv6Addresses at the given index. - */ - public com.google.protobuf.ByteString getIpv6AddressesBytes(int index) { - return ipv6Addresses_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostName_); - } - for (int i = 0; i < ipv4Addresses_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipv4Addresses_.getRaw(i)); - } - for (int i = 0; i < ipv6Addresses_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipv6Addresses_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostName_); - } - { - int dataSize = 0; - for (int i = 0; i < ipv4Addresses_.size(); i++) { - dataSize += computeStringSizeNoTag(ipv4Addresses_.getRaw(i)); - } - size += dataSize; - size += 1 * getIpv4AddressesList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < ipv6Addresses_.size(); i++) { - dataSize += computeStringSizeNoTag(ipv6Addresses_.getRaw(i)); - } - size += dataSize; - size += 1 * getIpv6AddressesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord other = - (com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord) obj; - - if (!getHostName().equals(other.getHostName())) return false; - if (!getIpv4AddressesList().equals(other.getIpv4AddressesList())) return false; - if (!getIpv6AddressesList().equals(other.getIpv6AddressesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HOST_NAME_FIELD_NUMBER; - hash = (53 * hash) + getHostName().hashCode(); - if (getIpv4AddressesCount() > 0) { - hash = (37 * hash) + IPV4_ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + getIpv4AddressesList().hashCode(); - } - if (getIpv6AddressesCount() > 0) { - hash = (37 * hash) + IPV6_ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + getIpv6AddressesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Defines a host on your domain that is a DNS name server for your domain
-     * and/or other domains. Glue records are a way of making the IP address of a
-     * name server known, even when it serves DNS queries for its parent domain.
-     * For example, when `ns.example.com` is a name server for `example.com`, the
-     * host `ns.example.com` must have a glue record to break the circular DNS
-     * reference.
-     * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.DnsSettings.GlueRecord} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.DnsSettings.GlueRecord) - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_GlueRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_GlueRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.class, - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - hostName_ = ""; - - ipv4Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - ipv6Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_GlueRecord_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord build() { - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord buildPartial() { - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord result = - new com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord(this); - int from_bitField0_ = bitField0_; - result.hostName_ = hostName_; - if (((bitField0_ & 0x00000001) != 0)) { - ipv4Addresses_ = ipv4Addresses_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.ipv4Addresses_ = ipv4Addresses_; - if (((bitField0_ & 0x00000002) != 0)) { - ipv6Addresses_ = ipv6Addresses_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.ipv6Addresses_ = ipv6Addresses_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord) { - return mergeFrom((com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord other) { - if (other == com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.getDefaultInstance()) - return this; - if (!other.getHostName().isEmpty()) { - hostName_ = other.hostName_; - onChanged(); - } - if (!other.ipv4Addresses_.isEmpty()) { - if (ipv4Addresses_.isEmpty()) { - ipv4Addresses_ = other.ipv4Addresses_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIpv4AddressesIsMutable(); - ipv4Addresses_.addAll(other.ipv4Addresses_); - } - onChanged(); - } - if (!other.ipv6Addresses_.isEmpty()) { - if (ipv6Addresses_.isEmpty()) { - ipv6Addresses_ = other.ipv6Addresses_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureIpv6AddressesIsMutable(); - ipv6Addresses_.addAll(other.ipv6Addresses_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - hostName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpv4AddressesIsMutable(); - ipv4Addresses_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpv6AddressesIsMutable(); - ipv6Addresses_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object hostName_ = ""; - /** - * - * - *
-       * Required. Domain name of the host in Punycode format.
-       * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The hostName. - */ - public java.lang.String getHostName() { - java.lang.Object ref = hostName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hostName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Required. Domain name of the host in Punycode format.
-       * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for hostName. - */ - public com.google.protobuf.ByteString getHostNameBytes() { - java.lang.Object ref = hostName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - hostName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Required. Domain name of the host in Punycode format.
-       * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The hostName to set. - * @return This builder for chaining. - */ - public Builder setHostName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - hostName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Domain name of the host in Punycode format.
-       * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearHostName() { - - hostName_ = getDefaultInstance().getHostName(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Domain name of the host in Punycode format.
-       * 
- * - * string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for hostName to set. - * @return This builder for chaining. - */ - public Builder setHostNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - hostName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList ipv4Addresses_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureIpv4AddressesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - ipv4Addresses_ = new com.google.protobuf.LazyStringArrayList(ipv4Addresses_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @return A list containing the ipv4Addresses. - */ - public com.google.protobuf.ProtocolStringList getIpv4AddressesList() { - return ipv4Addresses_.getUnmodifiableView(); - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @return The count of ipv4Addresses. - */ - public int getIpv4AddressesCount() { - return ipv4Addresses_.size(); - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the element to return. - * @return The ipv4Addresses at the given index. - */ - public java.lang.String getIpv4Addresses(int index) { - return ipv4Addresses_.get(index); - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index of the value to return. - * @return The bytes of the ipv4Addresses at the given index. - */ - public com.google.protobuf.ByteString getIpv4AddressesBytes(int index) { - return ipv4Addresses_.getByteString(index); - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param index The index to set the value at. - * @param value The ipv4Addresses to set. - * @return This builder for chaining. - */ - public Builder setIpv4Addresses(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIpv4AddressesIsMutable(); - ipv4Addresses_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param value The ipv4Addresses to add. - * @return This builder for chaining. - */ - public Builder addIpv4Addresses(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIpv4AddressesIsMutable(); - ipv4Addresses_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param values The ipv4Addresses to add. - * @return This builder for chaining. - */ - public Builder addAllIpv4Addresses(java.lang.Iterable values) { - ensureIpv4AddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipv4Addresses_); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @return This builder for chaining. - */ - public Builder clearIpv4Addresses() { - ipv4Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv4 addresses corresponding to this host in the standard decimal
-       * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
-       * `ipv6_address` must be set.
-       * 
- * - * repeated string ipv4_addresses = 2; - * - * @param value The bytes of the ipv4Addresses to add. - * @return This builder for chaining. - */ - public Builder addIpv4AddressesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIpv4AddressesIsMutable(); - ipv4Addresses_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList ipv6Addresses_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureIpv6AddressesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - ipv6Addresses_ = new com.google.protobuf.LazyStringArrayList(ipv6Addresses_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @return A list containing the ipv6Addresses. - */ - public com.google.protobuf.ProtocolStringList getIpv6AddressesList() { - return ipv6Addresses_.getUnmodifiableView(); - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @return The count of ipv6Addresses. - */ - public int getIpv6AddressesCount() { - return ipv6Addresses_.size(); - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the element to return. - * @return The ipv6Addresses at the given index. - */ - public java.lang.String getIpv6Addresses(int index) { - return ipv6Addresses_.get(index); - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index of the value to return. - * @return The bytes of the ipv6Addresses at the given index. - */ - public com.google.protobuf.ByteString getIpv6AddressesBytes(int index) { - return ipv6Addresses_.getByteString(index); - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param index The index to set the value at. - * @param value The ipv6Addresses to set. - * @return This builder for chaining. - */ - public Builder setIpv6Addresses(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIpv6AddressesIsMutable(); - ipv6Addresses_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param value The ipv6Addresses to add. - * @return This builder for chaining. - */ - public Builder addIpv6Addresses(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIpv6AddressesIsMutable(); - ipv6Addresses_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param values The ipv6Addresses to add. - * @return This builder for chaining. - */ - public Builder addAllIpv6Addresses(java.lang.Iterable values) { - ensureIpv6AddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipv6Addresses_); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @return This builder for chaining. - */ - public Builder clearIpv6Addresses() { - ipv6Addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-       * List of IPv6 addresses corresponding to this host in the standard
-       * hexadecimal format (e.g. `2001:db8::`). At least one of
-       * `ipv4_address` and `ipv6_address` must be set.
-       * 
- * - * repeated string ipv6_addresses = 3; - * - * @param value The bytes of the ipv6Addresses to add. - * @return This builder for chaining. - */ - public Builder addIpv6AddressesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIpv6AddressesIsMutable(); - ipv6Addresses_.add(value); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.DnsSettings.GlueRecord) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.DnsSettings.GlueRecord) - private static final com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord(); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GlueRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int dnsProviderCase_ = 0; - private java.lang.Object dnsProvider_; - - public enum DnsProviderCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CUSTOM_DNS(1), - GOOGLE_DOMAINS_DNS(2), - DNSPROVIDER_NOT_SET(0); - private final int value; - - private DnsProviderCase(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 DnsProviderCase valueOf(int value) { - return forNumber(value); - } - - public static DnsProviderCase forNumber(int value) { - switch (value) { - case 1: - return CUSTOM_DNS; - case 2: - return GOOGLE_DOMAINS_DNS; - case 0: - return DNSPROVIDER_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public DnsProviderCase getDnsProviderCase() { - return DnsProviderCase.forNumber(dnsProviderCase_); - } - - public static final int CUSTOM_DNS_FIELD_NUMBER = 1; - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.CustomDns custom_dns = 1; - * - * @return Whether the customDns field is set. - */ - @java.lang.Override - public boolean hasCustomDns() { - return dnsProviderCase_ == 1; - } - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.CustomDns custom_dns = 1; - * - * @return The customDns. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.CustomDns getCustomDns() { - if (dnsProviderCase_ == 1) { - return (com.google.cloud.domains.v1beta1.DnsSettings.CustomDns) dnsProvider_; - } - return com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.getDefaultInstance(); - } - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.CustomDns custom_dns = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.CustomDnsOrBuilder getCustomDnsOrBuilder() { - if (dnsProviderCase_ == 1) { - return (com.google.cloud.domains.v1beta1.DnsSettings.CustomDns) dnsProvider_; - } - return com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.getDefaultInstance(); - } - - public static final int GOOGLE_DOMAINS_DNS_FIELD_NUMBER = 2; - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * @return Whether the googleDomainsDns field is set. - */ - @java.lang.Override - public boolean hasGoogleDomainsDns() { - return dnsProviderCase_ == 2; - } - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * @return The googleDomainsDns. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns getGoogleDomainsDns() { - if (dnsProviderCase_ == 2) { - return (com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns) dnsProvider_; - } - return com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDnsOrBuilder - getGoogleDomainsDnsOrBuilder() { - if (dnsProviderCase_ == 2) { - return (com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns) dnsProvider_; - } - return com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - - public static final int GLUE_RECORDS_FIELD_NUMBER = 4; - private java.util.List glueRecords_; - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - @java.lang.Override - public java.util.List - getGlueRecordsList() { - return glueRecords_; - } - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - @java.lang.Override - public java.util.List - getGlueRecordsOrBuilderList() { - return glueRecords_; - } - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - @java.lang.Override - public int getGlueRecordsCount() { - return glueRecords_.size(); - } - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord getGlueRecords(int index) { - return glueRecords_.get(index); - } - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.GlueRecordOrBuilder getGlueRecordsOrBuilder( - int index) { - return glueRecords_.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 (dnsProviderCase_ == 1) { - output.writeMessage(1, (com.google.cloud.domains.v1beta1.DnsSettings.CustomDns) dnsProvider_); - } - if (dnsProviderCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns) dnsProvider_); - } - for (int i = 0; i < glueRecords_.size(); i++) { - output.writeMessage(4, glueRecords_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dnsProviderCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.domains.v1beta1.DnsSettings.CustomDns) dnsProvider_); - } - if (dnsProviderCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns) dnsProvider_); - } - for (int i = 0; i < glueRecords_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, glueRecords_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.DnsSettings)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.DnsSettings other = - (com.google.cloud.domains.v1beta1.DnsSettings) obj; - - if (!getGlueRecordsList().equals(other.getGlueRecordsList())) return false; - if (!getDnsProviderCase().equals(other.getDnsProviderCase())) return false; - switch (dnsProviderCase_) { - case 1: - if (!getCustomDns().equals(other.getCustomDns())) return false; - break; - case 2: - if (!getGoogleDomainsDns().equals(other.getGoogleDomainsDns())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getGlueRecordsCount() > 0) { - hash = (37 * hash) + GLUE_RECORDS_FIELD_NUMBER; - hash = (53 * hash) + getGlueRecordsList().hashCode(); - } - switch (dnsProviderCase_) { - case 1: - hash = (37 * hash) + CUSTOM_DNS_FIELD_NUMBER; - hash = (53 * hash) + getCustomDns().hashCode(); - break; - case 2: - hash = (37 * hash) + GOOGLE_DOMAINS_DNS_FIELD_NUMBER; - hash = (53 * hash) + getGoogleDomainsDns().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.DnsSettings parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1beta1.DnsSettings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Defines the DNS configuration of a `Registration`, including name servers,
-   * DNSSEC, and glue records.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.DnsSettings} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.DnsSettings) - com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.DnsSettings.class, - com.google.cloud.domains.v1beta1.DnsSettings.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.DnsSettings.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (customDnsBuilder_ != null) { - customDnsBuilder_.clear(); - } - if (googleDomainsDnsBuilder_ != null) { - googleDomainsDnsBuilder_.clear(); - } - if (glueRecordsBuilder_ == null) { - glueRecords_ = java.util.Collections.emptyList(); - } else { - glueRecords_ = null; - glueRecordsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - dnsProviderCase_ = 0; - dnsProvider_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_DnsSettings_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.DnsSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings build() { - com.google.cloud.domains.v1beta1.DnsSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings buildPartial() { - com.google.cloud.domains.v1beta1.DnsSettings result = - new com.google.cloud.domains.v1beta1.DnsSettings(this); - int from_bitField0_ = bitField0_; - if (dnsProviderCase_ == 1) { - if (customDnsBuilder_ == null) { - result.dnsProvider_ = dnsProvider_; - } else { - result.dnsProvider_ = customDnsBuilder_.build(); - } - } - if (dnsProviderCase_ == 2) { - if (googleDomainsDnsBuilder_ == null) { - result.dnsProvider_ = dnsProvider_; - } else { - result.dnsProvider_ = googleDomainsDnsBuilder_.build(); - } - } - if (glueRecordsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - glueRecords_ = java.util.Collections.unmodifiableList(glueRecords_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.glueRecords_ = glueRecords_; - } else { - result.glueRecords_ = glueRecordsBuilder_.build(); - } - result.dnsProviderCase_ = dnsProviderCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.DnsSettings) { - return mergeFrom((com.google.cloud.domains.v1beta1.DnsSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.DnsSettings other) { - if (other == com.google.cloud.domains.v1beta1.DnsSettings.getDefaultInstance()) return this; - if (glueRecordsBuilder_ == null) { - if (!other.glueRecords_.isEmpty()) { - if (glueRecords_.isEmpty()) { - glueRecords_ = other.glueRecords_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureGlueRecordsIsMutable(); - glueRecords_.addAll(other.glueRecords_); - } - onChanged(); - } - } else { - if (!other.glueRecords_.isEmpty()) { - if (glueRecordsBuilder_.isEmpty()) { - glueRecordsBuilder_.dispose(); - glueRecordsBuilder_ = null; - glueRecords_ = other.glueRecords_; - bitField0_ = (bitField0_ & ~0x00000001); - glueRecordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGlueRecordsFieldBuilder() - : null; - } else { - glueRecordsBuilder_.addAllMessages(other.glueRecords_); - } - } - } - switch (other.getDnsProviderCase()) { - case CUSTOM_DNS: - { - mergeCustomDns(other.getCustomDns()); - break; - } - case GOOGLE_DOMAINS_DNS: - { - mergeGoogleDomainsDns(other.getGoogleDomainsDns()); - break; - } - case DNSPROVIDER_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getCustomDnsFieldBuilder().getBuilder(), extensionRegistry); - dnsProviderCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - getGoogleDomainsDnsFieldBuilder().getBuilder(), extensionRegistry); - dnsProviderCase_ = 2; - break; - } // case 18 - case 34: - { - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord m = - input.readMessage( - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.parser(), - extensionRegistry); - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - glueRecords_.add(m); - } else { - glueRecordsBuilder_.addMessage(m); - } - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int dnsProviderCase_ = 0; - private java.lang.Object dnsProvider_; - - public DnsProviderCase getDnsProviderCase() { - return DnsProviderCase.forNumber(dnsProviderCase_); - } - - public Builder clearDnsProvider() { - dnsProviderCase_ = 0; - dnsProvider_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns, - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.Builder, - com.google.cloud.domains.v1beta1.DnsSettings.CustomDnsOrBuilder> - customDnsBuilder_; - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.CustomDns custom_dns = 1; - * - * @return Whether the customDns field is set. - */ - @java.lang.Override - public boolean hasCustomDns() { - return dnsProviderCase_ == 1; - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.CustomDns custom_dns = 1; - * - * @return The customDns. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.CustomDns getCustomDns() { - if (customDnsBuilder_ == null) { - if (dnsProviderCase_ == 1) { - return (com.google.cloud.domains.v1beta1.DnsSettings.CustomDns) dnsProvider_; - } - return com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.getDefaultInstance(); - } else { - if (dnsProviderCase_ == 1) { - return customDnsBuilder_.getMessage(); - } - return com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.getDefaultInstance(); - } - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.CustomDns custom_dns = 1; - */ - public Builder setCustomDns(com.google.cloud.domains.v1beta1.DnsSettings.CustomDns value) { - if (customDnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsProvider_ = value; - onChanged(); - } else { - customDnsBuilder_.setMessage(value); - } - dnsProviderCase_ = 1; - return this; - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.CustomDns custom_dns = 1; - */ - public Builder setCustomDns( - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.Builder builderForValue) { - if (customDnsBuilder_ == null) { - dnsProvider_ = builderForValue.build(); - onChanged(); - } else { - customDnsBuilder_.setMessage(builderForValue.build()); - } - dnsProviderCase_ = 1; - return this; - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.CustomDns custom_dns = 1; - */ - public Builder mergeCustomDns(com.google.cloud.domains.v1beta1.DnsSettings.CustomDns value) { - if (customDnsBuilder_ == null) { - if (dnsProviderCase_ == 1 - && dnsProvider_ - != com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.getDefaultInstance()) { - dnsProvider_ = - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.newBuilder( - (com.google.cloud.domains.v1beta1.DnsSettings.CustomDns) dnsProvider_) - .mergeFrom(value) - .buildPartial(); - } else { - dnsProvider_ = value; - } - onChanged(); - } else { - if (dnsProviderCase_ == 1) { - customDnsBuilder_.mergeFrom(value); - } else { - customDnsBuilder_.setMessage(value); - } - } - dnsProviderCase_ = 1; - return this; - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.CustomDns custom_dns = 1; - */ - public Builder clearCustomDns() { - if (customDnsBuilder_ == null) { - if (dnsProviderCase_ == 1) { - dnsProviderCase_ = 0; - dnsProvider_ = null; - onChanged(); - } - } else { - if (dnsProviderCase_ == 1) { - dnsProviderCase_ = 0; - dnsProvider_ = null; - } - customDnsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.CustomDns custom_dns = 1; - */ - public com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.Builder getCustomDnsBuilder() { - return getCustomDnsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.CustomDns custom_dns = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.CustomDnsOrBuilder getCustomDnsOrBuilder() { - if ((dnsProviderCase_ == 1) && (customDnsBuilder_ != null)) { - return customDnsBuilder_.getMessageOrBuilder(); - } else { - if (dnsProviderCase_ == 1) { - return (com.google.cloud.domains.v1beta1.DnsSettings.CustomDns) dnsProvider_; - } - return com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.getDefaultInstance(); - } - } - /** - * - * - *
-     * An arbitrary DNS provider identified by its name servers.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.CustomDns custom_dns = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns, - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.Builder, - com.google.cloud.domains.v1beta1.DnsSettings.CustomDnsOrBuilder> - getCustomDnsFieldBuilder() { - if (customDnsBuilder_ == null) { - if (!(dnsProviderCase_ == 1)) { - dnsProvider_ = - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.getDefaultInstance(); - } - customDnsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns, - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns.Builder, - com.google.cloud.domains.v1beta1.DnsSettings.CustomDnsOrBuilder>( - (com.google.cloud.domains.v1beta1.DnsSettings.CustomDns) dnsProvider_, - getParentForChildren(), - isClean()); - dnsProvider_ = null; - } - dnsProviderCase_ = 1; - onChanged(); - ; - return customDnsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns, - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.Builder, - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDnsOrBuilder> - googleDomainsDnsBuilder_; - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * - * @return Whether the googleDomainsDns field is set. - */ - @java.lang.Override - public boolean hasGoogleDomainsDns() { - return dnsProviderCase_ == 2; - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * - * @return The googleDomainsDns. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns getGoogleDomainsDns() { - if (googleDomainsDnsBuilder_ == null) { - if (dnsProviderCase_ == 2) { - return (com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns) dnsProvider_; - } - return com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } else { - if (dnsProviderCase_ == 2) { - return googleDomainsDnsBuilder_.getMessage(); - } - return com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - */ - public Builder setGoogleDomainsDns( - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns value) { - if (googleDomainsDnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsProvider_ = value; - onChanged(); - } else { - googleDomainsDnsBuilder_.setMessage(value); - } - dnsProviderCase_ = 2; - return this; - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - */ - public Builder setGoogleDomainsDns( - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.Builder builderForValue) { - if (googleDomainsDnsBuilder_ == null) { - dnsProvider_ = builderForValue.build(); - onChanged(); - } else { - googleDomainsDnsBuilder_.setMessage(builderForValue.build()); - } - dnsProviderCase_ = 2; - return this; - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - */ - public Builder mergeGoogleDomainsDns( - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns value) { - if (googleDomainsDnsBuilder_ == null) { - if (dnsProviderCase_ == 2 - && dnsProvider_ - != com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns - .getDefaultInstance()) { - dnsProvider_ = - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.newBuilder( - (com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns) dnsProvider_) - .mergeFrom(value) - .buildPartial(); - } else { - dnsProvider_ = value; - } - onChanged(); - } else { - if (dnsProviderCase_ == 2) { - googleDomainsDnsBuilder_.mergeFrom(value); - } else { - googleDomainsDnsBuilder_.setMessage(value); - } - } - dnsProviderCase_ = 2; - return this; - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - */ - public Builder clearGoogleDomainsDns() { - if (googleDomainsDnsBuilder_ == null) { - if (dnsProviderCase_ == 2) { - dnsProviderCase_ = 0; - dnsProvider_ = null; - onChanged(); - } - } else { - if (dnsProviderCase_ == 2) { - dnsProviderCase_ = 0; - dnsProvider_ = null; - } - googleDomainsDnsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - */ - public com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.Builder - getGoogleDomainsDnsBuilder() { - return getGoogleDomainsDnsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDnsOrBuilder - getGoogleDomainsDnsOrBuilder() { - if ((dnsProviderCase_ == 2) && (googleDomainsDnsBuilder_ != null)) { - return googleDomainsDnsBuilder_.getMessageOrBuilder(); - } else { - if (dnsProviderCase_ == 2) { - return (com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns) dnsProvider_; - } - return com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - } - /** - * - * - *
-     * The free DNS zone provided by
-     * [Google Domains](https://domains.google/).
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns, - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.Builder, - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDnsOrBuilder> - getGoogleDomainsDnsFieldBuilder() { - if (googleDomainsDnsBuilder_ == null) { - if (!(dnsProviderCase_ == 2)) { - dnsProvider_ = - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.getDefaultInstance(); - } - googleDomainsDnsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns, - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns.Builder, - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDnsOrBuilder>( - (com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns) dnsProvider_, - getParentForChildren(), - isClean()); - dnsProvider_ = null; - } - dnsProviderCase_ = 2; - onChanged(); - ; - return googleDomainsDnsBuilder_; - } - - private java.util.List glueRecords_ = - java.util.Collections.emptyList(); - - private void ensureGlueRecordsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - glueRecords_ = - new java.util.ArrayList( - glueRecords_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord, - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.Builder, - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecordOrBuilder> - glueRecordsBuilder_; - - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public java.util.List - getGlueRecordsList() { - if (glueRecordsBuilder_ == null) { - return java.util.Collections.unmodifiableList(glueRecords_); - } else { - return glueRecordsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public int getGlueRecordsCount() { - if (glueRecordsBuilder_ == null) { - return glueRecords_.size(); - } else { - return glueRecordsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord getGlueRecords(int index) { - if (glueRecordsBuilder_ == null) { - return glueRecords_.get(index); - } else { - return glueRecordsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder setGlueRecords( - int index, com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord value) { - if (glueRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGlueRecordsIsMutable(); - glueRecords_.set(index, value); - onChanged(); - } else { - glueRecordsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder setGlueRecords( - int index, - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.Builder builderForValue) { - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - glueRecords_.set(index, builderForValue.build()); - onChanged(); - } else { - glueRecordsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder addGlueRecords(com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord value) { - if (glueRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGlueRecordsIsMutable(); - glueRecords_.add(value); - onChanged(); - } else { - glueRecordsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder addGlueRecords( - int index, com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord value) { - if (glueRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGlueRecordsIsMutable(); - glueRecords_.add(index, value); - onChanged(); - } else { - glueRecordsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder addGlueRecords( - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.Builder builderForValue) { - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - glueRecords_.add(builderForValue.build()); - onChanged(); - } else { - glueRecordsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder addGlueRecords( - int index, - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.Builder builderForValue) { - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - glueRecords_.add(index, builderForValue.build()); - onChanged(); - } else { - glueRecordsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder addAllGlueRecords( - java.lang.Iterable - values) { - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glueRecords_); - onChanged(); - } else { - glueRecordsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder clearGlueRecords() { - if (glueRecordsBuilder_ == null) { - glueRecords_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - glueRecordsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public Builder removeGlueRecords(int index) { - if (glueRecordsBuilder_ == null) { - ensureGlueRecordsIsMutable(); - glueRecords_.remove(index); - onChanged(); - } else { - glueRecordsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.Builder getGlueRecordsBuilder( - int index) { - return getGlueRecordsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public com.google.cloud.domains.v1beta1.DnsSettings.GlueRecordOrBuilder getGlueRecordsOrBuilder( - int index) { - if (glueRecordsBuilder_ == null) { - return glueRecords_.get(index); - } else { - return glueRecordsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public java.util.List< - ? extends com.google.cloud.domains.v1beta1.DnsSettings.GlueRecordOrBuilder> - getGlueRecordsOrBuilderList() { - if (glueRecordsBuilder_ != null) { - return glueRecordsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(glueRecords_); - } - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.Builder addGlueRecordsBuilder() { - return getGlueRecordsFieldBuilder() - .addBuilder(com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.getDefaultInstance()); - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.Builder addGlueRecordsBuilder( - int index) { - return getGlueRecordsFieldBuilder() - .addBuilder( - index, com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.getDefaultInstance()); - } - /** - * - * - *
-     * The list of glue records for this `Registration`. Commonly empty.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - public java.util.List - getGlueRecordsBuilderList() { - return getGlueRecordsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord, - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.Builder, - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecordOrBuilder> - getGlueRecordsFieldBuilder() { - if (glueRecordsBuilder_ == null) { - glueRecordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord, - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord.Builder, - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecordOrBuilder>( - glueRecords_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - glueRecords_ = null; - } - return glueRecordsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.DnsSettings) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.DnsSettings) - private static final com.google.cloud.domains.v1beta1.DnsSettings DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.DnsSettings(); - } - - public static com.google.cloud.domains.v1beta1.DnsSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DnsSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DnsSettingsOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DnsSettingsOrBuilder.java deleted file mode 100644 index e8a7f599..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DnsSettingsOrBuilder.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface DnsSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.DnsSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.CustomDns custom_dns = 1; - * - * @return Whether the customDns field is set. - */ - boolean hasCustomDns(); - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.CustomDns custom_dns = 1; - * - * @return The customDns. - */ - com.google.cloud.domains.v1beta1.DnsSettings.CustomDns getCustomDns(); - /** - * - * - *
-   * An arbitrary DNS provider identified by its name servers.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.CustomDns custom_dns = 1; - */ - com.google.cloud.domains.v1beta1.DnsSettings.CustomDnsOrBuilder getCustomDnsOrBuilder(); - - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * @return Whether the googleDomainsDns field is set. - */ - boolean hasGoogleDomainsDns(); - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * - * @return The googleDomainsDns. - */ - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns getGoogleDomainsDns(); - /** - * - * - *
-   * The free DNS zone provided by
-   * [Google Domains](https://domains.google/).
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - */ - com.google.cloud.domains.v1beta1.DnsSettings.GoogleDomainsDnsOrBuilder - getGoogleDomainsDnsOrBuilder(); - - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - java.util.List getGlueRecordsList(); - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecord getGlueRecords(int index); - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - int getGlueRecordsCount(); - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - java.util.List - getGlueRecordsOrBuilderList(); - /** - * - * - *
-   * The list of glue records for this `Registration`. Commonly empty.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DnsSettings.GlueRecord glue_records = 4; - */ - com.google.cloud.domains.v1beta1.DnsSettings.GlueRecordOrBuilder getGlueRecordsOrBuilder( - int index); - - public com.google.cloud.domains.v1beta1.DnsSettings.DnsProviderCase getDnsProviderCase(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DomainNotice.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DomainNotice.java deleted file mode 100644 index 6baf8fd0..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DomainNotice.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Notices about special properties of certain domains.
- * 
- * - * Protobuf enum {@code google.cloud.domains.v1beta1.DomainNotice} - */ -public enum DomainNotice implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * The notice is undefined.
-   * 
- * - * DOMAIN_NOTICE_UNSPECIFIED = 0; - */ - DOMAIN_NOTICE_UNSPECIFIED(0), - /** - * - * - *
-   * Indicates that the domain is preloaded on the HTTP Strict Transport
-   * Security list in browsers. Serving a website on such domain requires
-   * an SSL certificate. For details, see
-   * [how to get an SSL
-   * certificate](https://support.google.com/domains/answer/7638036).
-   * 
- * - * HSTS_PRELOADED = 1; - */ - HSTS_PRELOADED(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * The notice is undefined.
-   * 
- * - * DOMAIN_NOTICE_UNSPECIFIED = 0; - */ - public static final int DOMAIN_NOTICE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Indicates that the domain is preloaded on the HTTP Strict Transport
-   * Security list in browsers. Serving a website on such domain requires
-   * an SSL certificate. For details, see
-   * [how to get an SSL
-   * certificate](https://support.google.com/domains/answer/7638036).
-   * 
- * - * HSTS_PRELOADED = 1; - */ - public static final int HSTS_PRELOADED_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 DomainNotice 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 DomainNotice forNumber(int value) { - switch (value) { - case 0: - return DOMAIN_NOTICE_UNSPECIFIED; - case 1: - return HSTS_PRELOADED; - 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 DomainNotice findValueByNumber(int number) { - return DomainNotice.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto.getDescriptor().getEnumTypes().get(1); - } - - private static final DomainNotice[] VALUES = values(); - - public static DomainNotice 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 DomainNotice(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1beta1.DomainNotice) -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DomainsProto.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DomainsProto.java deleted file mode 100644 index 3f33cecf..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DomainsProto.java +++ /dev/null @@ -1,807 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public final class DomainsProto { - private DomainsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_Registration_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_Registration_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_Registration_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_Registration_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_ManagementSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_ManagementSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_DnsSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_DnsSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_DnsSettings_CustomDns_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_DnsSettings_CustomDns_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_DnsSettings_GoogleDomainsDns_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_DnsSettings_GoogleDomainsDns_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_DnsSettings_DsRecord_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_DnsSettings_DsRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_DnsSettings_GlueRecord_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_DnsSettings_GlueRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_ContactSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_ContactSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_ContactSettings_Contact_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_ContactSettings_Contact_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_SearchDomainsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_SearchDomainsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_SearchDomainsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_SearchDomainsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_RegisterDomainRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_RegisterDomainRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_TransferDomainRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_TransferDomainRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_ListRegistrationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_ListRegistrationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_ListRegistrationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_ListRegistrationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_GetRegistrationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_GetRegistrationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_UpdateRegistrationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_UpdateRegistrationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_ConfigureManagementSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_ConfigureManagementSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_ConfigureDnsSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_ConfigureDnsSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_ConfigureContactSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_ConfigureContactSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_ExportRegistrationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_ExportRegistrationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_DeleteRegistrationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_DeleteRegistrationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_RetrieveAuthorizationCodeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_RetrieveAuthorizationCodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_ResetAuthorizationCodeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_ResetAuthorizationCodeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_RegisterParameters_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_RegisterParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_TransferParameters_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_TransferParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_AuthorizationCode_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_AuthorizationCode_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_domains_v1beta1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_domains_v1beta1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n*google/cloud/domains/v1beta1/domains.p" - + "roto\022\034google.cloud.domains.v1beta1\032\034goog" - + "le/api/annotations.proto\032\027google/api/cli" - + "ent.proto\032\037google/api/field_behavior.pro" - + "to\032\031google/api/resource.proto\032#google/lo" - + "ngrunning/operations.proto\032 google/proto" - + "buf/field_mask.proto\032\037google/protobuf/ti" - + "mestamp.proto\032\027google/type/money.proto\032 " - + "google/type/postal_address.proto\"\223\t\n\014Reg" - + "istration\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\033\n\013domain_n" - + "ame\030\002 \001(\tB\006\340A\002\340A\005\0224\n\013create_time\030\003 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0224\n\013expir" - + "e_time\030\006 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\022D\n\005state\030\007 \001(\01620.google.cloud.doma" - + "ins.v1beta1.Registration.StateB\003\340A\003\022E\n\006i" - + "ssues\030\010 \003(\01620.google.cloud.domains.v1bet" - + "a1.Registration.IssueB\003\340A\003\022F\n\006labels\030\t \003" - + "(\01326.google.cloud.domains.v1beta1.Regist" - + "ration.LabelsEntry\022M\n\023management_setting" - + "s\030\n \001(\01320.google.cloud.domains.v1beta1.M" - + "anagementSettings\022?\n\014dns_settings\030\013 \001(\0132" - + ").google.cloud.domains.v1beta1.DnsSettin" - + "gs\022L\n\020contact_settings\030\014 \001(\0132-.google.cl" - + "oud.domains.v1beta1.ContactSettingsB\003\340A\002" - + "\022T\n\030pending_contact_settings\030\r \001(\0132-.goo" - + "gle.cloud.domains.v1beta1.ContactSetting" - + "sB\003\340A\003\022L\n\021supported_privacy\030\016 \003(\0162,.goog" - + "le.cloud.domains.v1beta1.ContactPrivacyB" - + "\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001\"\245\001\n\005State\022\025\n\021STATE_UNSPECIFI" - + "ED\020\000\022\030\n\024REGISTRATION_PENDING\020\001\022\027\n\023REGIST" - + "RATION_FAILED\020\002\022\024\n\020TRANSFER_PENDING\020\003\022\023\n" - + "\017TRANSFER_FAILED\020\004\022\n\n\006ACTIVE\020\006\022\r\n\tSUSPEN" - + "DED\020\007\022\014\n\010EXPORTED\020\010\"I\n\005Issue\022\025\n\021ISSUE_UN" - + "SPECIFIED\020\000\022\023\n\017CONTACT_SUPPORT\020\001\022\024\n\020UNVE" - + "RIFIED_EMAIL\020\002:n\352Ak\n#domains.googleapis." - + "com/Registration\022Dprojects/{project}/loc" - + "ations/{location}/registrations/{registr" - + "ation}\"\233\002\n\022ManagementSettings\022[\n\016renewal" - + "_method\030\003 \001(\0162>.google.cloud.domains.v1b" - + "eta1.ManagementSettings.RenewalMethodB\003\340" - + "A\003\022L\n\023transfer_lock_state\030\004 \001(\0162/.google" - + ".cloud.domains.v1beta1.TransferLockState" - + "\"Z\n\rRenewalMethod\022\036\n\032RENEWAL_METHOD_UNSP" - + "ECIFIED\020\000\022\025\n\021AUTOMATIC_RENEWAL\020\001\022\022\n\016MANU" - + "AL_RENEWAL\020\002\"\306\n\n\013DnsSettings\022I\n\ncustom_d" - + "ns\030\001 \001(\01323.google.cloud.domains.v1beta1." - + "DnsSettings.CustomDnsH\000\022X\n\022google_domain" - + "s_dns\030\002 \001(\0132:.google.cloud.domains.v1bet" - + "a1.DnsSettings.GoogleDomainsDnsH\000\022J\n\014glu" - + "e_records\030\004 \003(\01324.google.cloud.domains.v" - + "1beta1.DnsSettings.GlueRecord\032n\n\tCustomD" - + "ns\022\031\n\014name_servers\030\001 \003(\tB\003\340A\002\022F\n\nds_reco" - + "rds\030\002 \003(\01322.google.cloud.domains.v1beta1" - + ".DnsSettings.DsRecord\032\304\001\n\020GoogleDomainsD" - + "ns\022\031\n\014name_servers\030\001 \003(\tB\003\340A\003\022H\n\010ds_stat" - + "e\030\002 \001(\01621.google.cloud.domains.v1beta1.D" - + "nsSettings.DsStateB\003\340A\002\022K\n\nds_records\030\003 " - + "\003(\01322.google.cloud.domains.v1beta1.DnsSe" - + "ttings.DsRecordB\003\340A\003\032\315\004\n\010DsRecord\022\017\n\007key" - + "_tag\030\001 \001(\005\022O\n\talgorithm\030\002 \001(\0162<.google.c" - + "loud.domains.v1beta1.DnsSettings.DsRecor" - + "d.Algorithm\022R\n\013digest_type\030\003 \001(\0162=.googl" - + "e.cloud.domains.v1beta1.DnsSettings.DsRe" - + "cord.DigestType\022\016\n\006digest\030\004 \001(\t\"\237\002\n\tAlgo" - + "rithm\022\031\n\025ALGORITHM_UNSPECIFIED\020\000\022\n\n\006RSAM" - + "D5\020\001\022\006\n\002DH\020\002\022\007\n\003DSA\020\003\022\007\n\003ECC\020\004\022\013\n\007RSASHA" - + "1\020\005\022\020\n\014DSANSEC3SHA1\020\006\022\024\n\020RSASHA1NSEC3SHA" - + "1\020\007\022\r\n\tRSASHA256\020\010\022\r\n\tRSASHA512\020\n\022\013\n\007ECC" - + "GOST\020\014\022\023\n\017ECDSAP256SHA256\020\r\022\023\n\017ECDSAP384" - + "SHA384\020\016\022\013\n\007ED25519\020\017\022\t\n\005ED448\020\020\022\r\n\010INDI" - + "RECT\020\374\001\022\017\n\nPRIVATEDNS\020\375\001\022\017\n\nPRIVATEOID\020\376" - + "\001\"Y\n\nDigestType\022\033\n\027DIGEST_TYPE_UNSPECIFI" - + "ED\020\000\022\010\n\004SHA1\020\001\022\n\n\006SHA256\020\002\022\014\n\010GOST3411\020\003" - + "\022\n\n\006SHA384\020\004\032T\n\nGlueRecord\022\026\n\thost_name\030" - + "\001 \001(\tB\003\340A\002\022\026\n\016ipv4_addresses\030\002 \003(\t\022\026\n\016ip" - + "v6_addresses\030\003 \003(\t\"Y\n\007DsState\022\030\n\024DS_STAT" - + "E_UNSPECIFIED\020\000\022\032\n\026DS_RECORDS_UNPUBLISHE" - + "D\020\001\022\030\n\024DS_RECORDS_PUBLISHED\020\002B\016\n\014dns_pro" - + "vider\"\337\003\n\017ContactSettings\022B\n\007privacy\030\001 \001" - + "(\0162,.google.cloud.domains.v1beta1.Contac" - + "tPrivacyB\003\340A\002\022V\n\022registrant_contact\030\002 \001(" - + "\01325.google.cloud.domains.v1beta1.Contact" - + "Settings.ContactB\003\340A\002\022Q\n\radmin_contact\030\003" - + " \001(\01325.google.cloud.domains.v1beta1.Cont" - + "actSettings.ContactB\003\340A\002\022U\n\021technical_co" - + "ntact\030\004 \001(\01325.google.cloud.domains.v1bet" - + "a1.ContactSettings.ContactB\003\340A\002\032\205\001\n\007Cont" - + "act\0227\n\016postal_address\030\001 \001(\0132\032.google.typ" - + "e.PostalAddressB\003\340A\002\022\022\n\005email\030\002 \001(\tB\003\340A\002" - + "\022\031\n\014phone_number\030\003 \001(\tB\003\340A\002\022\022\n\nfax_numbe" - + "r\030\004 \001(\t\"g\n\024SearchDomainsRequest\022\022\n\005query" - + "\030\001 \001(\tB\003\340A\002\022;\n\010location\030\002 \001(\tB)\340A\002\372A#\n!l" - + "ocations.googleapis.com/Location\"f\n\025Sear" - + "chDomainsResponse\022M\n\023register_parameters" - + "\030\001 \003(\01320.google.cloud.domains.v1beta1.Re" - + "gisterParameters\"z\n!RetrieveRegisterPara" - + "metersRequest\022\030\n\013domain_name\030\001 \001(\tB\003\340A\002\022" - + ";\n\010location\030\002 \001(\tB)\340A\002\372A#\n!locations.goo" - + "gleapis.com/Location\"s\n\"RetrieveRegister" - + "ParametersResponse\022M\n\023register_parameter" - + "s\030\001 \001(\01320.google.cloud.domains.v1beta1.R" - + "egisterParameters\"\351\002\n\025RegisterDomainRequ" - + "est\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.g" - + "oogleapis.com/Location\022E\n\014registration\030\002" - + " \001(\0132*.google.cloud.domains.v1beta1.Regi" - + "strationB\003\340A\002\022B\n\016domain_notices\030\003 \003(\0162*." - + "google.cloud.domains.v1beta1.DomainNotic" - + "e\022D\n\017contact_notices\030\004 \003(\0162+.google.clou" - + "d.domains.v1beta1.ContactNotice\022-\n\014yearl" - + "y_price\030\005 \001(\0132\022.google.type.MoneyB\003\340A\002\022\025" - + "\n\rvalidate_only\030\006 \001(\010\"z\n!RetrieveTransfe" - + "rParametersRequest\022\030\n\013domain_name\030\001 \001(\tB" - + "\003\340A\002\022;\n\010location\030\002 \001(\tB)\340A\002\372A#\n!location" - + "s.googleapis.com/Location\"s\n\"RetrieveTra" - + "nsferParametersResponse\022M\n\023transfer_para" - + "meters\030\001 \001(\01320.google.cloud.domains.v1be" - + "ta1.TransferParameters\"\362\002\n\025TransferDomai" - + "nRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locati" - + "ons.googleapis.com/Location\022E\n\014registrat" - + "ion\030\002 \001(\0132*.google.cloud.domains.v1beta1" - + ".RegistrationB\003\340A\002\022D\n\017contact_notices\030\003 " - + "\003(\0162+.google.cloud.domains.v1beta1.Conta" - + "ctNotice\022-\n\014yearly_price\030\004 \001(\0132\022.google." - + "type.MoneyB\003\340A\002\022K\n\022authorization_code\030\005 " - + "\001(\0132/.google.cloud.domains.v1beta1.Autho" - + "rizationCode\022\025\n\rvalidate_only\030\006 \001(\010\"\214\001\n\030" - + "ListRegistrationsRequest\0229\n\006parent\030\001 \001(\t" - + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" - + "ion\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" - + "(\t\022\016\n\006filter\030\004 \001(\t\"w\n\031ListRegistrationsR" - + "esponse\022A\n\rregistrations\030\001 \003(\0132*.google." - + "cloud.domains.v1beta1.Registration\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"S\n\026GetRegistrationRe" - + "quest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#domains.goo" - + "gleapis.com/Registration\"\223\001\n\031UpdateRegis" - + "trationRequest\022@\n\014registration\030\001 \001(\0132*.g" - + "oogle.cloud.domains.v1beta1.Registration" - + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." - + "FieldMaskB\003\340A\002\"\354\001\n\"ConfigureManagementSe" - + "ttingsRequest\022A\n\014registration\030\001 \001(\tB+\340A\002" - + "\372A%\n#domains.googleapis.com/Registration" - + "\022M\n\023management_settings\030\002 \001(\01320.google.c" - + "loud.domains.v1beta1.ManagementSettings\022" - + "4\n\013update_mask\030\003 \001(\0132\032.google.protobuf.F" - + "ieldMaskB\003\340A\002\"\356\001\n\033ConfigureDnsSettingsRe" - + "quest\022A\n\014registration\030\001 \001(\tB+\340A\002\372A%\n#dom" - + "ains.googleapis.com/Registration\022?\n\014dns_" - + "settings\030\002 \001(\0132).google.cloud.domains.v1" - + "beta1.DnsSettings\0224\n\013update_mask\030\003 \001(\0132\032" - + ".google.protobuf.FieldMaskB\003\340A\002\022\025\n\rvalid" - + "ate_only\030\004 \001(\010\"\300\002\n\037ConfigureContactSetti" - + "ngsRequest\022A\n\014registration\030\001 \001(\tB+\340A\002\372A%" - + "\n#domains.googleapis.com/Registration\022G\n" - + "\020contact_settings\030\002 \001(\0132-.google.cloud.d" - + "omains.v1beta1.ContactSettings\0224\n\013update" - + "_mask\030\003 \001(\0132\032.google.protobuf.FieldMaskB" - + "\003\340A\002\022D\n\017contact_notices\030\004 \003(\0162+.google.c" - + "loud.domains.v1beta1.ContactNotice\022\025\n\rva" - + "lidate_only\030\005 \001(\010\"V\n\031ExportRegistrationR" - + "equest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#domains.go" - + "ogleapis.com/Registration\"V\n\031DeleteRegis" - + "trationRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#do" - + "mains.googleapis.com/Registration\"e\n Ret" - + "rieveAuthorizationCodeRequest\022A\n\014registr" - + "ation\030\001 \001(\tB+\340A\002\372A%\n#domains.googleapis." - + "com/Registration\"b\n\035ResetAuthorizationCo" - + "deRequest\022A\n\014registration\030\001 \001(\tB+\340A\002\372A%\n" - + "#domains.googleapis.com/Registration\"\241\003\n" - + "\022RegisterParameters\022\023\n\013domain_name\030\001 \001(\t" - + "\022S\n\014availability\030\002 \001(\0162=.google.cloud.do" - + "mains.v1beta1.RegisterParameters.Availab" - + "ility\022G\n\021supported_privacy\030\003 \003(\0162,.googl" - + "e.cloud.domains.v1beta1.ContactPrivacy\022B" - + "\n\016domain_notices\030\004 \003(\0162*.google.cloud.do" - + "mains.v1beta1.DomainNotice\022(\n\014yearly_pri" - + "ce\030\005 \001(\0132\022.google.type.Money\"j\n\014Availabi" - + "lity\022\034\n\030AVAILABILITY_UNSPECIFIED\020\000\022\r\n\tAV" - + "AILABLE\020\001\022\017\n\013UNAVAILABLE\020\002\022\017\n\013UNSUPPORTE" - + "D\020\003\022\013\n\007UNKNOWN\020\004\"\233\002\n\022TransferParameters\022" - + "\023\n\013domain_name\030\001 \001(\t\022\031\n\021current_registra" - + "r\030\002 \001(\t\022\024\n\014name_servers\030\003 \003(\t\022L\n\023transfe" - + "r_lock_state\030\004 \001(\0162/.google.cloud.domain" - + "s.v1beta1.TransferLockState\022G\n\021supported" - + "_privacy\030\005 \003(\0162,.google.cloud.domains.v1" - + "beta1.ContactPrivacy\022(\n\014yearly_price\030\006 \001" - + "(\0132\022.google.type.Money\"!\n\021AuthorizationC" - + "ode\022\014\n\004code\030\001 \001(\t\"\274\001\n\021OperationMetadata\022" - + "/\n\013create_time\030\001 \001(\0132\032.google.protobuf.T" - + "imestamp\022,\n\010end_time\030\002 \001(\0132\032.google.prot" - + "obuf.Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004" - + " \001(\t\022\025\n\rstatus_detail\030\005 \001(\t\022\023\n\013api_versi" - + "on\030\006 \001(\t*\177\n\016ContactPrivacy\022\037\n\033CONTACT_PR" - + "IVACY_UNSPECIFIED\020\000\022\027\n\023PUBLIC_CONTACT_DA" - + "TA\020\001\022\030\n\024PRIVATE_CONTACT_DATA\020\002\022\031\n\025REDACT" - + "ED_CONTACT_DATA\020\003*A\n\014DomainNotice\022\035\n\031DOM" - + "AIN_NOTICE_UNSPECIFIED\020\000\022\022\n\016HSTS_PRELOAD" - + "ED\020\001*X\n\rContactNotice\022\036\n\032CONTACT_NOTICE_" - + "UNSPECIFIED\020\000\022\'\n#PUBLIC_CONTACT_DATA_ACK" - + "NOWLEDGEMENT\020\001*R\n\021TransferLockState\022#\n\037T" - + "RANSFER_LOCK_STATE_UNSPECIFIED\020\000\022\014\n\010UNLO" - + "CKED\020\001\022\n\n\006LOCKED\020\0022\312\036\n\007Domains\022\331\001\n\rSearc" - + "hDomains\0222.google.cloud.domains.v1beta1." - + "SearchDomainsRequest\0323.google.cloud.doma" - + "ins.v1beta1.SearchDomainsResponse\"_\202\323\344\223\002" - + "H\022F/v1beta1/{location=projects/*/locatio" - + "ns/*}/registrations:searchDomains\332A\016loca" - + "tion,query\022\223\002\n\032RetrieveRegisterParameter" - + "s\022?.google.cloud.domains.v1beta1.Retriev" - + "eRegisterParametersRequest\032@.google.clou" - + "d.domains.v1beta1.RetrieveRegisterParame" - + "tersResponse\"r\202\323\344\223\002U\022S/v1beta1/{location" - + "=projects/*/locations/*}/registrations:r" - + "etrieveRegisterParameters\332A\024location,dom" - + "ain_name\022\370\001\n\016RegisterDomain\0223.google.clo" - + "ud.domains.v1beta1.RegisterDomainRequest" - + "\032\035.google.longrunning.Operation\"\221\001\202\323\344\223\002D" - + "\"?/v1beta1/{parent=projects/*/locations/" - + "*}/registrations:register:\001*\332A parent,re" - + "gistration,yearly_price\312A!\n\014Registration" - + "\022\021OperationMetadata\022\223\002\n\032RetrieveTransfer" - + "Parameters\022?.google.cloud.domains.v1beta" - + "1.RetrieveTransferParametersRequest\032@.go" - + "ogle.cloud.domains.v1beta1.RetrieveTrans" - + "ferParametersResponse\"r\202\323\344\223\002U\022S/v1beta1/" - + "{location=projects/*/locations/*}/regist" - + "rations:retrieveTransferParameters\332A\024loc" - + "ation,domain_name\022\213\002\n\016TransferDomain\0223.g" - + "oogle.cloud.domains.v1beta1.TransferDoma" - + "inRequest\032\035.google.longrunning.Operation" - + "\"\244\001\202\323\344\223\002D\"?/v1beta1/{parent=projects/*/l" - + "ocations/*}/registrations:transfer:\001*\332A3" - + "parent,registration,yearly_price,authori" - + "zation_code\312A!\n\014Registration\022\021OperationM" - + "etadata\022\315\001\n\021ListRegistrations\0226.google.c" - + "loud.domains.v1beta1.ListRegistrationsRe" - + "quest\0327.google.cloud.domains.v1beta1.Lis" - + "tRegistrationsResponse\"G\202\323\344\223\0028\0226/v1beta1" - + "/{parent=projects/*/locations/*}/registr" - + "ations\332A\006parent\022\272\001\n\017GetRegistration\0224.go" - + "ogle.cloud.domains.v1beta1.GetRegistrati" - + "onRequest\032*.google.cloud.domains.v1beta1" - + ".Registration\"E\202\323\344\223\0028\0226/v1beta1/{name=pr" - + "ojects/*/locations/*/registrations/*}\332A\004" - + "name\022\207\002\n\022UpdateRegistration\0227.google.clo" - + "ud.domains.v1beta1.UpdateRegistrationReq" - + "uest\032\035.google.longrunning.Operation\"\230\001\202\323" - + "\344\223\002S2C/v1beta1/{registration.name=projec" - + "ts/*/locations/*/registrations/*}:\014regis" - + "tration\332A\030registration,update_mask\312A!\n\014R" - + "egistration\022\021OperationMetadata\022\271\002\n\033Confi" - + "gureManagementSettings\022@.google.cloud.do" - + "mains.v1beta1.ConfigureManagementSetting" - + "sRequest\032\035.google.longrunning.Operation\"" - + "\270\001\202\323\344\223\002_\"Z/v1beta1/{registration=project" - + "s/*/locations/*/registrations/*}:configu" - + "reManagementSettings:\001*\332A,registration,m" - + "anagement_settings,update_mask\312A!\n\014Regis" - + "tration\022\021OperationMetadata\022\235\002\n\024Configure" - + "DnsSettings\0229.google.cloud.domains.v1bet" - + "a1.ConfigureDnsSettingsRequest\032\035.google." - + "longrunning.Operation\"\252\001\202\323\344\223\002X\"S/v1beta1" - + "/{registration=projects/*/locations/*/re" - + "gistrations/*}:configureDnsSettings:\001*\332A" - + "%registration,dns_settings,update_mask\312A" - + "!\n\014Registration\022\021OperationMetadata\022\255\002\n\030C" - + "onfigureContactSettings\022=.google.cloud.d" - + "omains.v1beta1.ConfigureContactSettingsR" - + "equest\032\035.google.longrunning.Operation\"\262\001" - + "\202\323\344\223\002\\\"W/v1beta1/{registration=projects/" - + "*/locations/*/registrations/*}:configure" - + "ContactSettings:\001*\332A)registration,contac" - + "t_settings,update_mask\312A!\n\014Registration\022" - + "\021OperationMetadata\022\341\001\n\022ExportRegistratio" - + "n\0227.google.cloud.domains.v1beta1.ExportR" - + "egistrationRequest\032\035.google.longrunning." - + "Operation\"s\202\323\344\223\002B\"=/v1beta1/{name=projec" - + "ts/*/locations/*/registrations/*}:export" - + ":\001*\332A\004name\312A!\n\014Registration\022\021OperationMe" - + "tadata\022\340\001\n\022DeleteRegistration\0227.google.c" - + "loud.domains.v1beta1.DeleteRegistrationR" - + "equest\032\035.google.longrunning.Operation\"r\202" - + "\323\344\223\0028*6/v1beta1/{name=projects/*/locatio" - + "ns/*/registrations/*}\332A\004name\312A*\n\025google." - + "protobuf.Empty\022\021OperationMetadata\022\375\001\n\031Re" - + "trieveAuthorizationCode\022>.google.cloud.d" - + "omains.v1beta1.RetrieveAuthorizationCode" - + "Request\032/.google.cloud.domains.v1beta1.A" - + "uthorizationCode\"o\202\323\344\223\002Z\022X/v1beta1/{regi" - + "stration=projects/*/locations/*/registra" - + "tions/*}:retrieveAuthorizationCode\332A\014reg" - + "istration\022\367\001\n\026ResetAuthorizationCode\022;.g" - + "oogle.cloud.domains.v1beta1.ResetAuthori" - + "zationCodeRequest\032/.google.cloud.domains" - + ".v1beta1.AuthorizationCode\"o\202\323\344\223\002Z\"U/v1b" - + "eta1/{registration=projects/*/locations/" - + "*/registrations/*}:resetAuthorizationCod" - + "e:\001*\332A\014registration\032J\312A\026domains.googleap" - + "is.com\322A.https://www.googleapis.com/auth" - + "/cloud-platformBw\n com.google.cloud.doma" - + "ins.v1beta1B\014DomainsProtoP\001ZCgoogle.gola" - + "ng.org/genproto/googleapis/cloud/domains" - + "/v1beta1;domainsb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.MoneyProto.getDescriptor(), - com.google.type.PostalAddressProto.getDescriptor(), - }); - internal_static_google_cloud_domains_v1beta1_Registration_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_domains_v1beta1_Registration_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_Registration_descriptor, - new java.lang.String[] { - "Name", - "DomainName", - "CreateTime", - "ExpireTime", - "State", - "Issues", - "Labels", - "ManagementSettings", - "DnsSettings", - "ContactSettings", - "PendingContactSettings", - "SupportedPrivacy", - }); - internal_static_google_cloud_domains_v1beta1_Registration_LabelsEntry_descriptor = - internal_static_google_cloud_domains_v1beta1_Registration_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_domains_v1beta1_Registration_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_Registration_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_domains_v1beta1_ManagementSettings_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_domains_v1beta1_ManagementSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_ManagementSettings_descriptor, - new java.lang.String[] { - "RenewalMethod", "TransferLockState", - }); - internal_static_google_cloud_domains_v1beta1_DnsSettings_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_domains_v1beta1_DnsSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_DnsSettings_descriptor, - new java.lang.String[] { - "CustomDns", "GoogleDomainsDns", "GlueRecords", "DnsProvider", - }); - internal_static_google_cloud_domains_v1beta1_DnsSettings_CustomDns_descriptor = - internal_static_google_cloud_domains_v1beta1_DnsSettings_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_domains_v1beta1_DnsSettings_CustomDns_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_DnsSettings_CustomDns_descriptor, - new java.lang.String[] { - "NameServers", "DsRecords", - }); - internal_static_google_cloud_domains_v1beta1_DnsSettings_GoogleDomainsDns_descriptor = - internal_static_google_cloud_domains_v1beta1_DnsSettings_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_domains_v1beta1_DnsSettings_GoogleDomainsDns_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_DnsSettings_GoogleDomainsDns_descriptor, - new java.lang.String[] { - "NameServers", "DsState", "DsRecords", - }); - internal_static_google_cloud_domains_v1beta1_DnsSettings_DsRecord_descriptor = - internal_static_google_cloud_domains_v1beta1_DnsSettings_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_domains_v1beta1_DnsSettings_DsRecord_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_DnsSettings_DsRecord_descriptor, - new java.lang.String[] { - "KeyTag", "Algorithm", "DigestType", "Digest", - }); - internal_static_google_cloud_domains_v1beta1_DnsSettings_GlueRecord_descriptor = - internal_static_google_cloud_domains_v1beta1_DnsSettings_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_domains_v1beta1_DnsSettings_GlueRecord_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_DnsSettings_GlueRecord_descriptor, - new java.lang.String[] { - "HostName", "Ipv4Addresses", "Ipv6Addresses", - }); - internal_static_google_cloud_domains_v1beta1_ContactSettings_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_domains_v1beta1_ContactSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_ContactSettings_descriptor, - new java.lang.String[] { - "Privacy", "RegistrantContact", "AdminContact", "TechnicalContact", - }); - internal_static_google_cloud_domains_v1beta1_ContactSettings_Contact_descriptor = - internal_static_google_cloud_domains_v1beta1_ContactSettings_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_domains_v1beta1_ContactSettings_Contact_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_ContactSettings_Contact_descriptor, - new java.lang.String[] { - "PostalAddress", "Email", "PhoneNumber", "FaxNumber", - }); - internal_static_google_cloud_domains_v1beta1_SearchDomainsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_domains_v1beta1_SearchDomainsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_SearchDomainsRequest_descriptor, - new java.lang.String[] { - "Query", "Location", - }); - internal_static_google_cloud_domains_v1beta1_SearchDomainsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_domains_v1beta1_SearchDomainsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_SearchDomainsResponse_descriptor, - new java.lang.String[] { - "RegisterParameters", - }); - internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersRequest_descriptor, - new java.lang.String[] { - "DomainName", "Location", - }); - internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersResponse_descriptor, - new java.lang.String[] { - "RegisterParameters", - }); - internal_static_google_cloud_domains_v1beta1_RegisterDomainRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_domains_v1beta1_RegisterDomainRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_RegisterDomainRequest_descriptor, - new java.lang.String[] { - "Parent", - "Registration", - "DomainNotices", - "ContactNotices", - "YearlyPrice", - "ValidateOnly", - }); - internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersRequest_descriptor, - new java.lang.String[] { - "DomainName", "Location", - }); - internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersResponse_descriptor, - new java.lang.String[] { - "TransferParameters", - }); - internal_static_google_cloud_domains_v1beta1_TransferDomainRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_domains_v1beta1_TransferDomainRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_TransferDomainRequest_descriptor, - new java.lang.String[] { - "Parent", - "Registration", - "ContactNotices", - "YearlyPrice", - "AuthorizationCode", - "ValidateOnly", - }); - internal_static_google_cloud_domains_v1beta1_ListRegistrationsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_domains_v1beta1_ListRegistrationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_ListRegistrationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_domains_v1beta1_ListRegistrationsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_domains_v1beta1_ListRegistrationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_ListRegistrationsResponse_descriptor, - new java.lang.String[] { - "Registrations", "NextPageToken", - }); - internal_static_google_cloud_domains_v1beta1_GetRegistrationRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_domains_v1beta1_GetRegistrationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_GetRegistrationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_domains_v1beta1_UpdateRegistrationRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_domains_v1beta1_UpdateRegistrationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_UpdateRegistrationRequest_descriptor, - new java.lang.String[] { - "Registration", "UpdateMask", - }); - internal_static_google_cloud_domains_v1beta1_ConfigureManagementSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_domains_v1beta1_ConfigureManagementSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_ConfigureManagementSettingsRequest_descriptor, - new java.lang.String[] { - "Registration", "ManagementSettings", "UpdateMask", - }); - internal_static_google_cloud_domains_v1beta1_ConfigureDnsSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_domains_v1beta1_ConfigureDnsSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_ConfigureDnsSettingsRequest_descriptor, - new java.lang.String[] { - "Registration", "DnsSettings", "UpdateMask", "ValidateOnly", - }); - internal_static_google_cloud_domains_v1beta1_ConfigureContactSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_domains_v1beta1_ConfigureContactSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_ConfigureContactSettingsRequest_descriptor, - new java.lang.String[] { - "Registration", "ContactSettings", "UpdateMask", "ContactNotices", "ValidateOnly", - }); - internal_static_google_cloud_domains_v1beta1_ExportRegistrationRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_domains_v1beta1_ExportRegistrationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_ExportRegistrationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_domains_v1beta1_DeleteRegistrationRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_domains_v1beta1_DeleteRegistrationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_DeleteRegistrationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_domains_v1beta1_RetrieveAuthorizationCodeRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_domains_v1beta1_RetrieveAuthorizationCodeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_RetrieveAuthorizationCodeRequest_descriptor, - new java.lang.String[] { - "Registration", - }); - internal_static_google_cloud_domains_v1beta1_ResetAuthorizationCodeRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_domains_v1beta1_ResetAuthorizationCodeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_ResetAuthorizationCodeRequest_descriptor, - new java.lang.String[] { - "Registration", - }); - internal_static_google_cloud_domains_v1beta1_RegisterParameters_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_domains_v1beta1_RegisterParameters_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_RegisterParameters_descriptor, - new java.lang.String[] { - "DomainName", "Availability", "SupportedPrivacy", "DomainNotices", "YearlyPrice", - }); - internal_static_google_cloud_domains_v1beta1_TransferParameters_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_domains_v1beta1_TransferParameters_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_TransferParameters_descriptor, - new java.lang.String[] { - "DomainName", - "CurrentRegistrar", - "NameServers", - "TransferLockState", - "SupportedPrivacy", - "YearlyPrice", - }); - internal_static_google_cloud_domains_v1beta1_AuthorizationCode_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_domains_v1beta1_AuthorizationCode_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_AuthorizationCode_descriptor, - new java.lang.String[] { - "Code", - }); - internal_static_google_cloud_domains_v1beta1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_domains_v1beta1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_domains_v1beta1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "ApiVersion", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.MoneyProto.getDescriptor(); - com.google.type.PostalAddressProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ExportRegistrationRequest.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ExportRegistrationRequest.java deleted file mode 100644 index c869c1bb..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ExportRegistrationRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Request for the `ExportRegistration` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ExportRegistrationRequest} - */ -public final class ExportRegistrationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.ExportRegistrationRequest) - ExportRegistrationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExportRegistrationRequest.newBuilder() to construct. - private ExportRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ExportRegistrationRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ExportRegistrationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ExportRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ExportRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ExportRegistrationRequest.class, - com.google.cloud.domains.v1beta1.ExportRegistrationRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the `Registration` to export,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` to export,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.ExportRegistrationRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.ExportRegistrationRequest other = - (com.google.cloud.domains.v1beta1.ExportRegistrationRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.ExportRegistrationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ExportRegistrationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ExportRegistrationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ExportRegistrationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ExportRegistrationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ExportRegistrationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ExportRegistrationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ExportRegistrationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ExportRegistrationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ExportRegistrationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ExportRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ExportRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.ExportRegistrationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ExportRegistration` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ExportRegistrationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.ExportRegistrationRequest) - com.google.cloud.domains.v1beta1.ExportRegistrationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ExportRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ExportRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ExportRegistrationRequest.class, - com.google.cloud.domains.v1beta1.ExportRegistrationRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.ExportRegistrationRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ExportRegistrationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ExportRegistrationRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.ExportRegistrationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ExportRegistrationRequest build() { - com.google.cloud.domains.v1beta1.ExportRegistrationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ExportRegistrationRequest buildPartial() { - com.google.cloud.domains.v1beta1.ExportRegistrationRequest result = - new com.google.cloud.domains.v1beta1.ExportRegistrationRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.ExportRegistrationRequest) { - return mergeFrom((com.google.cloud.domains.v1beta1.ExportRegistrationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.ExportRegistrationRequest other) { - if (other == com.google.cloud.domains.v1beta1.ExportRegistrationRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` to export,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to export,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to export,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to export,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to export,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.ExportRegistrationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.ExportRegistrationRequest) - private static final com.google.cloud.domains.v1beta1.ExportRegistrationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.ExportRegistrationRequest(); - } - - public static com.google.cloud.domains.v1beta1.ExportRegistrationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportRegistrationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ExportRegistrationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ExportRegistrationRequestOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ExportRegistrationRequestOrBuilder.java deleted file mode 100644 index 293d00d8..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ExportRegistrationRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface ExportRegistrationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.ExportRegistrationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` to export,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the `Registration` to export,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/GetRegistrationRequest.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/GetRegistrationRequest.java deleted file mode 100644 index 228b0e41..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/GetRegistrationRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Request for the `GetRegistration` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.GetRegistrationRequest} - */ -public final class GetRegistrationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.GetRegistrationRequest) - GetRegistrationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetRegistrationRequest.newBuilder() to construct. - private GetRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetRegistrationRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetRegistrationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_GetRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_GetRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.GetRegistrationRequest.class, - com.google.cloud.domains.v1beta1.GetRegistrationRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the `Registration` to get, in the format
-   * `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` to get, in the format
-   * `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.GetRegistrationRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.GetRegistrationRequest other = - (com.google.cloud.domains.v1beta1.GetRegistrationRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.GetRegistrationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.GetRegistrationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.GetRegistrationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.GetRegistrationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.GetRegistrationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.GetRegistrationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.GetRegistrationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.GetRegistrationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.GetRegistrationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.GetRegistrationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.GetRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.GetRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.GetRegistrationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `GetRegistration` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.GetRegistrationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.GetRegistrationRequest) - com.google.cloud.domains.v1beta1.GetRegistrationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_GetRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_GetRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.GetRegistrationRequest.class, - com.google.cloud.domains.v1beta1.GetRegistrationRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.GetRegistrationRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_GetRegistrationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.GetRegistrationRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.GetRegistrationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.GetRegistrationRequest build() { - com.google.cloud.domains.v1beta1.GetRegistrationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.GetRegistrationRequest buildPartial() { - com.google.cloud.domains.v1beta1.GetRegistrationRequest result = - new com.google.cloud.domains.v1beta1.GetRegistrationRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.GetRegistrationRequest) { - return mergeFrom((com.google.cloud.domains.v1beta1.GetRegistrationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.GetRegistrationRequest other) { - if (other == com.google.cloud.domains.v1beta1.GetRegistrationRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` to get, in the format
-     * `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to get, in the format
-     * `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` to get, in the format
-     * `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to get, in the format
-     * `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` to get, in the format
-     * `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.GetRegistrationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.GetRegistrationRequest) - private static final com.google.cloud.domains.v1beta1.GetRegistrationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.GetRegistrationRequest(); - } - - public static com.google.cloud.domains.v1beta1.GetRegistrationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRegistrationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.GetRegistrationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/GetRegistrationRequestOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/GetRegistrationRequestOrBuilder.java deleted file mode 100644 index 1a8ad5da..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/GetRegistrationRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface GetRegistrationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.GetRegistrationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` to get, in the format
-   * `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the `Registration` to get, in the format
-   * `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ListRegistrationsRequest.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ListRegistrationsRequest.java deleted file mode 100644 index f4daea60..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ListRegistrationsRequest.java +++ /dev/null @@ -1,1175 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Request for the `ListRegistrations` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ListRegistrationsRequest} - */ -public final class ListRegistrationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.ListRegistrationsRequest) - ListRegistrationsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListRegistrationsRequest.newBuilder() to construct. - private ListRegistrationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListRegistrationsRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListRegistrationsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ListRegistrationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ListRegistrationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ListRegistrationsRequest.class, - com.google.cloud.domains.v1beta1.ListRegistrationsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The project and location from which to list `Registration`s, specified in
-   * the format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The project and location from which to list `Registration`s, specified in
-   * the format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * Maximum number of results to return.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * When set to the `next_page_token` from a prior response, provides the next
-   * page of results.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * When set to the `next_page_token` from a prior response, provides the next
-   * page of results.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * Filter expression to restrict the `Registration`s returned.
-   * The expression must specify the field name, a comparison operator, and the
-   * value that you want to use for filtering. The value must be a string, a
-   * number, a boolean, or an enum value. The comparison operator should be one
-   * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-   * For example, to filter to a specific domain name, use an expression like
-   * `domainName="example.com"`. You can also check for the existence of a
-   * field; for example, to find domains using custom DNS settings, use an
-   * expression like `dnsSettings.customDns:*`.
-   * You can also create compound filters by combining expressions with the
-   * `AND` and `OR` operators. For example, to find domains that are suspended
-   * or have specific issues flagged, use an expression like
-   * `(state=SUSPENDED) OR (issue:*)`.
-   * 
- * - * string filter = 4; - * - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * Filter expression to restrict the `Registration`s returned.
-   * The expression must specify the field name, a comparison operator, and the
-   * value that you want to use for filtering. The value must be a string, a
-   * number, a boolean, or an enum value. The comparison operator should be one
-   * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-   * For example, to filter to a specific domain name, use an expression like
-   * `domainName="example.com"`. You can also check for the existence of a
-   * field; for example, to find domains using custom DNS settings, use an
-   * expression like `dnsSettings.customDns:*`.
-   * You can also create compound filters by combining expressions with the
-   * `AND` and `OR` operators. For example, to find domains that are suspended
-   * or have specific issues flagged, use an expression like
-   * `(state=SUSPENDED) OR (issue:*)`.
-   * 
- * - * string filter = 4; - * - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.ListRegistrationsRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.ListRegistrationsRequest other = - (com.google.cloud.domains.v1beta1.ListRegistrationsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.ListRegistrationsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ListRegistrations` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ListRegistrationsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.ListRegistrationsRequest) - com.google.cloud.domains.v1beta1.ListRegistrationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ListRegistrationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ListRegistrationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ListRegistrationsRequest.class, - com.google.cloud.domains.v1beta1.ListRegistrationsRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.ListRegistrationsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - filter_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ListRegistrationsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ListRegistrationsRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.ListRegistrationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ListRegistrationsRequest build() { - com.google.cloud.domains.v1beta1.ListRegistrationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ListRegistrationsRequest buildPartial() { - com.google.cloud.domains.v1beta1.ListRegistrationsRequest result = - new com.google.cloud.domains.v1beta1.ListRegistrationsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.ListRegistrationsRequest) { - return mergeFrom((com.google.cloud.domains.v1beta1.ListRegistrationsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.ListRegistrationsRequest other) { - if (other == com.google.cloud.domains.v1beta1.ListRegistrationsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The project and location from which to list `Registration`s, specified in
-     * the format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The project and location from which to list `Registration`s, specified in
-     * the format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The project and location from which to list `Registration`s, specified in
-     * the format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The project and location from which to list `Registration`s, specified in
-     * the format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The project and location from which to list `Registration`s, specified in
-     * the format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * Maximum number of results to return.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Maximum number of results to return.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Maximum number of results to return.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * When set to the `next_page_token` from a prior response, provides the next
-     * page of results.
-     * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * When set to the `next_page_token` from a prior response, provides the next
-     * page of results.
-     * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * When set to the `next_page_token` from a prior response, provides the next
-     * page of results.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * When set to the `next_page_token` from a prior response, provides the next
-     * page of results.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * When set to the `next_page_token` from a prior response, provides the next
-     * page of results.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * Filter expression to restrict the `Registration`s returned.
-     * The expression must specify the field name, a comparison operator, and the
-     * value that you want to use for filtering. The value must be a string, a
-     * number, a boolean, or an enum value. The comparison operator should be one
-     * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-     * For example, to filter to a specific domain name, use an expression like
-     * `domainName="example.com"`. You can also check for the existence of a
-     * field; for example, to find domains using custom DNS settings, use an
-     * expression like `dnsSettings.customDns:*`.
-     * You can also create compound filters by combining expressions with the
-     * `AND` and `OR` operators. For example, to find domains that are suspended
-     * or have specific issues flagged, use an expression like
-     * `(state=SUSPENDED) OR (issue:*)`.
-     * 
- * - * string filter = 4; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Filter expression to restrict the `Registration`s returned.
-     * The expression must specify the field name, a comparison operator, and the
-     * value that you want to use for filtering. The value must be a string, a
-     * number, a boolean, or an enum value. The comparison operator should be one
-     * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-     * For example, to filter to a specific domain name, use an expression like
-     * `domainName="example.com"`. You can also check for the existence of a
-     * field; for example, to find domains using custom DNS settings, use an
-     * expression like `dnsSettings.customDns:*`.
-     * You can also create compound filters by combining expressions with the
-     * `AND` and `OR` operators. For example, to find domains that are suspended
-     * or have specific issues flagged, use an expression like
-     * `(state=SUSPENDED) OR (issue:*)`.
-     * 
- * - * string filter = 4; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Filter expression to restrict the `Registration`s returned.
-     * The expression must specify the field name, a comparison operator, and the
-     * value that you want to use for filtering. The value must be a string, a
-     * number, a boolean, or an enum value. The comparison operator should be one
-     * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-     * For example, to filter to a specific domain name, use an expression like
-     * `domainName="example.com"`. You can also check for the existence of a
-     * field; for example, to find domains using custom DNS settings, use an
-     * expression like `dnsSettings.customDns:*`.
-     * You can also create compound filters by combining expressions with the
-     * `AND` and `OR` operators. For example, to find domains that are suspended
-     * or have specific issues flagged, use an expression like
-     * `(state=SUSPENDED) OR (issue:*)`.
-     * 
- * - * string filter = 4; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Filter expression to restrict the `Registration`s returned.
-     * The expression must specify the field name, a comparison operator, and the
-     * value that you want to use for filtering. The value must be a string, a
-     * number, a boolean, or an enum value. The comparison operator should be one
-     * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-     * For example, to filter to a specific domain name, use an expression like
-     * `domainName="example.com"`. You can also check for the existence of a
-     * field; for example, to find domains using custom DNS settings, use an
-     * expression like `dnsSettings.customDns:*`.
-     * You can also create compound filters by combining expressions with the
-     * `AND` and `OR` operators. For example, to find domains that are suspended
-     * or have specific issues flagged, use an expression like
-     * `(state=SUSPENDED) OR (issue:*)`.
-     * 
- * - * string filter = 4; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * Filter expression to restrict the `Registration`s returned.
-     * The expression must specify the field name, a comparison operator, and the
-     * value that you want to use for filtering. The value must be a string, a
-     * number, a boolean, or an enum value. The comparison operator should be one
-     * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-     * For example, to filter to a specific domain name, use an expression like
-     * `domainName="example.com"`. You can also check for the existence of a
-     * field; for example, to find domains using custom DNS settings, use an
-     * expression like `dnsSettings.customDns:*`.
-     * You can also create compound filters by combining expressions with the
-     * `AND` and `OR` operators. For example, to find domains that are suspended
-     * or have specific issues flagged, use an expression like
-     * `(state=SUSPENDED) OR (issue:*)`.
-     * 
- * - * string filter = 4; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.ListRegistrationsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.ListRegistrationsRequest) - private static final com.google.cloud.domains.v1beta1.ListRegistrationsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.ListRegistrationsRequest(); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRegistrationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ListRegistrationsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ListRegistrationsRequestOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ListRegistrationsRequestOrBuilder.java deleted file mode 100644 index e9b6f7f7..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ListRegistrationsRequestOrBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface ListRegistrationsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.ListRegistrationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The project and location from which to list `Registration`s, specified in
-   * the format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The project and location from which to list `Registration`s, specified in
-   * the format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Maximum number of results to return.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * When set to the `next_page_token` from a prior response, provides the next
-   * page of results.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * When set to the `next_page_token` from a prior response, provides the next
-   * page of results.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * Filter expression to restrict the `Registration`s returned.
-   * The expression must specify the field name, a comparison operator, and the
-   * value that you want to use for filtering. The value must be a string, a
-   * number, a boolean, or an enum value. The comparison operator should be one
-   * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-   * For example, to filter to a specific domain name, use an expression like
-   * `domainName="example.com"`. You can also check for the existence of a
-   * field; for example, to find domains using custom DNS settings, use an
-   * expression like `dnsSettings.customDns:*`.
-   * You can also create compound filters by combining expressions with the
-   * `AND` and `OR` operators. For example, to find domains that are suspended
-   * or have specific issues flagged, use an expression like
-   * `(state=SUSPENDED) OR (issue:*)`.
-   * 
- * - * string filter = 4; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * Filter expression to restrict the `Registration`s returned.
-   * The expression must specify the field name, a comparison operator, and the
-   * value that you want to use for filtering. The value must be a string, a
-   * number, a boolean, or an enum value. The comparison operator should be one
-   * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
-   * For example, to filter to a specific domain name, use an expression like
-   * `domainName="example.com"`. You can also check for the existence of a
-   * field; for example, to find domains using custom DNS settings, use an
-   * expression like `dnsSettings.customDns:*`.
-   * You can also create compound filters by combining expressions with the
-   * `AND` and `OR` operators. For example, to find domains that are suspended
-   * or have specific issues flagged, use an expression like
-   * `(state=SUSPENDED) OR (issue:*)`.
-   * 
- * - * string filter = 4; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ListRegistrationsResponse.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ListRegistrationsResponse.java deleted file mode 100644 index f13773d7..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ListRegistrationsResponse.java +++ /dev/null @@ -1,1123 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Response for the `ListRegistrations` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ListRegistrationsResponse} - */ -public final class ListRegistrationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.ListRegistrationsResponse) - ListRegistrationsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListRegistrationsResponse.newBuilder() to construct. - private ListRegistrationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListRegistrationsResponse() { - registrations_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListRegistrationsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ListRegistrationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ListRegistrationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ListRegistrationsResponse.class, - com.google.cloud.domains.v1beta1.ListRegistrationsResponse.Builder.class); - } - - public static final int REGISTRATIONS_FIELD_NUMBER = 1; - private java.util.List registrations_; - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - @java.lang.Override - public java.util.List getRegistrationsList() { - return registrations_; - } - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - @java.lang.Override - public java.util.List - getRegistrationsOrBuilderList() { - return registrations_; - } - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - @java.lang.Override - public int getRegistrationsCount() { - return registrations_.size(); - } - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.Registration getRegistrations(int index) { - return registrations_.get(index); - } - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegistrationOrBuilder getRegistrationsOrBuilder( - int index) { - return registrations_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * When present, there are more results to retrieve. Set `page_token` to this
-   * value on a subsequent call to get the next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * When present, there are more results to retrieve. Set `page_token` to this
-   * value on a subsequent call to get the next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < registrations_.size(); i++) { - output.writeMessage(1, registrations_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < registrations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, registrations_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.ListRegistrationsResponse)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.ListRegistrationsResponse other = - (com.google.cloud.domains.v1beta1.ListRegistrationsResponse) obj; - - if (!getRegistrationsList().equals(other.getRegistrationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRegistrationsCount() > 0) { - hash = (37 * hash) + REGISTRATIONS_FIELD_NUMBER; - hash = (53 * hash) + getRegistrationsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.ListRegistrationsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response for the `ListRegistrations` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ListRegistrationsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.ListRegistrationsResponse) - com.google.cloud.domains.v1beta1.ListRegistrationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ListRegistrationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ListRegistrationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ListRegistrationsResponse.class, - com.google.cloud.domains.v1beta1.ListRegistrationsResponse.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.ListRegistrationsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (registrationsBuilder_ == null) { - registrations_ = java.util.Collections.emptyList(); - } else { - registrations_ = null; - registrationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ListRegistrationsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ListRegistrationsResponse getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.ListRegistrationsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ListRegistrationsResponse build() { - com.google.cloud.domains.v1beta1.ListRegistrationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ListRegistrationsResponse buildPartial() { - com.google.cloud.domains.v1beta1.ListRegistrationsResponse result = - new com.google.cloud.domains.v1beta1.ListRegistrationsResponse(this); - int from_bitField0_ = bitField0_; - if (registrationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - registrations_ = java.util.Collections.unmodifiableList(registrations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.registrations_ = registrations_; - } else { - result.registrations_ = registrationsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.ListRegistrationsResponse) { - return mergeFrom((com.google.cloud.domains.v1beta1.ListRegistrationsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.ListRegistrationsResponse other) { - if (other == com.google.cloud.domains.v1beta1.ListRegistrationsResponse.getDefaultInstance()) - return this; - if (registrationsBuilder_ == null) { - if (!other.registrations_.isEmpty()) { - if (registrations_.isEmpty()) { - registrations_ = other.registrations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRegistrationsIsMutable(); - registrations_.addAll(other.registrations_); - } - onChanged(); - } - } else { - if (!other.registrations_.isEmpty()) { - if (registrationsBuilder_.isEmpty()) { - registrationsBuilder_.dispose(); - registrationsBuilder_ = null; - registrations_ = other.registrations_; - bitField0_ = (bitField0_ & ~0x00000001); - registrationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRegistrationsFieldBuilder() - : null; - } else { - registrationsBuilder_.addAllMessages(other.registrations_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.domains.v1beta1.Registration m = - input.readMessage( - com.google.cloud.domains.v1beta1.Registration.parser(), extensionRegistry); - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - registrations_.add(m); - } else { - registrationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List registrations_ = - java.util.Collections.emptyList(); - - private void ensureRegistrationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - registrations_ = - new java.util.ArrayList(registrations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1beta1.Registration, - com.google.cloud.domains.v1beta1.Registration.Builder, - com.google.cloud.domains.v1beta1.RegistrationOrBuilder> - registrationsBuilder_; - - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public java.util.List getRegistrationsList() { - if (registrationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(registrations_); - } else { - return registrationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public int getRegistrationsCount() { - if (registrationsBuilder_ == null) { - return registrations_.size(); - } else { - return registrationsBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public com.google.cloud.domains.v1beta1.Registration getRegistrations(int index) { - if (registrationsBuilder_ == null) { - return registrations_.get(index); - } else { - return registrationsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public Builder setRegistrations( - int index, com.google.cloud.domains.v1beta1.Registration value) { - if (registrationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegistrationsIsMutable(); - registrations_.set(index, value); - onChanged(); - } else { - registrationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public Builder setRegistrations( - int index, com.google.cloud.domains.v1beta1.Registration.Builder builderForValue) { - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - registrations_.set(index, builderForValue.build()); - onChanged(); - } else { - registrationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public Builder addRegistrations(com.google.cloud.domains.v1beta1.Registration value) { - if (registrationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegistrationsIsMutable(); - registrations_.add(value); - onChanged(); - } else { - registrationsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public Builder addRegistrations( - int index, com.google.cloud.domains.v1beta1.Registration value) { - if (registrationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegistrationsIsMutable(); - registrations_.add(index, value); - onChanged(); - } else { - registrationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public Builder addRegistrations( - com.google.cloud.domains.v1beta1.Registration.Builder builderForValue) { - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - registrations_.add(builderForValue.build()); - onChanged(); - } else { - registrationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public Builder addRegistrations( - int index, com.google.cloud.domains.v1beta1.Registration.Builder builderForValue) { - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - registrations_.add(index, builderForValue.build()); - onChanged(); - } else { - registrationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public Builder addAllRegistrations( - java.lang.Iterable values) { - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, registrations_); - onChanged(); - } else { - registrationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public Builder clearRegistrations() { - if (registrationsBuilder_ == null) { - registrations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - registrationsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public Builder removeRegistrations(int index) { - if (registrationsBuilder_ == null) { - ensureRegistrationsIsMutable(); - registrations_.remove(index); - onChanged(); - } else { - registrationsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public com.google.cloud.domains.v1beta1.Registration.Builder getRegistrationsBuilder( - int index) { - return getRegistrationsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public com.google.cloud.domains.v1beta1.RegistrationOrBuilder getRegistrationsOrBuilder( - int index) { - if (registrationsBuilder_ == null) { - return registrations_.get(index); - } else { - return registrationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public java.util.List - getRegistrationsOrBuilderList() { - if (registrationsBuilder_ != null) { - return registrationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(registrations_); - } - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public com.google.cloud.domains.v1beta1.Registration.Builder addRegistrationsBuilder() { - return getRegistrationsFieldBuilder() - .addBuilder(com.google.cloud.domains.v1beta1.Registration.getDefaultInstance()); - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public com.google.cloud.domains.v1beta1.Registration.Builder addRegistrationsBuilder( - int index) { - return getRegistrationsFieldBuilder() - .addBuilder(index, com.google.cloud.domains.v1beta1.Registration.getDefaultInstance()); - } - /** - * - * - *
-     * A list of `Registration`s.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - public java.util.List - getRegistrationsBuilderList() { - return getRegistrationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1beta1.Registration, - com.google.cloud.domains.v1beta1.Registration.Builder, - com.google.cloud.domains.v1beta1.RegistrationOrBuilder> - getRegistrationsFieldBuilder() { - if (registrationsBuilder_ == null) { - registrationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1beta1.Registration, - com.google.cloud.domains.v1beta1.Registration.Builder, - com.google.cloud.domains.v1beta1.RegistrationOrBuilder>( - registrations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - registrations_ = null; - } - return registrationsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * When present, there are more results to retrieve. Set `page_token` to this
-     * value on a subsequent call to get the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * When present, there are more results to retrieve. Set `page_token` to this
-     * value on a subsequent call to get the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * When present, there are more results to retrieve. Set `page_token` to this
-     * value on a subsequent call to get the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * When present, there are more results to retrieve. Set `page_token` to this
-     * value on a subsequent call to get the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * When present, there are more results to retrieve. Set `page_token` to this
-     * value on a subsequent call to get the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.ListRegistrationsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.ListRegistrationsResponse) - private static final com.google.cloud.domains.v1beta1.ListRegistrationsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.ListRegistrationsResponse(); - } - - public static com.google.cloud.domains.v1beta1.ListRegistrationsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRegistrationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ListRegistrationsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ListRegistrationsResponseOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ListRegistrationsResponseOrBuilder.java deleted file mode 100644 index 15b04ce1..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ListRegistrationsResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface ListRegistrationsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.ListRegistrationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - java.util.List getRegistrationsList(); - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - com.google.cloud.domains.v1beta1.Registration getRegistrations(int index); - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - int getRegistrationsCount(); - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - java.util.List - getRegistrationsOrBuilderList(); - /** - * - * - *
-   * A list of `Registration`s.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.Registration registrations = 1; - */ - com.google.cloud.domains.v1beta1.RegistrationOrBuilder getRegistrationsOrBuilder(int index); - - /** - * - * - *
-   * When present, there are more results to retrieve. Set `page_token` to this
-   * value on a subsequent call to get the next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * When present, there are more results to retrieve. Set `page_token` to this
-   * value on a subsequent call to get the next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/LocationName.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/LocationName.java deleted file mode 100644 index 61ca53af..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/LocationName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class LocationName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION = - PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - - @Deprecated - protected LocationName() { - project = null; - location = null; - } - - private LocationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static LocationName of(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build(); - } - - public static String format(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build().toString(); - } - - public static LocationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION.validatedMatch( - formattedString, "LocationName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (LocationName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION.instantiate("project", project, "location", location); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - LocationName that = ((LocationName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - return h; - } - - /** Builder for projects/{project}/locations/{location}. */ - public static class Builder { - private String project; - private String location; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - private Builder(LocationName locationName) { - this.project = locationName.project; - this.location = locationName.location; - } - - public LocationName build() { - return new LocationName(this); - } - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ManagementSettings.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ManagementSettings.java deleted file mode 100644 index 6944ad4e..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ManagementSettings.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/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Defines renewal, billing, and transfer settings for a `Registration`.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ManagementSettings} - */ -public final class ManagementSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.ManagementSettings) - ManagementSettingsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ManagementSettings.newBuilder() to construct. - private ManagementSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ManagementSettings() { - renewalMethod_ = 0; - transferLockState_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ManagementSettings(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ManagementSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ManagementSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ManagementSettings.class, - com.google.cloud.domains.v1beta1.ManagementSettings.Builder.class); - } - - /** - * - * - *
-   * Defines how the `Registration` is renewed.
-   * 
- * - * Protobuf enum {@code google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod} - */ - public enum RenewalMethod implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The renewal method is undefined.
-     * 
- * - * RENEWAL_METHOD_UNSPECIFIED = 0; - */ - RENEWAL_METHOD_UNSPECIFIED(0), - /** - * - * - *
-     * The domain is automatically renewed each year .
-     * To disable automatic renewals, delete the resource by calling
-     * `DeleteRegistration` or export it by calling `ExportRegistration`.
-     * 
- * - * AUTOMATIC_RENEWAL = 1; - */ - AUTOMATIC_RENEWAL(1), - /** - * - * - *
-     * The domain must be explicitly renewed each year before its
-     * `expire_time`. This option is only available when the `Registration`
-     * is in state `EXPORTED`.
-     * To manage the domain's current billing and
-     * renewal settings, go to [Google Domains](https://domains.google/).
-     * 
- * - * MANUAL_RENEWAL = 2; - */ - MANUAL_RENEWAL(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The renewal method is undefined.
-     * 
- * - * RENEWAL_METHOD_UNSPECIFIED = 0; - */ - public static final int RENEWAL_METHOD_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The domain is automatically renewed each year .
-     * To disable automatic renewals, delete the resource by calling
-     * `DeleteRegistration` or export it by calling `ExportRegistration`.
-     * 
- * - * AUTOMATIC_RENEWAL = 1; - */ - public static final int AUTOMATIC_RENEWAL_VALUE = 1; - /** - * - * - *
-     * The domain must be explicitly renewed each year before its
-     * `expire_time`. This option is only available when the `Registration`
-     * is in state `EXPORTED`.
-     * To manage the domain's current billing and
-     * renewal settings, go to [Google Domains](https://domains.google/).
-     * 
- * - * MANUAL_RENEWAL = 2; - */ - public static final int MANUAL_RENEWAL_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 RenewalMethod 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 RenewalMethod forNumber(int value) { - switch (value) { - case 0: - return RENEWAL_METHOD_UNSPECIFIED; - case 1: - return AUTOMATIC_RENEWAL; - case 2: - return MANUAL_RENEWAL; - 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 RenewalMethod findValueByNumber(int number) { - return RenewalMethod.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.ManagementSettings.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final RenewalMethod[] VALUES = values(); - - public static RenewalMethod 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 RenewalMethod(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod) - } - - public static final int RENEWAL_METHOD_FIELD_NUMBER = 3; - private int renewalMethod_; - /** - * - * - *
-   * Output only. The renewal method for this `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for renewalMethod. - */ - @java.lang.Override - public int getRenewalMethodValue() { - return renewalMethod_; - } - /** - * - * - *
-   * Output only. The renewal method for this `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The renewalMethod. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod getRenewalMethod() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod result = - com.google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod.valueOf(renewalMethod_); - return result == null - ? com.google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod.UNRECOGNIZED - : result; - } - - public static final int TRANSFER_LOCK_STATE_FIELD_NUMBER = 4; - private int transferLockState_; - /** - * - * - *
-   * Controls whether the domain can be transferred to another registrar.
-   * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - @java.lang.Override - public int getTransferLockStateValue() { - return transferLockState_; - } - /** - * - * - *
-   * Controls whether the domain can be transferred to another registrar.
-   * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.TransferLockState getTransferLockState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.TransferLockState result = - com.google.cloud.domains.v1beta1.TransferLockState.valueOf(transferLockState_); - return result == null - ? com.google.cloud.domains.v1beta1.TransferLockState.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 (renewalMethod_ - != com.google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod - .RENEWAL_METHOD_UNSPECIFIED - .getNumber()) { - output.writeEnum(3, renewalMethod_); - } - if (transferLockState_ - != com.google.cloud.domains.v1beta1.TransferLockState.TRANSFER_LOCK_STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(4, transferLockState_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (renewalMethod_ - != com.google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod - .RENEWAL_METHOD_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, renewalMethod_); - } - if (transferLockState_ - != com.google.cloud.domains.v1beta1.TransferLockState.TRANSFER_LOCK_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, transferLockState_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.ManagementSettings)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.ManagementSettings other = - (com.google.cloud.domains.v1beta1.ManagementSettings) obj; - - if (renewalMethod_ != other.renewalMethod_) return false; - if (transferLockState_ != other.transferLockState_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RENEWAL_METHOD_FIELD_NUMBER; - hash = (53 * hash) + renewalMethod_; - hash = (37 * hash) + TRANSFER_LOCK_STATE_FIELD_NUMBER; - hash = (53 * hash) + transferLockState_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.ManagementSettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ManagementSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ManagementSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ManagementSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ManagementSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ManagementSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ManagementSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ManagementSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ManagementSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ManagementSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ManagementSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ManagementSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1beta1.ManagementSettings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Defines renewal, billing, and transfer settings for a `Registration`.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ManagementSettings} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.ManagementSettings) - com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ManagementSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ManagementSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ManagementSettings.class, - com.google.cloud.domains.v1beta1.ManagementSettings.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.ManagementSettings.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - renewalMethod_ = 0; - - transferLockState_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ManagementSettings_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ManagementSettings getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.ManagementSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ManagementSettings build() { - com.google.cloud.domains.v1beta1.ManagementSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ManagementSettings buildPartial() { - com.google.cloud.domains.v1beta1.ManagementSettings result = - new com.google.cloud.domains.v1beta1.ManagementSettings(this); - result.renewalMethod_ = renewalMethod_; - result.transferLockState_ = transferLockState_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.ManagementSettings) { - return mergeFrom((com.google.cloud.domains.v1beta1.ManagementSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.ManagementSettings other) { - if (other == com.google.cloud.domains.v1beta1.ManagementSettings.getDefaultInstance()) - return this; - if (other.renewalMethod_ != 0) { - setRenewalMethodValue(other.getRenewalMethodValue()); - } - if (other.transferLockState_ != 0) { - setTransferLockStateValue(other.getTransferLockStateValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 24: - { - renewalMethod_ = input.readEnum(); - - break; - } // case 24 - case 32: - { - transferLockState_ = input.readEnum(); - - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int renewalMethod_ = 0; - /** - * - * - *
-     * Output only. The renewal method for this `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for renewalMethod. - */ - @java.lang.Override - public int getRenewalMethodValue() { - return renewalMethod_; - } - /** - * - * - *
-     * Output only. The renewal method for this `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for renewalMethod to set. - * @return This builder for chaining. - */ - public Builder setRenewalMethodValue(int value) { - - renewalMethod_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The renewal method for this `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The renewalMethod. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod getRenewalMethod() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod result = - com.google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod.valueOf(renewalMethod_); - return result == null - ? com.google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. The renewal method for this `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The renewalMethod to set. - * @return This builder for chaining. - */ - public Builder setRenewalMethod( - com.google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod value) { - if (value == null) { - throw new NullPointerException(); - } - - renewalMethod_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The renewal method for this `Registration`.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearRenewalMethod() { - - renewalMethod_ = 0; - onChanged(); - return this; - } - - private int transferLockState_ = 0; - /** - * - * - *
-     * Controls whether the domain can be transferred to another registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - @java.lang.Override - public int getTransferLockStateValue() { - return transferLockState_; - } - /** - * - * - *
-     * Controls whether the domain can be transferred to another registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @param value The enum numeric value on the wire for transferLockState to set. - * @return This builder for chaining. - */ - public Builder setTransferLockStateValue(int value) { - - transferLockState_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Controls whether the domain can be transferred to another registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.TransferLockState getTransferLockState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.TransferLockState result = - com.google.cloud.domains.v1beta1.TransferLockState.valueOf(transferLockState_); - return result == null - ? com.google.cloud.domains.v1beta1.TransferLockState.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Controls whether the domain can be transferred to another registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @param value The transferLockState to set. - * @return This builder for chaining. - */ - public Builder setTransferLockState(com.google.cloud.domains.v1beta1.TransferLockState value) { - if (value == null) { - throw new NullPointerException(); - } - - transferLockState_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Controls whether the domain can be transferred to another registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @return This builder for chaining. - */ - public Builder clearTransferLockState() { - - transferLockState_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.ManagementSettings) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.ManagementSettings) - private static final com.google.cloud.domains.v1beta1.ManagementSettings DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.ManagementSettings(); - } - - public static com.google.cloud.domains.v1beta1.ManagementSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ManagementSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ManagementSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ManagementSettingsOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ManagementSettingsOrBuilder.java deleted file mode 100644 index a165634f..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ManagementSettingsOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface ManagementSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.ManagementSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The renewal method for this `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for renewalMethod. - */ - int getRenewalMethodValue(); - /** - * - * - *
-   * Output only. The renewal method for this `Registration`.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The renewalMethod. - */ - com.google.cloud.domains.v1beta1.ManagementSettings.RenewalMethod getRenewalMethod(); - - /** - * - * - *
-   * Controls whether the domain can be transferred to another registrar.
-   * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - int getTransferLockStateValue(); - /** - * - * - *
-   * Controls whether the domain can be transferred to another registrar.
-   * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - com.google.cloud.domains.v1beta1.TransferLockState getTransferLockState(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/OperationMetadata.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/OperationMetadata.java deleted file mode 100644 index b4ea8a0a..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/OperationMetadata.java +++ /dev/null @@ -1,1671 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Represents the metadata of the long-running operation. Output only.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.OperationMetadata} - */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.OperationMetadata) - OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use OperationMetadata.newBuilder() to construct. - private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private OperationMetadata() { - target_ = ""; - verb_ = ""; - statusDetail_ = ""; - apiVersion_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OperationMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_OperationMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_OperationMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.OperationMetadata.class, - com.google.cloud.domains.v1beta1.OperationMetadata.Builder.class); - } - - public static final int CREATE_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int END_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp endTime_; - /** - * - * - *
-   * The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - @java.lang.Override - public boolean hasEndTime() { - return endTime_ != null; - } - /** - * - * - *
-   * The time the operation finished running.
-   * 
- * - * .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 the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); - } - - public static final int TARGET_FIELD_NUMBER = 3; - private volatile java.lang.Object target_; - /** - * - * - *
-   * Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3; - * - * @return The target. - */ - @java.lang.Override - public java.lang.String getTarget() { - java.lang.Object ref = target_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - target_ = s; - return s; - } - } - /** - * - * - *
-   * Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3; - * - * @return The bytes for target. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { - java.lang.Object ref = target_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - target_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERB_FIELD_NUMBER = 4; - private volatile java.lang.Object verb_; - /** - * - * - *
-   * Name of the verb executed by the operation.
-   * 
- * - * string verb = 4; - * - * @return The verb. - */ - @java.lang.Override - public java.lang.String getVerb() { - java.lang.Object ref = verb_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verb_ = s; - return s; - } - } - /** - * - * - *
-   * Name of the verb executed by the operation.
-   * 
- * - * string verb = 4; - * - * @return The bytes for verb. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { - java.lang.Object ref = verb_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - verb_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_DETAIL_FIELD_NUMBER = 5; - private volatile java.lang.Object statusDetail_; - /** - * - * - *
-   * Human-readable status of the operation, if any.
-   * 
- * - * string status_detail = 5; - * - * @return The statusDetail. - */ - @java.lang.Override - public java.lang.String getStatusDetail() { - java.lang.Object ref = statusDetail_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusDetail_ = s; - return s; - } - } - /** - * - * - *
-   * Human-readable status of the operation, if any.
-   * 
- * - * string status_detail = 5; - * - * @return The bytes for statusDetail. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStatusDetailBytes() { - java.lang.Object ref = statusDetail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - statusDetail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int API_VERSION_FIELD_NUMBER = 6; - private volatile java.lang.Object apiVersion_; - /** - * - * - *
-   * API version used to start the operation.
-   * 
- * - * string api_version = 6; - * - * @return The apiVersion. - */ - @java.lang.Override - public java.lang.String getApiVersion() { - java.lang.Object ref = apiVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - apiVersion_ = s; - return s; - } - } - /** - * - * - *
-   * API version used to start the operation.
-   * 
- * - * string api_version = 6; - * - * @return The bytes for apiVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { - java.lang.Object ref = apiVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - apiVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (createTime_ != null) { - output.writeMessage(1, getCreateTime()); - } - if (endTime_ != null) { - output.writeMessage(2, getEndTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusDetail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, apiVersion_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); - } - if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, apiVersion_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.OperationMetadata)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.OperationMetadata other = - (com.google.cloud.domains.v1beta1.OperationMetadata) obj; - - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasEndTime() != other.hasEndTime()) return false; - if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusDetail().equals(other.getStatusDetail())) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasEndTime()) { - hash = (37 * hash) + END_TIME_FIELD_NUMBER; - hash = (53 * hash) + getEndTime().hashCode(); - } - hash = (37 * hash) + TARGET_FIELD_NUMBER; - hash = (53 * hash) + getTarget().hashCode(); - hash = (37 * hash) + VERB_FIELD_NUMBER; - hash = (53 * hash) + getVerb().hashCode(); - hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; - hash = (53 * hash) + getStatusDetail().hashCode(); - hash = (37 * hash) + API_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getApiVersion().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.OperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.OperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.OperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1beta1.OperationMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Represents the metadata of the long-running operation. Output only.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.OperationMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.OperationMetadata) - com.google.cloud.domains.v1beta1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_OperationMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_OperationMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.OperationMetadata.class, - com.google.cloud.domains.v1beta1.OperationMetadata.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.OperationMetadata.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - target_ = ""; - - verb_ = ""; - - statusDetail_ = ""; - - apiVersion_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_OperationMetadata_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.OperationMetadata getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.OperationMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.OperationMetadata build() { - com.google.cloud.domains.v1beta1.OperationMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.OperationMetadata buildPartial() { - com.google.cloud.domains.v1beta1.OperationMetadata result = - new com.google.cloud.domains.v1beta1.OperationMetadata(this); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); - } - result.target_ = target_; - result.verb_ = verb_; - result.statusDetail_ = statusDetail_; - result.apiVersion_ = apiVersion_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.OperationMetadata) { - return mergeFrom((com.google.cloud.domains.v1beta1.OperationMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.OperationMetadata other) { - if (other == com.google.cloud.domains.v1beta1.OperationMetadata.getDefaultInstance()) - return this; - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasEndTime()) { - mergeEndTime(other.getEndTime()); - } - if (!other.getTarget().isEmpty()) { - target_ = other.target_; - onChanged(); - } - if (!other.getVerb().isEmpty()) { - verb_ = other.verb_; - onChanged(); - } - if (!other.getStatusDetail().isEmpty()) { - statusDetail_ = other.statusDetail_; - onChanged(); - } - if (!other.getApiVersion().isEmpty()) { - apiVersion_ = other.apiVersion_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - statusDetail_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: - { - apiVersion_ = input.readStringRequireUtf8(); - - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp endTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; - /** - * - * - *
-     * The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; - } - /** - * - * - *
-     * The time the operation finished running.
-     * 
- * - * .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 the operation finished running.
-     * 
- * - * .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 the operation finished running.
-     * 
- * - * .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 the operation finished running.
-     * 
- * - * .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 the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - - onChanged(); - return getEndTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The time the operation finished running.
-     * 
- * - * .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 the operation finished running.
-     * 
- * - * .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_; - } - - private java.lang.Object target_ = ""; - /** - * - * - *
-     * Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3; - * - * @return The target. - */ - public java.lang.String getTarget() { - java.lang.Object ref = target_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - target_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3; - * - * @return The bytes for target. - */ - public com.google.protobuf.ByteString getTargetBytes() { - java.lang.Object ref = target_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - target_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3; - * - * @param value The target to set. - * @return This builder for chaining. - */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - target_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3; - * - * @return This builder for chaining. - */ - public Builder clearTarget() { - - target_ = getDefaultInstance().getTarget(); - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3; - * - * @param value The bytes for target to set. - * @return This builder for chaining. - */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - target_ = value; - onChanged(); - return this; - } - - private java.lang.Object verb_ = ""; - /** - * - * - *
-     * Name of the verb executed by the operation.
-     * 
- * - * string verb = 4; - * - * @return The verb. - */ - public java.lang.String getVerb() { - java.lang.Object ref = verb_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verb_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Name of the verb executed by the operation.
-     * 
- * - * string verb = 4; - * - * @return The bytes for verb. - */ - public com.google.protobuf.ByteString getVerbBytes() { - java.lang.Object ref = verb_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - verb_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Name of the verb executed by the operation.
-     * 
- * - * string verb = 4; - * - * @param value The verb to set. - * @return This builder for chaining. - */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - verb_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the verb executed by the operation.
-     * 
- * - * string verb = 4; - * - * @return This builder for chaining. - */ - public Builder clearVerb() { - - verb_ = getDefaultInstance().getVerb(); - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the verb executed by the operation.
-     * 
- * - * string verb = 4; - * - * @param value The bytes for verb to set. - * @return This builder for chaining. - */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - verb_ = value; - onChanged(); - return this; - } - - private java.lang.Object statusDetail_ = ""; - /** - * - * - *
-     * Human-readable status of the operation, if any.
-     * 
- * - * string status_detail = 5; - * - * @return The statusDetail. - */ - public java.lang.String getStatusDetail() { - java.lang.Object ref = statusDetail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusDetail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Human-readable status of the operation, if any.
-     * 
- * - * string status_detail = 5; - * - * @return The bytes for statusDetail. - */ - public com.google.protobuf.ByteString getStatusDetailBytes() { - java.lang.Object ref = statusDetail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - statusDetail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Human-readable status of the operation, if any.
-     * 
- * - * string status_detail = 5; - * - * @param value The statusDetail to set. - * @return This builder for chaining. - */ - public Builder setStatusDetail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusDetail_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Human-readable status of the operation, if any.
-     * 
- * - * string status_detail = 5; - * - * @return This builder for chaining. - */ - public Builder clearStatusDetail() { - - statusDetail_ = getDefaultInstance().getStatusDetail(); - onChanged(); - return this; - } - /** - * - * - *
-     * Human-readable status of the operation, if any.
-     * 
- * - * string status_detail = 5; - * - * @param value The bytes for statusDetail to set. - * @return This builder for chaining. - */ - public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusDetail_ = value; - onChanged(); - return this; - } - - private java.lang.Object apiVersion_ = ""; - /** - * - * - *
-     * API version used to start the operation.
-     * 
- * - * string api_version = 6; - * - * @return The apiVersion. - */ - public java.lang.String getApiVersion() { - java.lang.Object ref = apiVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - apiVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * API version used to start the operation.
-     * 
- * - * string api_version = 6; - * - * @return The bytes for apiVersion. - */ - public com.google.protobuf.ByteString getApiVersionBytes() { - java.lang.Object ref = apiVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - apiVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * API version used to start the operation.
-     * 
- * - * string api_version = 6; - * - * @param value The apiVersion to set. - * @return This builder for chaining. - */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - apiVersion_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * API version used to start the operation.
-     * 
- * - * string api_version = 6; - * - * @return This builder for chaining. - */ - public Builder clearApiVersion() { - - apiVersion_ = getDefaultInstance().getApiVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * API version used to start the operation.
-     * 
- * - * string api_version = 6; - * - * @param value The bytes for apiVersion to set. - * @return This builder for chaining. - */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - apiVersion_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.OperationMetadata) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.OperationMetadata) - private static final com.google.cloud.domains.v1beta1.OperationMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.OperationMetadata(); - } - - public static com.google.cloud.domains.v1beta1.OperationMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.OperationMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/OperationMetadataOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/OperationMetadataOrBuilder.java deleted file mode 100644 index bbfedc09..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/OperationMetadataOrBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface OperationMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.OperationMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - boolean hasEndTime(); - /** - * - * - *
-   * The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return The endTime. - */ - com.google.protobuf.Timestamp getEndTime(); - /** - * - * - *
-   * The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); - - /** - * - * - *
-   * Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3; - * - * @return The target. - */ - java.lang.String getTarget(); - /** - * - * - *
-   * Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3; - * - * @return The bytes for target. - */ - com.google.protobuf.ByteString getTargetBytes(); - - /** - * - * - *
-   * Name of the verb executed by the operation.
-   * 
- * - * string verb = 4; - * - * @return The verb. - */ - java.lang.String getVerb(); - /** - * - * - *
-   * Name of the verb executed by the operation.
-   * 
- * - * string verb = 4; - * - * @return The bytes for verb. - */ - com.google.protobuf.ByteString getVerbBytes(); - - /** - * - * - *
-   * Human-readable status of the operation, if any.
-   * 
- * - * string status_detail = 5; - * - * @return The statusDetail. - */ - java.lang.String getStatusDetail(); - /** - * - * - *
-   * Human-readable status of the operation, if any.
-   * 
- * - * string status_detail = 5; - * - * @return The bytes for statusDetail. - */ - com.google.protobuf.ByteString getStatusDetailBytes(); - - /** - * - * - *
-   * API version used to start the operation.
-   * 
- * - * string api_version = 6; - * - * @return The apiVersion. - */ - java.lang.String getApiVersion(); - /** - * - * - *
-   * API version used to start the operation.
-   * 
- * - * string api_version = 6; - * - * @return The bytes for apiVersion. - */ - com.google.protobuf.ByteString getApiVersionBytes(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegisterDomainRequest.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegisterDomainRequest.java deleted file mode 100644 index 2a566d96..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegisterDomainRequest.java +++ /dev/null @@ -1,2126 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Request for the `RegisterDomain` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.RegisterDomainRequest} - */ -public final class RegisterDomainRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.RegisterDomainRequest) - RegisterDomainRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RegisterDomainRequest.newBuilder() to construct. - private RegisterDomainRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RegisterDomainRequest() { - parent_ = ""; - domainNotices_ = java.util.Collections.emptyList(); - contactNotices_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RegisterDomainRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RegisterDomainRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RegisterDomainRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.RegisterDomainRequest.class, - com.google.cloud.domains.v1beta1.RegisterDomainRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGISTRATION_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1beta1.Registration registration_; - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - @java.lang.Override - public boolean hasRegistration() { - return registration_ != null; - } - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.Registration getRegistration() { - return registration_ == null - ? com.google.cloud.domains.v1beta1.Registration.getDefaultInstance() - : registration_; - } - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegistrationOrBuilder getRegistrationOrBuilder() { - return getRegistration(); - } - - public static final int DOMAIN_NOTICES_FIELD_NUMBER = 3; - private java.util.List domainNotices_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.DomainNotice> - domainNotices_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.DomainNotice>() { - public com.google.cloud.domains.v1beta1.DomainNotice convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.DomainNotice result = - com.google.cloud.domains.v1beta1.DomainNotice.valueOf(from); - return result == null - ? com.google.cloud.domains.v1beta1.DomainNotice.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @return A list containing the domainNotices. - */ - @java.lang.Override - public java.util.List getDomainNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.DomainNotice>( - domainNotices_, domainNotices_converter_); - } - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @return The count of domainNotices. - */ - @java.lang.Override - public int getDomainNoticesCount() { - return domainNotices_.size(); - } - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DomainNotice getDomainNotices(int index) { - return domainNotices_converter_.convert(domainNotices_.get(index)); - } - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - @java.lang.Override - public java.util.List getDomainNoticesValueList() { - return domainNotices_; - } - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - @java.lang.Override - public int getDomainNoticesValue(int index) { - return domainNotices_.get(index); - } - - private int domainNoticesMemoizedSerializedSize; - - public static final int CONTACT_NOTICES_FIELD_NUMBER = 4; - private java.util.List contactNotices_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactNotice> - contactNotices_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactNotice>() { - public com.google.cloud.domains.v1beta1.ContactNotice convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.ContactNotice result = - com.google.cloud.domains.v1beta1.ContactNotice.valueOf(from); - return result == null - ? com.google.cloud.domains.v1beta1.ContactNotice.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - @java.lang.Override - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesValueList() { - return contactNotices_; - } - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - @java.lang.Override - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - - private int contactNoticesMemoizedSerializedSize; - - public static final int YEARLY_PRICE_FIELD_NUMBER = 5; - private com.google.type.Money yearlyPrice_; - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - @java.lang.Override - public boolean hasYearlyPrice() { - return yearlyPrice_ != null; - } - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - @java.lang.Override - public com.google.type.Money getYearlyPrice() { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - return getYearlyPrice(); - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 6; - private boolean validateOnly_; - /** - * - * - *
-   * When true, only validation is performed, without actually registering
-   * the domain. Follows:
-   * https://cloud.google.com/apis/design/design_patterns#request_validation
-   * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (registration_ != null) { - output.writeMessage(2, getRegistration()); - } - if (getDomainNoticesList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(domainNoticesMemoizedSerializedSize); - } - for (int i = 0; i < domainNotices_.size(); i++) { - output.writeEnumNoTag(domainNotices_.get(i)); - } - if (getContactNoticesList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(contactNoticesMemoizedSerializedSize); - } - for (int i = 0; i < contactNotices_.size(); i++) { - output.writeEnumNoTag(contactNotices_.get(i)); - } - if (yearlyPrice_ != null) { - output.writeMessage(5, getYearlyPrice()); - } - if (validateOnly_ != false) { - output.writeBool(6, validateOnly_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (registration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRegistration()); - } - { - int dataSize = 0; - for (int i = 0; i < domainNotices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(domainNotices_.get(i)); - } - size += dataSize; - if (!getDomainNoticesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - domainNoticesMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < contactNotices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(contactNotices_.get(i)); - } - size += dataSize; - if (!getContactNoticesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - contactNoticesMemoizedSerializedSize = dataSize; - } - if (yearlyPrice_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getYearlyPrice()); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, validateOnly_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.RegisterDomainRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.RegisterDomainRequest other = - (com.google.cloud.domains.v1beta1.RegisterDomainRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasRegistration() != other.hasRegistration()) return false; - if (hasRegistration()) { - if (!getRegistration().equals(other.getRegistration())) return false; - } - if (!domainNotices_.equals(other.domainNotices_)) return false; - if (!contactNotices_.equals(other.contactNotices_)) return false; - if (hasYearlyPrice() != other.hasYearlyPrice()) return false; - if (hasYearlyPrice()) { - if (!getYearlyPrice().equals(other.getYearlyPrice())) return false; - } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasRegistration()) { - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - } - if (getDomainNoticesCount() > 0) { - hash = (37 * hash) + DOMAIN_NOTICES_FIELD_NUMBER; - hash = (53 * hash) + domainNotices_.hashCode(); - } - if (getContactNoticesCount() > 0) { - hash = (37 * hash) + CONTACT_NOTICES_FIELD_NUMBER; - hash = (53 * hash) + contactNotices_.hashCode(); - } - if (hasYearlyPrice()) { - hash = (37 * hash) + YEARLY_PRICE_FIELD_NUMBER; - hash = (53 * hash) + getYearlyPrice().hashCode(); - } - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.RegisterDomainRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RegisterDomainRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RegisterDomainRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RegisterDomainRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RegisterDomainRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RegisterDomainRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RegisterDomainRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RegisterDomainRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RegisterDomainRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RegisterDomainRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RegisterDomainRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RegisterDomainRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.RegisterDomainRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `RegisterDomain` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.RegisterDomainRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.RegisterDomainRequest) - com.google.cloud.domains.v1beta1.RegisterDomainRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RegisterDomainRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RegisterDomainRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.RegisterDomainRequest.class, - com.google.cloud.domains.v1beta1.RegisterDomainRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.RegisterDomainRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (registrationBuilder_ == null) { - registration_ = null; - } else { - registration_ = null; - registrationBuilder_ = null; - } - domainNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RegisterDomainRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegisterDomainRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.RegisterDomainRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegisterDomainRequest build() { - com.google.cloud.domains.v1beta1.RegisterDomainRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegisterDomainRequest buildPartial() { - com.google.cloud.domains.v1beta1.RegisterDomainRequest result = - new com.google.cloud.domains.v1beta1.RegisterDomainRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; - if (registrationBuilder_ == null) { - result.registration_ = registration_; - } else { - result.registration_ = registrationBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - domainNotices_ = java.util.Collections.unmodifiableList(domainNotices_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.domainNotices_ = domainNotices_; - if (((bitField0_ & 0x00000002) != 0)) { - contactNotices_ = java.util.Collections.unmodifiableList(contactNotices_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.contactNotices_ = contactNotices_; - if (yearlyPriceBuilder_ == null) { - result.yearlyPrice_ = yearlyPrice_; - } else { - result.yearlyPrice_ = yearlyPriceBuilder_.build(); - } - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.RegisterDomainRequest) { - return mergeFrom((com.google.cloud.domains.v1beta1.RegisterDomainRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.RegisterDomainRequest other) { - if (other == com.google.cloud.domains.v1beta1.RegisterDomainRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasRegistration()) { - mergeRegistration(other.getRegistration()); - } - if (!other.domainNotices_.isEmpty()) { - if (domainNotices_.isEmpty()) { - domainNotices_ = other.domainNotices_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDomainNoticesIsMutable(); - domainNotices_.addAll(other.domainNotices_); - } - onChanged(); - } - if (!other.contactNotices_.isEmpty()) { - if (contactNotices_.isEmpty()) { - contactNotices_ = other.contactNotices_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureContactNoticesIsMutable(); - contactNotices_.addAll(other.contactNotices_); - } - onChanged(); - } - if (other.hasYearlyPrice()) { - mergeYearlyPrice(other.getYearlyPrice()); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getRegistrationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 24: - { - int tmpRaw = input.readEnum(); - ensureDomainNoticesIsMutable(); - domainNotices_.add(tmpRaw); - break; - } // case 24 - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureDomainNoticesIsMutable(); - domainNotices_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 32: - { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - break; - } // case 32 - case 34: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 34 - case 42: - { - input.readMessage(getYearlyPriceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 48: - { - validateOnly_ = input.readBool(); - - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1beta1.Registration registration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.Registration, - com.google.cloud.domains.v1beta1.Registration.Builder, - com.google.cloud.domains.v1beta1.RegistrationOrBuilder> - registrationBuilder_; - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - public boolean hasRegistration() { - return registrationBuilder_ != null || registration_ != null; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - public com.google.cloud.domains.v1beta1.Registration getRegistration() { - if (registrationBuilder_ == null) { - return registration_ == null - ? com.google.cloud.domains.v1beta1.Registration.getDefaultInstance() - : registration_; - } else { - return registrationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistration(com.google.cloud.domains.v1beta1.Registration value) { - if (registrationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - registration_ = value; - onChanged(); - } else { - registrationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistration( - com.google.cloud.domains.v1beta1.Registration.Builder builderForValue) { - if (registrationBuilder_ == null) { - registration_ = builderForValue.build(); - onChanged(); - } else { - registrationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRegistration(com.google.cloud.domains.v1beta1.Registration value) { - if (registrationBuilder_ == null) { - if (registration_ != null) { - registration_ = - com.google.cloud.domains.v1beta1.Registration.newBuilder(registration_) - .mergeFrom(value) - .buildPartial(); - } else { - registration_ = value; - } - onChanged(); - } else { - registrationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRegistration() { - if (registrationBuilder_ == null) { - registration_ = null; - onChanged(); - } else { - registration_ = null; - registrationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1beta1.Registration.Builder getRegistrationBuilder() { - - onChanged(); - return getRegistrationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1beta1.RegistrationOrBuilder getRegistrationOrBuilder() { - if (registrationBuilder_ != null) { - return registrationBuilder_.getMessageOrBuilder(); - } else { - return registration_ == null - ? com.google.cloud.domains.v1beta1.Registration.getDefaultInstance() - : registration_; - } - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.Registration, - com.google.cloud.domains.v1beta1.Registration.Builder, - com.google.cloud.domains.v1beta1.RegistrationOrBuilder> - getRegistrationFieldBuilder() { - if (registrationBuilder_ == null) { - registrationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.Registration, - com.google.cloud.domains.v1beta1.Registration.Builder, - com.google.cloud.domains.v1beta1.RegistrationOrBuilder>( - getRegistration(), getParentForChildren(), isClean()); - registration_ = null; - } - return registrationBuilder_; - } - - private java.util.List domainNotices_ = java.util.Collections.emptyList(); - - private void ensureDomainNoticesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - domainNotices_ = new java.util.ArrayList(domainNotices_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @return A list containing the domainNotices. - */ - public java.util.List getDomainNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.DomainNotice>( - domainNotices_, domainNotices_converter_); - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @return The count of domainNotices. - */ - public int getDomainNoticesCount() { - return domainNotices_.size(); - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - public com.google.cloud.domains.v1beta1.DomainNotice getDomainNotices(int index) { - return domainNotices_converter_.convert(domainNotices_.get(index)); - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @param index The index to set the value at. - * @param value The domainNotices to set. - * @return This builder for chaining. - */ - public Builder setDomainNotices( - int index, com.google.cloud.domains.v1beta1.DomainNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainNoticesIsMutable(); - domainNotices_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @param value The domainNotices to add. - * @return This builder for chaining. - */ - public Builder addDomainNotices(com.google.cloud.domains.v1beta1.DomainNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainNoticesIsMutable(); - domainNotices_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @param values The domainNotices to add. - * @return This builder for chaining. - */ - public Builder addAllDomainNotices( - java.lang.Iterable values) { - ensureDomainNoticesIsMutable(); - for (com.google.cloud.domains.v1beta1.DomainNotice value : values) { - domainNotices_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @return This builder for chaining. - */ - public Builder clearDomainNotices() { - domainNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - public java.util.List getDomainNoticesValueList() { - return java.util.Collections.unmodifiableList(domainNotices_); - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - public int getDomainNoticesValue(int index) { - return domainNotices_.get(index); - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for domainNotices to set. - * @return This builder for chaining. - */ - public Builder setDomainNoticesValue(int index, int value) { - ensureDomainNoticesIsMutable(); - domainNotices_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @param value The enum numeric value on the wire for domainNotices to add. - * @return This builder for chaining. - */ - public Builder addDomainNoticesValue(int value) { - ensureDomainNoticesIsMutable(); - domainNotices_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of domain notices that you acknowledge. Call
-     * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @param values The enum numeric values on the wire for domainNotices to add. - * @return This builder for chaining. - */ - public Builder addAllDomainNoticesValue(java.lang.Iterable values) { - ensureDomainNoticesIsMutable(); - for (int value : values) { - domainNotices_.add(value); - } - onChanged(); - return this; - } - - private java.util.List contactNotices_ = java.util.Collections.emptyList(); - - private void ensureContactNoticesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - contactNotices_ = new java.util.ArrayList(contactNotices_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - public com.google.cloud.domains.v1beta1.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param index The index to set the value at. - * @param value The contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNotices( - int index, com.google.cloud.domains.v1beta1.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param value The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNotices(com.google.cloud.domains.v1beta1.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param values The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNotices( - java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (com.google.cloud.domains.v1beta1.ContactNotice value : values) { - contactNotices_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return This builder for chaining. - */ - public Builder clearContactNotices() { - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - public java.util.List getContactNoticesValueList() { - return java.util.Collections.unmodifiableList(contactNotices_); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNoticesValue(int index, int value) { - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param value The enum numeric value on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNoticesValue(int value) { - ensureContactNoticesIsMutable(); - contactNotices_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that the caller acknowledges. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param values The enum numeric values on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNoticesValue(java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (int value : values) { - contactNotices_.add(value); - } - onChanged(); - return this; - } - - private com.google.type.Money yearlyPrice_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - yearlyPriceBuilder_; - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - public boolean hasYearlyPrice() { - return yearlyPriceBuilder_ != null || yearlyPrice_ != null; - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - public com.google.type.Money getYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } else { - return yearlyPriceBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - yearlyPrice_ = value; - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setYearlyPrice(com.google.type.Money.Builder builderForValue) { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = builderForValue.build(); - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (yearlyPrice_ != null) { - yearlyPrice_ = - com.google.type.Money.newBuilder(yearlyPrice_).mergeFrom(value).buildPartial(); - } else { - yearlyPrice_ = value; - } - onChanged(); - } else { - yearlyPriceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - onChanged(); - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.type.Money.Builder getYearlyPriceBuilder() { - - onChanged(); - return getYearlyPriceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - if (yearlyPriceBuilder_ != null) { - return yearlyPriceBuilder_.getMessageOrBuilder(); - } else { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - } - /** - * - * - *
-     * Required. Yearly price to register or renew the domain.
-     * The value that should be put here can be obtained from
-     * RetrieveRegisterParameters or SearchDomains calls.
-     * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - getYearlyPriceFieldBuilder() { - if (yearlyPriceBuilder_ == null) { - yearlyPriceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, - com.google.type.Money.Builder, - com.google.type.MoneyOrBuilder>( - getYearlyPrice(), getParentForChildren(), isClean()); - yearlyPrice_ = null; - } - return yearlyPriceBuilder_; - } - - private boolean validateOnly_; - /** - * - * - *
-     * When true, only validation is performed, without actually registering
-     * the domain. Follows:
-     * https://cloud.google.com/apis/design/design_patterns#request_validation
-     * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - * - * - *
-     * When true, only validation is performed, without actually registering
-     * the domain. Follows:
-     * https://cloud.google.com/apis/design/design_patterns#request_validation
-     * 
- * - * bool validate_only = 6; - * - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * When true, only validation is performed, without actually registering
-     * the domain. Follows:
-     * https://cloud.google.com/apis/design/design_patterns#request_validation
-     * 
- * - * bool validate_only = 6; - * - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.RegisterDomainRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.RegisterDomainRequest) - private static final com.google.cloud.domains.v1beta1.RegisterDomainRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.RegisterDomainRequest(); - } - - public static com.google.cloud.domains.v1beta1.RegisterDomainRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegisterDomainRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegisterDomainRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegisterDomainRequestOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegisterDomainRequestOrBuilder.java deleted file mode 100644 index 2c2f6cd1..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegisterDomainRequestOrBuilder.java +++ /dev/null @@ -1,294 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface RegisterDomainRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.RegisterDomainRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - boolean hasRegistration(); - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - com.google.cloud.domains.v1beta1.Registration getRegistration(); - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1beta1.RegistrationOrBuilder getRegistrationOrBuilder(); - - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @return A list containing the domainNotices. - */ - java.util.List getDomainNoticesList(); - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @return The count of domainNotices. - */ - int getDomainNoticesCount(); - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - com.google.cloud.domains.v1beta1.DomainNotice getDomainNotices(int index); - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - java.util.List getDomainNoticesValueList(); - /** - * - * - *
-   * The list of domain notices that you acknowledge. Call
-   * `RetrieveRegisterParameters` to see the notices that need acknowledgement.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - int getDomainNoticesValue(int index); - - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return A list containing the contactNotices. - */ - java.util.List getContactNoticesList(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return The count of contactNotices. - */ - int getContactNoticesCount(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - com.google.cloud.domains.v1beta1.ContactNotice getContactNotices(int index); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - java.util.List getContactNoticesValueList(); - /** - * - * - *
-   * The list of contact notices that the caller acknowledges. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - int getContactNoticesValue(int index); - - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - boolean hasYearlyPrice(); - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - com.google.type.Money getYearlyPrice(); - /** - * - * - *
-   * Required. Yearly price to register or renew the domain.
-   * The value that should be put here can be obtained from
-   * RetrieveRegisterParameters or SearchDomains calls.
-   * 
- * - * .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder(); - - /** - * - * - *
-   * When true, only validation is performed, without actually registering
-   * the domain. Follows:
-   * https://cloud.google.com/apis/design/design_patterns#request_validation
-   * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegisterParameters.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegisterParameters.java deleted file mode 100644 index 41596e28..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegisterParameters.java +++ /dev/null @@ -1,2020 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Parameters required to register a new domain.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.RegisterParameters} - */ -public final class RegisterParameters extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.RegisterParameters) - RegisterParametersOrBuilder { - private static final long serialVersionUID = 0L; - // Use RegisterParameters.newBuilder() to construct. - private RegisterParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RegisterParameters() { - domainName_ = ""; - availability_ = 0; - supportedPrivacy_ = java.util.Collections.emptyList(); - domainNotices_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RegisterParameters(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RegisterParameters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RegisterParameters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.RegisterParameters.class, - com.google.cloud.domains.v1beta1.RegisterParameters.Builder.class); - } - - /** - * - * - *
-   * Possible availability states of a domain name.
-   * 
- * - * Protobuf enum {@code google.cloud.domains.v1beta1.RegisterParameters.Availability} - */ - public enum Availability implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The availability is unspecified.
-     * 
- * - * AVAILABILITY_UNSPECIFIED = 0; - */ - AVAILABILITY_UNSPECIFIED(0), - /** - * - * - *
-     * The domain is available for registration.
-     * 
- * - * AVAILABLE = 1; - */ - AVAILABLE(1), - /** - * - * - *
-     * The domain is not available for registration. Generally this means it is
-     * already registered to another party.
-     * 
- * - * UNAVAILABLE = 2; - */ - UNAVAILABLE(2), - /** - * - * - *
-     * The domain is not currently supported by Cloud Domains, but may
-     * be available elsewhere.
-     * 
- * - * UNSUPPORTED = 3; - */ - UNSUPPORTED(3), - /** - * - * - *
-     * Cloud Domains is unable to determine domain availability, generally
-     * due to system maintenance at the domain name registry.
-     * 
- * - * UNKNOWN = 4; - */ - UNKNOWN(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The availability is unspecified.
-     * 
- * - * AVAILABILITY_UNSPECIFIED = 0; - */ - public static final int AVAILABILITY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The domain is available for registration.
-     * 
- * - * AVAILABLE = 1; - */ - public static final int AVAILABLE_VALUE = 1; - /** - * - * - *
-     * The domain is not available for registration. Generally this means it is
-     * already registered to another party.
-     * 
- * - * UNAVAILABLE = 2; - */ - public static final int UNAVAILABLE_VALUE = 2; - /** - * - * - *
-     * The domain is not currently supported by Cloud Domains, but may
-     * be available elsewhere.
-     * 
- * - * UNSUPPORTED = 3; - */ - public static final int UNSUPPORTED_VALUE = 3; - /** - * - * - *
-     * Cloud Domains is unable to determine domain availability, generally
-     * due to system maintenance at the domain name registry.
-     * 
- * - * UNKNOWN = 4; - */ - public static final int UNKNOWN_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 Availability 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 Availability forNumber(int value) { - switch (value) { - case 0: - return AVAILABILITY_UNSPECIFIED; - case 1: - return AVAILABLE; - case 2: - return UNAVAILABLE; - case 3: - return UNSUPPORTED; - case 4: - return UNKNOWN; - 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 Availability findValueByNumber(int number) { - return Availability.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.RegisterParameters.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Availability[] VALUES = values(); - - public static Availability 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 Availability(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1beta1.RegisterParameters.Availability) - } - - public static final int DOMAIN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object domainName_; - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - @java.lang.Override - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } - } - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AVAILABILITY_FIELD_NUMBER = 2; - private int availability_; - /** - * - * - *
-   * Indicates whether the domain is available for registration. This value is
-   * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-   * approximate when obtained by calling `SearchDomains`.
-   * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters.Availability availability = 2; - * - * @return The enum numeric value on the wire for availability. - */ - @java.lang.Override - public int getAvailabilityValue() { - return availability_; - } - /** - * - * - *
-   * Indicates whether the domain is available for registration. This value is
-   * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-   * approximate when obtained by calling `SearchDomains`.
-   * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters.Availability availability = 2; - * - * @return The availability. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegisterParameters.Availability getAvailability() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.RegisterParameters.Availability result = - com.google.cloud.domains.v1beta1.RegisterParameters.Availability.valueOf(availability_); - return result == null - ? com.google.cloud.domains.v1beta1.RegisterParameters.Availability.UNRECOGNIZED - : result; - } - - public static final int SUPPORTED_PRIVACY_FIELD_NUMBER = 3; - private java.util.List supportedPrivacy_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactPrivacy> - supportedPrivacy_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactPrivacy>() { - public com.google.cloud.domains.v1beta1.ContactPrivacy convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.ContactPrivacy result = - com.google.cloud.domains.v1beta1.ContactPrivacy.valueOf(from); - return result == null - ? com.google.cloud.domains.v1beta1.ContactPrivacy.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the supportedPrivacy. - */ - @java.lang.Override - public java.util.List getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @return The count of supportedPrivacy. - */ - @java.lang.Override - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - @java.lang.Override - public java.util.List getSupportedPrivacyValueList() { - return supportedPrivacy_; - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - @java.lang.Override - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - - private int supportedPrivacyMemoizedSerializedSize; - - public static final int DOMAIN_NOTICES_FIELD_NUMBER = 4; - private java.util.List domainNotices_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.DomainNotice> - domainNotices_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.DomainNotice>() { - public com.google.cloud.domains.v1beta1.DomainNotice convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.DomainNotice result = - com.google.cloud.domains.v1beta1.DomainNotice.valueOf(from); - return result == null - ? com.google.cloud.domains.v1beta1.DomainNotice.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @return A list containing the domainNotices. - */ - @java.lang.Override - public java.util.List getDomainNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.DomainNotice>( - domainNotices_, domainNotices_converter_); - } - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @return The count of domainNotices. - */ - @java.lang.Override - public int getDomainNoticesCount() { - return domainNotices_.size(); - } - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DomainNotice getDomainNotices(int index) { - return domainNotices_converter_.convert(domainNotices_.get(index)); - } - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - @java.lang.Override - public java.util.List getDomainNoticesValueList() { - return domainNotices_; - } - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - @java.lang.Override - public int getDomainNoticesValue(int index) { - return domainNotices_.get(index); - } - - private int domainNoticesMemoizedSerializedSize; - - public static final int YEARLY_PRICE_FIELD_NUMBER = 5; - private com.google.type.Money yearlyPrice_; - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - * - * @return Whether the yearlyPrice field is set. - */ - @java.lang.Override - public boolean hasYearlyPrice() { - return yearlyPrice_ != null; - } - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - * - * @return The yearlyPrice. - */ - @java.lang.Override - public com.google.type.Money getYearlyPrice() { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - */ - @java.lang.Override - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - return getYearlyPrice(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domainName_); - } - if (availability_ - != com.google.cloud.domains.v1beta1.RegisterParameters.Availability.AVAILABILITY_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, availability_); - } - if (getSupportedPrivacyList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(supportedPrivacyMemoizedSerializedSize); - } - for (int i = 0; i < supportedPrivacy_.size(); i++) { - output.writeEnumNoTag(supportedPrivacy_.get(i)); - } - if (getDomainNoticesList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(domainNoticesMemoizedSerializedSize); - } - for (int i = 0; i < domainNotices_.size(); i++) { - output.writeEnumNoTag(domainNotices_.get(i)); - } - if (yearlyPrice_ != null) { - output.writeMessage(5, getYearlyPrice()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domainName_); - } - if (availability_ - != com.google.cloud.domains.v1beta1.RegisterParameters.Availability.AVAILABILITY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, availability_); - } - { - int dataSize = 0; - for (int i = 0; i < supportedPrivacy_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(supportedPrivacy_.get(i)); - } - size += dataSize; - if (!getSupportedPrivacyList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - supportedPrivacyMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < domainNotices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(domainNotices_.get(i)); - } - size += dataSize; - if (!getDomainNoticesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - domainNoticesMemoizedSerializedSize = dataSize; - } - if (yearlyPrice_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getYearlyPrice()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.RegisterParameters)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.RegisterParameters other = - (com.google.cloud.domains.v1beta1.RegisterParameters) obj; - - if (!getDomainName().equals(other.getDomainName())) return false; - if (availability_ != other.availability_) return false; - if (!supportedPrivacy_.equals(other.supportedPrivacy_)) return false; - if (!domainNotices_.equals(other.domainNotices_)) return false; - if (hasYearlyPrice() != other.hasYearlyPrice()) return false; - if (hasYearlyPrice()) { - if (!getYearlyPrice().equals(other.getYearlyPrice())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOMAIN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDomainName().hashCode(); - hash = (37 * hash) + AVAILABILITY_FIELD_NUMBER; - hash = (53 * hash) + availability_; - if (getSupportedPrivacyCount() > 0) { - hash = (37 * hash) + SUPPORTED_PRIVACY_FIELD_NUMBER; - hash = (53 * hash) + supportedPrivacy_.hashCode(); - } - if (getDomainNoticesCount() > 0) { - hash = (37 * hash) + DOMAIN_NOTICES_FIELD_NUMBER; - hash = (53 * hash) + domainNotices_.hashCode(); - } - if (hasYearlyPrice()) { - hash = (37 * hash) + YEARLY_PRICE_FIELD_NUMBER; - hash = (53 * hash) + getYearlyPrice().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.RegisterParameters parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RegisterParameters parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RegisterParameters parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RegisterParameters parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RegisterParameters parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RegisterParameters parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RegisterParameters parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RegisterParameters parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RegisterParameters parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RegisterParameters parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RegisterParameters parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RegisterParameters parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1beta1.RegisterParameters prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 required to register a new domain.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.RegisterParameters} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.RegisterParameters) - com.google.cloud.domains.v1beta1.RegisterParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RegisterParameters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RegisterParameters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.RegisterParameters.class, - com.google.cloud.domains.v1beta1.RegisterParameters.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.RegisterParameters.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - domainName_ = ""; - - availability_ = 0; - - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - domainNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RegisterParameters_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegisterParameters getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.RegisterParameters.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegisterParameters build() { - com.google.cloud.domains.v1beta1.RegisterParameters result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegisterParameters buildPartial() { - com.google.cloud.domains.v1beta1.RegisterParameters result = - new com.google.cloud.domains.v1beta1.RegisterParameters(this); - int from_bitField0_ = bitField0_; - result.domainName_ = domainName_; - result.availability_ = availability_; - if (((bitField0_ & 0x00000001) != 0)) { - supportedPrivacy_ = java.util.Collections.unmodifiableList(supportedPrivacy_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.supportedPrivacy_ = supportedPrivacy_; - if (((bitField0_ & 0x00000002) != 0)) { - domainNotices_ = java.util.Collections.unmodifiableList(domainNotices_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.domainNotices_ = domainNotices_; - if (yearlyPriceBuilder_ == null) { - result.yearlyPrice_ = yearlyPrice_; - } else { - result.yearlyPrice_ = yearlyPriceBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.RegisterParameters) { - return mergeFrom((com.google.cloud.domains.v1beta1.RegisterParameters) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.RegisterParameters other) { - if (other == com.google.cloud.domains.v1beta1.RegisterParameters.getDefaultInstance()) - return this; - if (!other.getDomainName().isEmpty()) { - domainName_ = other.domainName_; - onChanged(); - } - if (other.availability_ != 0) { - setAvailabilityValue(other.getAvailabilityValue()); - } - if (!other.supportedPrivacy_.isEmpty()) { - if (supportedPrivacy_.isEmpty()) { - supportedPrivacy_ = other.supportedPrivacy_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.addAll(other.supportedPrivacy_); - } - onChanged(); - } - if (!other.domainNotices_.isEmpty()) { - if (domainNotices_.isEmpty()) { - domainNotices_ = other.domainNotices_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDomainNoticesIsMutable(); - domainNotices_.addAll(other.domainNotices_); - } - onChanged(); - } - if (other.hasYearlyPrice()) { - mergeYearlyPrice(other.getYearlyPrice()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - domainName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - availability_ = input.readEnum(); - - break; - } // case 16 - case 24: - { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - break; - } // case 24 - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 32: - { - int tmpRaw = input.readEnum(); - ensureDomainNoticesIsMutable(); - domainNotices_.add(tmpRaw); - break; - } // case 32 - case 34: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureDomainNoticesIsMutable(); - domainNotices_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 34 - case 42: - { - input.readMessage(getYearlyPriceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object domainName_ = ""; - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @param value The domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domainName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDomainName() { - - domainName_ = getDefaultInstance().getDomainName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @param value The bytes for domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domainName_ = value; - onChanged(); - return this; - } - - private int availability_ = 0; - /** - * - * - *
-     * Indicates whether the domain is available for registration. This value is
-     * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-     * approximate when obtained by calling `SearchDomains`.
-     * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters.Availability availability = 2; - * - * @return The enum numeric value on the wire for availability. - */ - @java.lang.Override - public int getAvailabilityValue() { - return availability_; - } - /** - * - * - *
-     * Indicates whether the domain is available for registration. This value is
-     * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-     * approximate when obtained by calling `SearchDomains`.
-     * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters.Availability availability = 2; - * - * @param value The enum numeric value on the wire for availability to set. - * @return This builder for chaining. - */ - public Builder setAvailabilityValue(int value) { - - availability_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Indicates whether the domain is available for registration. This value is
-     * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-     * approximate when obtained by calling `SearchDomains`.
-     * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters.Availability availability = 2; - * - * @return The availability. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegisterParameters.Availability getAvailability() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.RegisterParameters.Availability result = - com.google.cloud.domains.v1beta1.RegisterParameters.Availability.valueOf(availability_); - return result == null - ? com.google.cloud.domains.v1beta1.RegisterParameters.Availability.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Indicates whether the domain is available for registration. This value is
-     * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-     * approximate when obtained by calling `SearchDomains`.
-     * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters.Availability availability = 2; - * - * @param value The availability to set. - * @return This builder for chaining. - */ - public Builder setAvailability( - com.google.cloud.domains.v1beta1.RegisterParameters.Availability value) { - if (value == null) { - throw new NullPointerException(); - } - - availability_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Indicates whether the domain is available for registration. This value is
-     * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-     * approximate when obtained by calling `SearchDomains`.
-     * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters.Availability availability = 2; - * - * @return This builder for chaining. - */ - public Builder clearAvailability() { - - availability_ = 0; - onChanged(); - return this; - } - - private java.util.List supportedPrivacy_ = java.util.Collections.emptyList(); - - private void ensureSupportedPrivacyIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - supportedPrivacy_ = new java.util.ArrayList(supportedPrivacy_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the supportedPrivacy. - */ - public java.util.List - getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @return The count of supportedPrivacy. - */ - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - public com.google.cloud.domains.v1beta1.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @param index The index to set the value at. - * @param value The supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacy( - int index, com.google.cloud.domains.v1beta1.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @param value The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacy(com.google.cloud.domains.v1beta1.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @param values The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacy( - java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (com.google.cloud.domains.v1beta1.ContactPrivacy value : values) { - supportedPrivacy_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @return This builder for chaining. - */ - public Builder clearSupportedPrivacy() { - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - public java.util.List getSupportedPrivacyValueList() { - return java.util.Collections.unmodifiableList(supportedPrivacy_); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacyValue(int index, int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @param value The enum numeric value on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacyValue(int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @param values The enum numeric values on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacyValue(java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (int value : values) { - supportedPrivacy_.add(value); - } - onChanged(); - return this; - } - - private java.util.List domainNotices_ = java.util.Collections.emptyList(); - - private void ensureDomainNoticesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - domainNotices_ = new java.util.ArrayList(domainNotices_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @return A list containing the domainNotices. - */ - public java.util.List getDomainNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.DomainNotice>( - domainNotices_, domainNotices_converter_); - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @return The count of domainNotices. - */ - public int getDomainNoticesCount() { - return domainNotices_.size(); - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - public com.google.cloud.domains.v1beta1.DomainNotice getDomainNotices(int index) { - return domainNotices_converter_.convert(domainNotices_.get(index)); - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @param index The index to set the value at. - * @param value The domainNotices to set. - * @return This builder for chaining. - */ - public Builder setDomainNotices( - int index, com.google.cloud.domains.v1beta1.DomainNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainNoticesIsMutable(); - domainNotices_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @param value The domainNotices to add. - * @return This builder for chaining. - */ - public Builder addDomainNotices(com.google.cloud.domains.v1beta1.DomainNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainNoticesIsMutable(); - domainNotices_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @param values The domainNotices to add. - * @return This builder for chaining. - */ - public Builder addAllDomainNotices( - java.lang.Iterable values) { - ensureDomainNoticesIsMutable(); - for (com.google.cloud.domains.v1beta1.DomainNotice value : values) { - domainNotices_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @return This builder for chaining. - */ - public Builder clearDomainNotices() { - domainNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - public java.util.List getDomainNoticesValueList() { - return java.util.Collections.unmodifiableList(domainNotices_); - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - public int getDomainNoticesValue(int index) { - return domainNotices_.get(index); - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for domainNotices to set. - * @return This builder for chaining. - */ - public Builder setDomainNoticesValue(int index, int value) { - ensureDomainNoticesIsMutable(); - domainNotices_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @param value The enum numeric value on the wire for domainNotices to add. - * @return This builder for chaining. - */ - public Builder addDomainNoticesValue(int value) { - ensureDomainNoticesIsMutable(); - domainNotices_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Notices about special properties of the domain.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @param values The enum numeric values on the wire for domainNotices to add. - * @return This builder for chaining. - */ - public Builder addAllDomainNoticesValue(java.lang.Iterable values) { - ensureDomainNoticesIsMutable(); - for (int value : values) { - domainNotices_.add(value); - } - onChanged(); - return this; - } - - private com.google.type.Money yearlyPrice_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - yearlyPriceBuilder_; - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - * - * @return Whether the yearlyPrice field is set. - */ - public boolean hasYearlyPrice() { - return yearlyPriceBuilder_ != null || yearlyPrice_ != null; - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - * - * @return The yearlyPrice. - */ - public com.google.type.Money getYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } else { - return yearlyPriceBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public Builder setYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - yearlyPrice_ = value; - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public Builder setYearlyPrice(com.google.type.Money.Builder builderForValue) { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = builderForValue.build(); - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public Builder mergeYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (yearlyPrice_ != null) { - yearlyPrice_ = - com.google.type.Money.newBuilder(yearlyPrice_).mergeFrom(value).buildPartial(); - } else { - yearlyPrice_ = value; - } - onChanged(); - } else { - yearlyPriceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public Builder clearYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - onChanged(); - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public com.google.type.Money.Builder getYearlyPriceBuilder() { - - onChanged(); - return getYearlyPriceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - if (yearlyPriceBuilder_ != null) { - return yearlyPriceBuilder_.getMessageOrBuilder(); - } else { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - } - /** - * - * - *
-     * Price to register or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - getYearlyPriceFieldBuilder() { - if (yearlyPriceBuilder_ == null) { - yearlyPriceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, - com.google.type.Money.Builder, - com.google.type.MoneyOrBuilder>( - getYearlyPrice(), getParentForChildren(), isClean()); - yearlyPrice_ = null; - } - return yearlyPriceBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.RegisterParameters) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.RegisterParameters) - private static final com.google.cloud.domains.v1beta1.RegisterParameters DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.RegisterParameters(); - } - - public static com.google.cloud.domains.v1beta1.RegisterParameters getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegisterParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegisterParameters getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegisterParametersOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegisterParametersOrBuilder.java deleted file mode 100644 index e6d68022..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegisterParametersOrBuilder.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface RegisterParametersOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.RegisterParameters) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - java.lang.String getDomainName(); - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - com.google.protobuf.ByteString getDomainNameBytes(); - - /** - * - * - *
-   * Indicates whether the domain is available for registration. This value is
-   * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-   * approximate when obtained by calling `SearchDomains`.
-   * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters.Availability availability = 2; - * - * @return The enum numeric value on the wire for availability. - */ - int getAvailabilityValue(); - /** - * - * - *
-   * Indicates whether the domain is available for registration. This value is
-   * accurate when obtained by calling `RetrieveRegisterParameters`, but is
-   * approximate when obtained by calling `SearchDomains`.
-   * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters.Availability availability = 2; - * - * @return The availability. - */ - com.google.cloud.domains.v1beta1.RegisterParameters.Availability getAvailability(); - - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the supportedPrivacy. - */ - java.util.List getSupportedPrivacyList(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @return The count of supportedPrivacy. - */ - int getSupportedPrivacyCount(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - com.google.cloud.domains.v1beta1.ContactPrivacy getSupportedPrivacy(int index); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - java.util.List getSupportedPrivacyValueList(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - int getSupportedPrivacyValue(int index); - - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @return A list containing the domainNotices. - */ - java.util.List getDomainNoticesList(); - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @return The count of domainNotices. - */ - int getDomainNoticesCount(); - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @param index The index of the element to return. - * @return The domainNotices at the given index. - */ - com.google.cloud.domains.v1beta1.DomainNotice getDomainNotices(int index); - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @return A list containing the enum numeric values on the wire for domainNotices. - */ - java.util.List getDomainNoticesValueList(); - /** - * - * - *
-   * Notices about special properties of the domain.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.DomainNotice domain_notices = 4; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of domainNotices at the given index. - */ - int getDomainNoticesValue(int index); - - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - * - * @return Whether the yearlyPrice field is set. - */ - boolean hasYearlyPrice(); - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - * - * @return The yearlyPrice. - */ - com.google.type.Money getYearlyPrice(); - /** - * - * - *
-   * Price to register or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 5; - */ - com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/Registration.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/Registration.java deleted file mode 100644 index cfa9b282..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/Registration.java +++ /dev/null @@ -1,4491 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * The `Registration` resource facilitates managing and configuring domain name
- * registrations.
- * There are several ways to create a new `Registration` resource:
- * To create a new `Registration` resource, find a suitable domain name by
- * calling the `SearchDomains` method with a query to see available domain name
- * options. After choosing a name, call `RetrieveRegisterParameters` to
- * ensure availability and obtain information like pricing, which is needed to
- * build a call to `RegisterDomain`.
- * Another way to create a new `Registration` is to transfer an existing
- * domain from another registrar. First, go to the current registrar to unlock
- * the domain for transfer and retrieve the domain's transfer authorization
- * code. Then call `RetrieveTransferParameters` to confirm that the domain is
- * unlocked and to get values needed to build a call to `TransferDomain`.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.Registration} - */ -public final class Registration extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.Registration) - RegistrationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Registration.newBuilder() to construct. - private Registration(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Registration() { - name_ = ""; - domainName_ = ""; - state_ = 0; - issues_ = java.util.Collections.emptyList(); - supportedPrivacy_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Registration(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_Registration_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 9: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_Registration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.Registration.class, - com.google.cloud.domains.v1beta1.Registration.Builder.class); - } - - /** - * - * - *
-   * Possible states of a `Registration`.
-   * 
- * - * Protobuf enum {@code google.cloud.domains.v1beta1.Registration.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The state is undefined.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - * - * - *
-     * The domain is being registered.
-     * 
- * - * REGISTRATION_PENDING = 1; - */ - REGISTRATION_PENDING(1), - /** - * - * - *
-     * The domain registration failed. You can delete resources in this state
-     * to allow registration to be retried.
-     * 
- * - * REGISTRATION_FAILED = 2; - */ - REGISTRATION_FAILED(2), - /** - * - * - *
-     * The domain is being transferred from another registrar to Cloud Domains.
-     * 
- * - * TRANSFER_PENDING = 3; - */ - TRANSFER_PENDING(3), - /** - * - * - *
-     * The attempt to transfer the domain from another registrar to
-     * Cloud Domains failed. You can delete resources in this state and retry
-     * the transfer.
-     * 
- * - * TRANSFER_FAILED = 4; - */ - TRANSFER_FAILED(4), - /** - * - * - *
-     * The domain is registered and operational. The domain renews automatically
-     * as long as it remains in this state.
-     * 
- * - * ACTIVE = 6; - */ - ACTIVE(6), - /** - * - * - *
-     * The domain is suspended and inoperative. For more details, see the
-     * `issues` field.
-     * 
- * - * SUSPENDED = 7; - */ - SUSPENDED(7), - /** - * - * - *
-     * The domain is no longer managed with Cloud Domains. It may have been
-     * transferred to another registrar or exported for management in
-     * [Google Domains](https://domains.google/). You can no longer update it
-     * with this API, and information shown about it may be stale. Domains in
-     * this state are not automatically renewed by Cloud Domains.
-     * 
- * - * EXPORTED = 8; - */ - EXPORTED(8), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The state is undefined.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The domain is being registered.
-     * 
- * - * REGISTRATION_PENDING = 1; - */ - public static final int REGISTRATION_PENDING_VALUE = 1; - /** - * - * - *
-     * The domain registration failed. You can delete resources in this state
-     * to allow registration to be retried.
-     * 
- * - * REGISTRATION_FAILED = 2; - */ - public static final int REGISTRATION_FAILED_VALUE = 2; - /** - * - * - *
-     * The domain is being transferred from another registrar to Cloud Domains.
-     * 
- * - * TRANSFER_PENDING = 3; - */ - public static final int TRANSFER_PENDING_VALUE = 3; - /** - * - * - *
-     * The attempt to transfer the domain from another registrar to
-     * Cloud Domains failed. You can delete resources in this state and retry
-     * the transfer.
-     * 
- * - * TRANSFER_FAILED = 4; - */ - public static final int TRANSFER_FAILED_VALUE = 4; - /** - * - * - *
-     * The domain is registered and operational. The domain renews automatically
-     * as long as it remains in this state.
-     * 
- * - * ACTIVE = 6; - */ - public static final int ACTIVE_VALUE = 6; - /** - * - * - *
-     * The domain is suspended and inoperative. For more details, see the
-     * `issues` field.
-     * 
- * - * SUSPENDED = 7; - */ - public static final int SUSPENDED_VALUE = 7; - /** - * - * - *
-     * The domain is no longer managed with Cloud Domains. It may have been
-     * transferred to another registrar or exported for management in
-     * [Google Domains](https://domains.google/). You can no longer update it
-     * with this API, and information shown about it may be stale. Domains in
-     * this state are not automatically renewed by Cloud Domains.
-     * 
- * - * EXPORTED = 8; - */ - public static final int EXPORTED_VALUE = 8; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static State valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static State forNumber(int value) { - switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return REGISTRATION_PENDING; - case 2: - return REGISTRATION_FAILED; - case 3: - return TRANSFER_PENDING; - case 4: - return TRANSFER_FAILED; - case 6: - return ACTIVE; - case 7: - return SUSPENDED; - case 8: - return EXPORTED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.Registration.getDescriptor().getEnumTypes().get(0); - } - - private static final State[] VALUES = values(); - - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private State(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1beta1.Registration.State) - } - - /** - * - * - *
-   * Possible issues with a `Registration` that require attention.
-   * 
- * - * Protobuf enum {@code google.cloud.domains.v1beta1.Registration.Issue} - */ - public enum Issue implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The issue is undefined.
-     * 
- * - * ISSUE_UNSPECIFIED = 0; - */ - ISSUE_UNSPECIFIED(0), - /** - * - * - *
-     * Contact the Cloud Support team to resolve a problem with this domain.
-     * 
- * - * CONTACT_SUPPORT = 1; - */ - CONTACT_SUPPORT(1), - /** - * - * - *
-     * [ICANN](https://icann.org/) requires verification of the email address
-     * in the `Registration`'s `contact_settings.registrant_contact` field. To
-     * verify the email address, follow the
-     * instructions in the email the `registrant_contact` receives following
-     * registration. If you do not complete email verification within
-     * 15 days of registration, the domain is suspended. To resend the
-     * verification email, call ConfigureContactSettings and provide the current
-     * `registrant_contact.email`.
-     * 
- * - * UNVERIFIED_EMAIL = 2; - */ - UNVERIFIED_EMAIL(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The issue is undefined.
-     * 
- * - * ISSUE_UNSPECIFIED = 0; - */ - public static final int ISSUE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Contact the Cloud Support team to resolve a problem with this domain.
-     * 
- * - * CONTACT_SUPPORT = 1; - */ - public static final int CONTACT_SUPPORT_VALUE = 1; - /** - * - * - *
-     * [ICANN](https://icann.org/) requires verification of the email address
-     * in the `Registration`'s `contact_settings.registrant_contact` field. To
-     * verify the email address, follow the
-     * instructions in the email the `registrant_contact` receives following
-     * registration. If you do not complete email verification within
-     * 15 days of registration, the domain is suspended. To resend the
-     * verification email, call ConfigureContactSettings and provide the current
-     * `registrant_contact.email`.
-     * 
- * - * UNVERIFIED_EMAIL = 2; - */ - public static final int UNVERIFIED_EMAIL_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 Issue 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 Issue forNumber(int value) { - switch (value) { - case 0: - return ISSUE_UNSPECIFIED; - case 1: - return CONTACT_SUPPORT; - case 2: - return UNVERIFIED_EMAIL; - 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 Issue findValueByNumber(int number) { - return Issue.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.Registration.getDescriptor().getEnumTypes().get(1); - } - - private static final Issue[] VALUES = values(); - - public static Issue 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 Issue(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1beta1.Registration.Issue) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. Name of the `Registration` resource, in the format
-   * `projects/*/locations/*/registrations/<domain_name>`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Name of the `Registration` resource, in the format
-   * `projects/*/locations/*/registrations/<domain_name>`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object domainName_; - /** - * - * - *
-   * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The domainName. - */ - @java.lang.Override - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The bytes for domainName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int EXPIRE_TIME_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp expireTime_; - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the expireTime field is set. - */ - @java.lang.Override - public boolean hasExpireTime() { - return expireTime_ != null; - } - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The expireTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getExpireTime() { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; - } - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { - return getExpireTime(); - } - - public static final int STATE_FIELD_NUMBER = 7; - private int state_; - /** - * - * - *
-   * Output only. The state of the `Registration`
-   * 
- * - * - * .google.cloud.domains.v1beta1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The state of the `Registration`
-   * 
- * - * - * .google.cloud.domains.v1beta1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.Registration.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.Registration.State result = - com.google.cloud.domains.v1beta1.Registration.State.valueOf(state_); - return result == null - ? com.google.cloud.domains.v1beta1.Registration.State.UNRECOGNIZED - : result; - } - - public static final int ISSUES_FIELD_NUMBER = 8; - private java.util.List issues_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.Registration.Issue> - issues_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.Registration.Issue>() { - public com.google.cloud.domains.v1beta1.Registration.Issue convert( - java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.Registration.Issue result = - com.google.cloud.domains.v1beta1.Registration.Issue.valueOf(from); - return result == null - ? com.google.cloud.domains.v1beta1.Registration.Issue.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the issues. - */ - @java.lang.Override - public java.util.List getIssuesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.Registration.Issue>( - issues_, issues_converter_); - } - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of issues. - */ - @java.lang.Override - public int getIssuesCount() { - return issues_.size(); - } - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The issues at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.Registration.Issue getIssues(int index) { - return issues_converter_.convert(issues_.get(index)); - } - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for issues. - */ - @java.lang.Override - public java.util.List getIssuesValueList() { - return issues_; - } - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of issues at the given index. - */ - @java.lang.Override - public int getIssuesValue(int index) { - return issues_.get(index); - } - - private int issuesMemoizedSerializedSize; - - public static final int LABELS_FIELD_NUMBER = 9; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_Registration_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(); - } - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int MANAGEMENT_SETTINGS_FIELD_NUMBER = 10; - private com.google.cloud.domains.v1beta1.ManagementSettings managementSettings_; - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 10; - * - * @return Whether the managementSettings field is set. - */ - @java.lang.Override - public boolean hasManagementSettings() { - return managementSettings_ != null; - } - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 10; - * - * @return The managementSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ManagementSettings getManagementSettings() { - return managementSettings_ == null - ? com.google.cloud.domains.v1beta1.ManagementSettings.getDefaultInstance() - : managementSettings_; - } - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 10; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder - getManagementSettingsOrBuilder() { - return getManagementSettings(); - } - - public static final int DNS_SETTINGS_FIELD_NUMBER = 11; - private com.google.cloud.domains.v1beta1.DnsSettings dnsSettings_; - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 11; - * - * @return Whether the dnsSettings field is set. - */ - @java.lang.Override - public boolean hasDnsSettings() { - return dnsSettings_ != null; - } - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 11; - * - * @return The dnsSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettings getDnsSettings() { - return dnsSettings_ == null - ? com.google.cloud.domains.v1beta1.DnsSettings.getDefaultInstance() - : dnsSettings_; - } - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 11; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder getDnsSettingsOrBuilder() { - return getDnsSettings(); - } - - public static final int CONTACT_SETTINGS_FIELD_NUMBER = 12; - private com.google.cloud.domains.v1beta1.ContactSettings contactSettings_; - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the contactSettings field is set. - */ - @java.lang.Override - public boolean hasContactSettings() { - return contactSettings_ != null; - } - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The contactSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettings getContactSettings() { - return contactSettings_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance() - : contactSettings_; - } - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder getContactSettingsOrBuilder() { - return getContactSettings(); - } - - public static final int PENDING_CONTACT_SETTINGS_FIELD_NUMBER = 13; - private com.google.cloud.domains.v1beta1.ContactSettings pendingContactSettings_; - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the pendingContactSettings field is set. - */ - @java.lang.Override - public boolean hasPendingContactSettings() { - return pendingContactSettings_ != null; - } - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The pendingContactSettings. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettings getPendingContactSettings() { - return pendingContactSettings_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance() - : pendingContactSettings_; - } - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder - getPendingContactSettingsOrBuilder() { - return getPendingContactSettings(); - } - - public static final int SUPPORTED_PRIVACY_FIELD_NUMBER = 14; - private java.util.List supportedPrivacy_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactPrivacy> - supportedPrivacy_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactPrivacy>() { - public com.google.cloud.domains.v1beta1.ContactPrivacy convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.ContactPrivacy result = - com.google.cloud.domains.v1beta1.ContactPrivacy.valueOf(from); - return result == null - ? com.google.cloud.domains.v1beta1.ContactPrivacy.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the supportedPrivacy. - */ - @java.lang.Override - public java.util.List getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of supportedPrivacy. - */ - @java.lang.Override - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - @java.lang.Override - public java.util.List getSupportedPrivacyValueList() { - return supportedPrivacy_; - } - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - @java.lang.Override - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - - private int supportedPrivacyMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domainName_); - } - if (createTime_ != null) { - output.writeMessage(3, getCreateTime()); - } - if (expireTime_ != null) { - output.writeMessage(6, getExpireTime()); - } - if (state_ - != com.google.cloud.domains.v1beta1.Registration.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(7, state_); - } - if (getIssuesList().size() > 0) { - output.writeUInt32NoTag(66); - output.writeUInt32NoTag(issuesMemoizedSerializedSize); - } - for (int i = 0; i < issues_.size(); i++) { - output.writeEnumNoTag(issues_.get(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); - if (managementSettings_ != null) { - output.writeMessage(10, getManagementSettings()); - } - if (dnsSettings_ != null) { - output.writeMessage(11, getDnsSettings()); - } - if (contactSettings_ != null) { - output.writeMessage(12, getContactSettings()); - } - if (pendingContactSettings_ != null) { - output.writeMessage(13, getPendingContactSettings()); - } - if (getSupportedPrivacyList().size() > 0) { - output.writeUInt32NoTag(114); - output.writeUInt32NoTag(supportedPrivacyMemoizedSerializedSize); - } - for (int i = 0; i < supportedPrivacy_.size(); i++) { - output.writeEnumNoTag(supportedPrivacy_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domainName_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); - } - if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExpireTime()); - } - if (state_ - != com.google.cloud.domains.v1beta1.Registration.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); - } - { - int dataSize = 0; - for (int i = 0; i < issues_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(issues_.get(i)); - } - size += dataSize; - if (!getIssuesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - issuesMemoizedSerializedSize = dataSize; - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); - } - if (managementSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getManagementSettings()); - } - if (dnsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getDnsSettings()); - } - if (contactSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getContactSettings()); - } - if (pendingContactSettings_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(13, getPendingContactSettings()); - } - { - int dataSize = 0; - for (int i = 0; i < supportedPrivacy_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(supportedPrivacy_.get(i)); - } - size += dataSize; - if (!getSupportedPrivacyList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - supportedPrivacyMemoizedSerializedSize = dataSize; - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.Registration)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.Registration other = - (com.google.cloud.domains.v1beta1.Registration) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDomainName().equals(other.getDomainName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasExpireTime() != other.hasExpireTime()) return false; - if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; - } - if (state_ != other.state_) return false; - if (!issues_.equals(other.issues_)) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasManagementSettings() != other.hasManagementSettings()) return false; - if (hasManagementSettings()) { - if (!getManagementSettings().equals(other.getManagementSettings())) return false; - } - if (hasDnsSettings() != other.hasDnsSettings()) return false; - if (hasDnsSettings()) { - if (!getDnsSettings().equals(other.getDnsSettings())) return false; - } - if (hasContactSettings() != other.hasContactSettings()) return false; - if (hasContactSettings()) { - if (!getContactSettings().equals(other.getContactSettings())) return false; - } - if (hasPendingContactSettings() != other.hasPendingContactSettings()) return false; - if (hasPendingContactSettings()) { - if (!getPendingContactSettings().equals(other.getPendingContactSettings())) return false; - } - if (!supportedPrivacy_.equals(other.supportedPrivacy_)) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + DOMAIN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDomainName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasExpireTime()) { - hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getExpireTime().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (getIssuesCount() > 0) { - hash = (37 * hash) + ISSUES_FIELD_NUMBER; - hash = (53 * hash) + issues_.hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasManagementSettings()) { - hash = (37 * hash) + MANAGEMENT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getManagementSettings().hashCode(); - } - if (hasDnsSettings()) { - hash = (37 * hash) + DNS_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getDnsSettings().hashCode(); - } - if (hasContactSettings()) { - hash = (37 * hash) + CONTACT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getContactSettings().hashCode(); - } - if (hasPendingContactSettings()) { - hash = (37 * hash) + PENDING_CONTACT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getPendingContactSettings().hashCode(); - } - if (getSupportedPrivacyCount() > 0) { - hash = (37 * hash) + SUPPORTED_PRIVACY_FIELD_NUMBER; - hash = (53 * hash) + supportedPrivacy_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.Registration parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.Registration parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.Registration parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.Registration parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.Registration parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.Registration parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.Registration parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.Registration parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.Registration parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.Registration parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.Registration parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.Registration parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1beta1.Registration prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 `Registration` resource facilitates managing and configuring domain name
-   * registrations.
-   * There are several ways to create a new `Registration` resource:
-   * To create a new `Registration` resource, find a suitable domain name by
-   * calling the `SearchDomains` method with a query to see available domain name
-   * options. After choosing a name, call `RetrieveRegisterParameters` to
-   * ensure availability and obtain information like pricing, which is needed to
-   * build a call to `RegisterDomain`.
-   * Another way to create a new `Registration` is to transfer an existing
-   * domain from another registrar. First, go to the current registrar to unlock
-   * the domain for transfer and retrieve the domain's transfer authorization
-   * code. Then call `RetrieveTransferParameters` to confirm that the domain is
-   * unlocked and to get values needed to build a call to `TransferDomain`.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.Registration} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.Registration) - com.google.cloud.domains.v1beta1.RegistrationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_Registration_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 9: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 9: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_Registration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.Registration.class, - com.google.cloud.domains.v1beta1.Registration.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.Registration.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - domainName_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (expireTimeBuilder_ == null) { - expireTime_ = null; - } else { - expireTime_ = null; - expireTimeBuilder_ = null; - } - state_ = 0; - - issues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableLabels().clear(); - if (managementSettingsBuilder_ == null) { - managementSettings_ = null; - } else { - managementSettings_ = null; - managementSettingsBuilder_ = null; - } - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = null; - } else { - dnsSettings_ = null; - dnsSettingsBuilder_ = null; - } - if (contactSettingsBuilder_ == null) { - contactSettings_ = null; - } else { - contactSettings_ = null; - contactSettingsBuilder_ = null; - } - if (pendingContactSettingsBuilder_ == null) { - pendingContactSettings_ = null; - } else { - pendingContactSettings_ = null; - pendingContactSettingsBuilder_ = null; - } - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_Registration_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.Registration getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.Registration.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.Registration build() { - com.google.cloud.domains.v1beta1.Registration result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.Registration buildPartial() { - com.google.cloud.domains.v1beta1.Registration result = - new com.google.cloud.domains.v1beta1.Registration(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.domainName_ = domainName_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (expireTimeBuilder_ == null) { - result.expireTime_ = expireTime_; - } else { - result.expireTime_ = expireTimeBuilder_.build(); - } - result.state_ = state_; - if (((bitField0_ & 0x00000001) != 0)) { - issues_ = java.util.Collections.unmodifiableList(issues_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.issues_ = issues_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (managementSettingsBuilder_ == null) { - result.managementSettings_ = managementSettings_; - } else { - result.managementSettings_ = managementSettingsBuilder_.build(); - } - if (dnsSettingsBuilder_ == null) { - result.dnsSettings_ = dnsSettings_; - } else { - result.dnsSettings_ = dnsSettingsBuilder_.build(); - } - if (contactSettingsBuilder_ == null) { - result.contactSettings_ = contactSettings_; - } else { - result.contactSettings_ = contactSettingsBuilder_.build(); - } - if (pendingContactSettingsBuilder_ == null) { - result.pendingContactSettings_ = pendingContactSettings_; - } else { - result.pendingContactSettings_ = pendingContactSettingsBuilder_.build(); - } - if (((bitField0_ & 0x00000004) != 0)) { - supportedPrivacy_ = java.util.Collections.unmodifiableList(supportedPrivacy_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.supportedPrivacy_ = supportedPrivacy_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.Registration) { - return mergeFrom((com.google.cloud.domains.v1beta1.Registration) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.Registration other) { - if (other == com.google.cloud.domains.v1beta1.Registration.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getDomainName().isEmpty()) { - domainName_ = other.domainName_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasExpireTime()) { - mergeExpireTime(other.getExpireTime()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.issues_.isEmpty()) { - if (issues_.isEmpty()) { - issues_ = other.issues_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIssuesIsMutable(); - issues_.addAll(other.issues_); - } - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasManagementSettings()) { - mergeManagementSettings(other.getManagementSettings()); - } - if (other.hasDnsSettings()) { - mergeDnsSettings(other.getDnsSettings()); - } - if (other.hasContactSettings()) { - mergeContactSettings(other.getContactSettings()); - } - if (other.hasPendingContactSettings()) { - mergePendingContactSettings(other.getPendingContactSettings()); - } - if (!other.supportedPrivacy_.isEmpty()) { - if (supportedPrivacy_.isEmpty()) { - supportedPrivacy_ = other.supportedPrivacy_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.addAll(other.supportedPrivacy_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - domainName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 50: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 56: - { - state_ = input.readEnum(); - - break; - } // case 56 - case 64: - { - int tmpRaw = input.readEnum(); - ensureIssuesIsMutable(); - issues_.add(tmpRaw); - break; - } // case 64 - case 66: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureIssuesIsMutable(); - issues_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 66 - case 74: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 74 - case 82: - { - input.readMessage( - getManagementSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 82 - case 90: - { - input.readMessage(getDnsSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 90 - case 98: - { - input.readMessage(getContactSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 98 - case 106: - { - input.readMessage( - getPendingContactSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 106 - case 112: - { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - break; - } // case 112 - case 114: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 114 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. Name of the `Registration` resource, in the format
-     * `projects/*/locations/*/registrations/<domain_name>`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Name of the `Registration` resource, in the format
-     * `projects/*/locations/*/registrations/<domain_name>`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Name of the `Registration` resource, in the format
-     * `projects/*/locations/*/registrations/<domain_name>`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Name of the `Registration` resource, in the format
-     * `projects/*/locations/*/registrations/<domain_name>`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Name of the `Registration` resource, in the format
-     * `projects/*/locations/*/registrations/<domain_name>`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object domainName_ = ""; - /** - * - * - *
-     * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The domainName. - */ - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The bytes for domainName. - */ - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @param value The domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domainName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return This builder for chaining. - */ - public Builder clearDomainName() { - - domainName_ = getDefaultInstance().getDomainName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @param value The bytes for domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domainName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. The creation timestamp of the `Registration` resource.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp expireTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the expireTime field is set. - */ - public boolean hasExpireTime() { - return expireTimeBuilder_ != null || expireTime_ != null; - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The expireTime. - */ - public com.google.protobuf.Timestamp getExpireTime() { - if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; - } else { - return expireTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setExpireTime(com.google.protobuf.Timestamp value) { - if (expireTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expireTime_ = value; - onChanged(); - } else { - expireTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (expireTimeBuilder_ == null) { - expireTime_ = builderForValue.build(); - onChanged(); - } else { - expireTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { - if (expireTimeBuilder_ == null) { - if (expireTime_ != null) { - expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); - } else { - expireTime_ = value; - } - onChanged(); - } else { - expireTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearExpireTime() { - if (expireTimeBuilder_ == null) { - expireTime_ = null; - onChanged(); - } else { - expireTime_ = null; - expireTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - - onChanged(); - return getExpireTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { - if (expireTimeBuilder_ != null) { - return expireTimeBuilder_.getMessageOrBuilder(); - } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; - } - } - /** - * - * - *
-     * Output only. The expiration timestamp of the `Registration`.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getExpireTimeFieldBuilder() { - if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); - expireTime_ = null; - } - return expireTimeBuilder_; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. The state of the `Registration`
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. The state of the `Registration`
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The state of the `Registration`
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.Registration.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.Registration.State result = - com.google.cloud.domains.v1beta1.Registration.State.valueOf(state_); - return result == null - ? com.google.cloud.domains.v1beta1.Registration.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. The state of the `Registration`
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.domains.v1beta1.Registration.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The state of the `Registration`
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.util.List issues_ = java.util.Collections.emptyList(); - - private void ensureIssuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - issues_ = new java.util.ArrayList(issues_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the issues. - */ - public java.util.List getIssuesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.Registration.Issue>( - issues_, issues_converter_); - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of issues. - */ - public int getIssuesCount() { - return issues_.size(); - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The issues at the given index. - */ - public com.google.cloud.domains.v1beta1.Registration.Issue getIssues(int index) { - return issues_converter_.convert(issues_.get(index)); - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index to set the value at. - * @param value The issues to set. - * @return This builder for chaining. - */ - public Builder setIssues(int index, com.google.cloud.domains.v1beta1.Registration.Issue value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIssuesIsMutable(); - issues_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The issues to add. - * @return This builder for chaining. - */ - public Builder addIssues(com.google.cloud.domains.v1beta1.Registration.Issue value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIssuesIsMutable(); - issues_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param values The issues to add. - * @return This builder for chaining. - */ - public Builder addAllIssues( - java.lang.Iterable values) { - ensureIssuesIsMutable(); - for (com.google.cloud.domains.v1beta1.Registration.Issue value : values) { - issues_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearIssues() { - issues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for issues. - */ - public java.util.List getIssuesValueList() { - return java.util.Collections.unmodifiableList(issues_); - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of issues at the given index. - */ - public int getIssuesValue(int index) { - return issues_.get(index); - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for issues to set. - * @return This builder for chaining. - */ - public Builder setIssuesValue(int index, int value) { - ensureIssuesIsMutable(); - issues_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for issues to add. - * @return This builder for chaining. - */ - public Builder addIssuesValue(int value) { - ensureIssuesIsMutable(); - issues_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The set of issues with the `Registration` that require attention.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param values The enum numeric values on the wire for issues to add. - * @return This builder for chaining. - */ - public Builder addAllIssuesValue(java.lang.Iterable values) { - ensureIssuesIsMutable(); - for (int value : values) { - issues_.add(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(); - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Set of labels associated with the `Registration`.
-     * 
- * - * map<string, string> labels = 9; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.domains.v1beta1.ManagementSettings managementSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ManagementSettings, - com.google.cloud.domains.v1beta1.ManagementSettings.Builder, - com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder> - managementSettingsBuilder_; - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 10; - * - * @return Whether the managementSettings field is set. - */ - public boolean hasManagementSettings() { - return managementSettingsBuilder_ != null || managementSettings_ != null; - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 10; - * - * @return The managementSettings. - */ - public com.google.cloud.domains.v1beta1.ManagementSettings getManagementSettings() { - if (managementSettingsBuilder_ == null) { - return managementSettings_ == null - ? com.google.cloud.domains.v1beta1.ManagementSettings.getDefaultInstance() - : managementSettings_; - } else { - return managementSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 10; - */ - public Builder setManagementSettings( - com.google.cloud.domains.v1beta1.ManagementSettings value) { - if (managementSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - managementSettings_ = value; - onChanged(); - } else { - managementSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 10; - */ - public Builder setManagementSettings( - com.google.cloud.domains.v1beta1.ManagementSettings.Builder builderForValue) { - if (managementSettingsBuilder_ == null) { - managementSettings_ = builderForValue.build(); - onChanged(); - } else { - managementSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 10; - */ - public Builder mergeManagementSettings( - com.google.cloud.domains.v1beta1.ManagementSettings value) { - if (managementSettingsBuilder_ == null) { - if (managementSettings_ != null) { - managementSettings_ = - com.google.cloud.domains.v1beta1.ManagementSettings.newBuilder(managementSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - managementSettings_ = value; - } - onChanged(); - } else { - managementSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 10; - */ - public Builder clearManagementSettings() { - if (managementSettingsBuilder_ == null) { - managementSettings_ = null; - onChanged(); - } else { - managementSettings_ = null; - managementSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 10; - */ - public com.google.cloud.domains.v1beta1.ManagementSettings.Builder - getManagementSettingsBuilder() { - - onChanged(); - return getManagementSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 10; - */ - public com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder - getManagementSettingsOrBuilder() { - if (managementSettingsBuilder_ != null) { - return managementSettingsBuilder_.getMessageOrBuilder(); - } else { - return managementSettings_ == null - ? com.google.cloud.domains.v1beta1.ManagementSettings.getDefaultInstance() - : managementSettings_; - } - } - /** - * - * - *
-     * Settings for management of the `Registration`, including renewal, billing,
-     * and transfer. You cannot update these with the `UpdateRegistration`
-     * method. To update these settings, use the `ConfigureManagementSettings`
-     * method.
-     * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ManagementSettings, - com.google.cloud.domains.v1beta1.ManagementSettings.Builder, - com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder> - getManagementSettingsFieldBuilder() { - if (managementSettingsBuilder_ == null) { - managementSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ManagementSettings, - com.google.cloud.domains.v1beta1.ManagementSettings.Builder, - com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder>( - getManagementSettings(), getParentForChildren(), isClean()); - managementSettings_ = null; - } - return managementSettingsBuilder_; - } - - private com.google.cloud.domains.v1beta1.DnsSettings dnsSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings, - com.google.cloud.domains.v1beta1.DnsSettings.Builder, - com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder> - dnsSettingsBuilder_; - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 11; - * - * @return Whether the dnsSettings field is set. - */ - public boolean hasDnsSettings() { - return dnsSettingsBuilder_ != null || dnsSettings_ != null; - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 11; - * - * @return The dnsSettings. - */ - public com.google.cloud.domains.v1beta1.DnsSettings getDnsSettings() { - if (dnsSettingsBuilder_ == null) { - return dnsSettings_ == null - ? com.google.cloud.domains.v1beta1.DnsSettings.getDefaultInstance() - : dnsSettings_; - } else { - return dnsSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 11; - */ - public Builder setDnsSettings(com.google.cloud.domains.v1beta1.DnsSettings value) { - if (dnsSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsSettings_ = value; - onChanged(); - } else { - dnsSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 11; - */ - public Builder setDnsSettings( - com.google.cloud.domains.v1beta1.DnsSettings.Builder builderForValue) { - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = builderForValue.build(); - onChanged(); - } else { - dnsSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 11; - */ - public Builder mergeDnsSettings(com.google.cloud.domains.v1beta1.DnsSettings value) { - if (dnsSettingsBuilder_ == null) { - if (dnsSettings_ != null) { - dnsSettings_ = - com.google.cloud.domains.v1beta1.DnsSettings.newBuilder(dnsSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - dnsSettings_ = value; - } - onChanged(); - } else { - dnsSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 11; - */ - public Builder clearDnsSettings() { - if (dnsSettingsBuilder_ == null) { - dnsSettings_ = null; - onChanged(); - } else { - dnsSettings_ = null; - dnsSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 11; - */ - public com.google.cloud.domains.v1beta1.DnsSettings.Builder getDnsSettingsBuilder() { - - onChanged(); - return getDnsSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 11; - */ - public com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder getDnsSettingsOrBuilder() { - if (dnsSettingsBuilder_ != null) { - return dnsSettingsBuilder_.getMessageOrBuilder(); - } else { - return dnsSettings_ == null - ? com.google.cloud.domains.v1beta1.DnsSettings.getDefaultInstance() - : dnsSettings_; - } - } - /** - * - * - *
-     * Settings controlling the DNS configuration of the `Registration`. You
-     * cannot update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureDnsSettings` method.
-     * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings, - com.google.cloud.domains.v1beta1.DnsSettings.Builder, - com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder> - getDnsSettingsFieldBuilder() { - if (dnsSettingsBuilder_ == null) { - dnsSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.DnsSettings, - com.google.cloud.domains.v1beta1.DnsSettings.Builder, - com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder>( - getDnsSettings(), getParentForChildren(), isClean()); - dnsSettings_ = null; - } - return dnsSettingsBuilder_; - } - - private com.google.cloud.domains.v1beta1.ContactSettings contactSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings, - com.google.cloud.domains.v1beta1.ContactSettings.Builder, - com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder> - contactSettingsBuilder_; - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the contactSettings field is set. - */ - public boolean hasContactSettings() { - return contactSettingsBuilder_ != null || contactSettings_ != null; - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The contactSettings. - */ - public com.google.cloud.domains.v1beta1.ContactSettings getContactSettings() { - if (contactSettingsBuilder_ == null) { - return contactSettings_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance() - : contactSettings_; - } else { - return contactSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setContactSettings(com.google.cloud.domains.v1beta1.ContactSettings value) { - if (contactSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - contactSettings_ = value; - onChanged(); - } else { - contactSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setContactSettings( - com.google.cloud.domains.v1beta1.ContactSettings.Builder builderForValue) { - if (contactSettingsBuilder_ == null) { - contactSettings_ = builderForValue.build(); - onChanged(); - } else { - contactSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeContactSettings(com.google.cloud.domains.v1beta1.ContactSettings value) { - if (contactSettingsBuilder_ == null) { - if (contactSettings_ != null) { - contactSettings_ = - com.google.cloud.domains.v1beta1.ContactSettings.newBuilder(contactSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - contactSettings_ = value; - } - onChanged(); - } else { - contactSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearContactSettings() { - if (contactSettingsBuilder_ == null) { - contactSettings_ = null; - onChanged(); - } else { - contactSettings_ = null; - contactSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1beta1.ContactSettings.Builder getContactSettingsBuilder() { - - onChanged(); - return getContactSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder getContactSettingsOrBuilder() { - if (contactSettingsBuilder_ != null) { - return contactSettingsBuilder_.getMessageOrBuilder(); - } else { - return contactSettings_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance() - : contactSettings_; - } - } - /** - * - * - *
-     * Required. Settings for contact information linked to the `Registration`. You cannot
-     * update these with the `UpdateRegistration` method. To update these
-     * settings, use the `ConfigureContactSettings` method.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings, - com.google.cloud.domains.v1beta1.ContactSettings.Builder, - com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder> - getContactSettingsFieldBuilder() { - if (contactSettingsBuilder_ == null) { - contactSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings, - com.google.cloud.domains.v1beta1.ContactSettings.Builder, - com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder>( - getContactSettings(), getParentForChildren(), isClean()); - contactSettings_ = null; - } - return contactSettingsBuilder_; - } - - private com.google.cloud.domains.v1beta1.ContactSettings pendingContactSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings, - com.google.cloud.domains.v1beta1.ContactSettings.Builder, - com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder> - pendingContactSettingsBuilder_; - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the pendingContactSettings field is set. - */ - public boolean hasPendingContactSettings() { - return pendingContactSettingsBuilder_ != null || pendingContactSettings_ != null; - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The pendingContactSettings. - */ - public com.google.cloud.domains.v1beta1.ContactSettings getPendingContactSettings() { - if (pendingContactSettingsBuilder_ == null) { - return pendingContactSettings_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance() - : pendingContactSettings_; - } else { - return pendingContactSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setPendingContactSettings( - com.google.cloud.domains.v1beta1.ContactSettings value) { - if (pendingContactSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pendingContactSettings_ = value; - onChanged(); - } else { - pendingContactSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setPendingContactSettings( - com.google.cloud.domains.v1beta1.ContactSettings.Builder builderForValue) { - if (pendingContactSettingsBuilder_ == null) { - pendingContactSettings_ = builderForValue.build(); - onChanged(); - } else { - pendingContactSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergePendingContactSettings( - com.google.cloud.domains.v1beta1.ContactSettings value) { - if (pendingContactSettingsBuilder_ == null) { - if (pendingContactSettings_ != null) { - pendingContactSettings_ = - com.google.cloud.domains.v1beta1.ContactSettings.newBuilder(pendingContactSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - pendingContactSettings_ = value; - } - onChanged(); - } else { - pendingContactSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearPendingContactSettings() { - if (pendingContactSettingsBuilder_ == null) { - pendingContactSettings_ = null; - onChanged(); - } else { - pendingContactSettings_ = null; - pendingContactSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1beta1.ContactSettings.Builder - getPendingContactSettingsBuilder() { - - onChanged(); - return getPendingContactSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder - getPendingContactSettingsOrBuilder() { - if (pendingContactSettingsBuilder_ != null) { - return pendingContactSettingsBuilder_.getMessageOrBuilder(); - } else { - return pendingContactSettings_ == null - ? com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance() - : pendingContactSettings_; - } - } - /** - * - * - *
-     * Output only. Pending contact settings for the `Registration`. Updates to the
-     * `contact_settings` field that change its `registrant_contact` or `privacy`
-     * fields require email confirmation by the `registrant_contact`
-     * before taking effect. This field is set only if there are pending updates
-     * to the `contact_settings` that have not been confirmed. To confirm the
-     * changes, the `registrant_contact` must follow the instructions in the
-     * email they receive.
-     * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings, - com.google.cloud.domains.v1beta1.ContactSettings.Builder, - com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder> - getPendingContactSettingsFieldBuilder() { - if (pendingContactSettingsBuilder_ == null) { - pendingContactSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.ContactSettings, - com.google.cloud.domains.v1beta1.ContactSettings.Builder, - com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder>( - getPendingContactSettings(), getParentForChildren(), isClean()); - pendingContactSettings_ = null; - } - return pendingContactSettingsBuilder_; - } - - private java.util.List supportedPrivacy_ = java.util.Collections.emptyList(); - - private void ensureSupportedPrivacyIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - supportedPrivacy_ = new java.util.ArrayList(supportedPrivacy_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the supportedPrivacy. - */ - public java.util.List - getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of supportedPrivacy. - */ - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - public com.google.cloud.domains.v1beta1.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index to set the value at. - * @param value The supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacy( - int index, com.google.cloud.domains.v1beta1.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacy(com.google.cloud.domains.v1beta1.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param values The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacy( - java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (com.google.cloud.domains.v1beta1.ContactPrivacy value : values) { - supportedPrivacy_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearSupportedPrivacy() { - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - public java.util.List getSupportedPrivacyValueList() { - return java.util.Collections.unmodifiableList(supportedPrivacy_); - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacyValue(int index, int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacyValue(int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Set of options for the `contact_settings.privacy` field that this
-     * `Registration` supports.
-     * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param values The enum numeric values on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacyValue(java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (int value : values) { - supportedPrivacy_.add(value); - } - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.Registration) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.Registration) - private static final com.google.cloud.domains.v1beta1.Registration DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.Registration(); - } - - public static com.google.cloud.domains.v1beta1.Registration getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Registration parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.Registration getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegistrationName.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegistrationName.java deleted file mode 100644 index eae616d5..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegistrationName.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class RegistrationName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_REGISTRATION = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/registrations/{registration}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String registration; - - @Deprecated - protected RegistrationName() { - project = null; - location = null; - registration = null; - } - - private RegistrationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - registration = Preconditions.checkNotNull(builder.getRegistration()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRegistration() { - return registration; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static RegistrationName of(String project, String location, String registration) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setRegistration(registration) - .build(); - } - - public static String format(String project, String location, String registration) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setRegistration(registration) - .build() - .toString(); - } - - public static RegistrationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_REGISTRATION.validatedMatch( - formattedString, "RegistrationName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("registration")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (RegistrationName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_REGISTRATION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - if (registration != null) { - fieldMapBuilder.put("registration", registration); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_REGISTRATION.instantiate( - "project", project, "location", location, "registration", registration); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - RegistrationName that = ((RegistrationName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.registration, that.registration); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(registration); - return h; - } - - /** Builder for projects/{project}/locations/{location}/registrations/{registration}. */ - public static class Builder { - private String project; - private String location; - private String registration; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRegistration() { - return registration; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setRegistration(String registration) { - this.registration = registration; - return this; - } - - private Builder(RegistrationName registrationName) { - this.project = registrationName.project; - this.location = registrationName.location; - this.registration = registrationName.registration; - } - - public RegistrationName build() { - return new RegistrationName(this); - } - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegistrationOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegistrationOrBuilder.java deleted file mode 100644 index e9c1ed1f..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegistrationOrBuilder.java +++ /dev/null @@ -1,587 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface RegistrationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.Registration) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Name of the `Registration` resource, in the format
-   * `projects/*/locations/*/registrations/<domain_name>`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. Name of the `Registration` resource, in the format
-   * `projects/*/locations/*/registrations/<domain_name>`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The domainName. - */ - java.lang.String getDomainName(); - /** - * - * - *
-   * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * - * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The bytes for domainName. - */ - com.google.protobuf.ByteString getDomainNameBytes(); - - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. The creation timestamp of the `Registration` resource.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the expireTime field is set. - */ - boolean hasExpireTime(); - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The expireTime. - */ - com.google.protobuf.Timestamp getExpireTime(); - /** - * - * - *
-   * Output only. The expiration timestamp of the `Registration`.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The state of the `Registration`
-   * 
- * - * - * .google.cloud.domains.v1beta1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. The state of the `Registration`
-   * 
- * - * - * .google.cloud.domains.v1beta1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.domains.v1beta1.Registration.State getState(); - - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the issues. - */ - java.util.List getIssuesList(); - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of issues. - */ - int getIssuesCount(); - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The issues at the given index. - */ - com.google.cloud.domains.v1beta1.Registration.Issue getIssues(int index); - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for issues. - */ - java.util.List getIssuesValueList(); - /** - * - * - *
-   * Output only. The set of issues with the `Registration` that require attention.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of issues at the given index. - */ - int getIssuesValue(int index); - - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - int getLabelsCount(); - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Set of labels associated with the `Registration`.
-   * 
- * - * map<string, string> labels = 9; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 10; - * - * @return Whether the managementSettings field is set. - */ - boolean hasManagementSettings(); - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 10; - * - * @return The managementSettings. - */ - com.google.cloud.domains.v1beta1.ManagementSettings getManagementSettings(); - /** - * - * - *
-   * Settings for management of the `Registration`, including renewal, billing,
-   * and transfer. You cannot update these with the `UpdateRegistration`
-   * method. To update these settings, use the `ConfigureManagementSettings`
-   * method.
-   * 
- * - * .google.cloud.domains.v1beta1.ManagementSettings management_settings = 10; - */ - com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder getManagementSettingsOrBuilder(); - - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 11; - * - * @return Whether the dnsSettings field is set. - */ - boolean hasDnsSettings(); - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 11; - * - * @return The dnsSettings. - */ - com.google.cloud.domains.v1beta1.DnsSettings getDnsSettings(); - /** - * - * - *
-   * Settings controlling the DNS configuration of the `Registration`. You
-   * cannot update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureDnsSettings` method.
-   * 
- * - * .google.cloud.domains.v1beta1.DnsSettings dns_settings = 11; - */ - com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder getDnsSettingsOrBuilder(); - - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the contactSettings field is set. - */ - boolean hasContactSettings(); - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The contactSettings. - */ - com.google.cloud.domains.v1beta1.ContactSettings getContactSettings(); - /** - * - * - *
-   * Required. Settings for contact information linked to the `Registration`. You cannot
-   * update these with the `UpdateRegistration` method. To update these
-   * settings, use the `ConfigureContactSettings` method.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder getContactSettingsOrBuilder(); - - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the pendingContactSettings field is set. - */ - boolean hasPendingContactSettings(); - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The pendingContactSettings. - */ - com.google.cloud.domains.v1beta1.ContactSettings getPendingContactSettings(); - /** - * - * - *
-   * Output only. Pending contact settings for the `Registration`. Updates to the
-   * `contact_settings` field that change its `registrant_contact` or `privacy`
-   * fields require email confirmation by the `registrant_contact`
-   * before taking effect. This field is set only if there are pending updates
-   * to the `contact_settings` that have not been confirmed. To confirm the
-   * changes, the `registrant_contact` must follow the instructions in the
-   * email they receive.
-   * 
- * - * - * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder getPendingContactSettingsOrBuilder(); - - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the supportedPrivacy. - */ - java.util.List getSupportedPrivacyList(); - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of supportedPrivacy. - */ - int getSupportedPrivacyCount(); - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - com.google.cloud.domains.v1beta1.ContactPrivacy getSupportedPrivacy(int index); - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - java.util.List getSupportedPrivacyValueList(); - /** - * - * - *
-   * Output only. Set of options for the `contact_settings.privacy` field that this
-   * `Registration` supports.
-   * 
- * - * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - int getSupportedPrivacyValue(int index); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ResetAuthorizationCodeRequest.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ResetAuthorizationCodeRequest.java deleted file mode 100644 index f0eefe92..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ResetAuthorizationCodeRequest.java +++ /dev/null @@ -1,642 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Request for the `ResetAuthorizationCode` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest} - */ -public final class ResetAuthorizationCodeRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest) - ResetAuthorizationCodeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResetAuthorizationCodeRequest.newBuilder() to construct. - private ResetAuthorizationCodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ResetAuthorizationCodeRequest() { - registration_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ResetAuthorizationCodeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ResetAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ResetAuthorizationCodeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest.class, - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private volatile java.lang.Object registration_; - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being reset,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - @java.lang.Override - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being reset,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registration_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registration_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest other = - (com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest) obj; - - if (!getRegistration().equals(other.getRegistration())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `ResetAuthorizationCode` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest) - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ResetAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ResetAuthorizationCodeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest.class, - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - registration_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_ResetAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest build() { - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest buildPartial() { - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest result = - new com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest(this); - result.registration_ = registration_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest) { - return mergeFrom((com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest other) { - if (other - == com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest.getDefaultInstance()) - return this; - if (!other.getRegistration().isEmpty()) { - registration_ = other.registration_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - registration_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object registration_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being reset,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being reset,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being reset,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The registration to set. - * @return This builder for chaining. - */ - public Builder setRegistration(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being reset,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearRegistration() { - - registration_ = getDefaultInstance().getRegistration(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being reset,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for registration to set. - * @return This builder for chaining. - */ - public Builder setRegistrationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registration_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest) - private static final com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest(); - } - - public static com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetAuthorizationCodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ResetAuthorizationCodeRequestOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ResetAuthorizationCodeRequestOrBuilder.java deleted file mode 100644 index 12453edf..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ResetAuthorizationCodeRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface ResetAuthorizationCodeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being reset,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - java.lang.String getRegistration(); - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being reset,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - com.google.protobuf.ByteString getRegistrationBytes(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveAuthorizationCodeRequest.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveAuthorizationCodeRequest.java deleted file mode 100644 index 65a2e3e3..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveAuthorizationCodeRequest.java +++ /dev/null @@ -1,646 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Request for the `RetrieveAuthorizationCode` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest} - */ -public final class RetrieveAuthorizationCodeRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest) - RetrieveAuthorizationCodeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetrieveAuthorizationCodeRequest.newBuilder() to construct. - private RetrieveAuthorizationCodeRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetrieveAuthorizationCodeRequest() { - registration_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetrieveAuthorizationCodeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveAuthorizationCodeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest.class, - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private volatile java.lang.Object registration_; - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being retrieved,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - @java.lang.Override - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being retrieved,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registration_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registration_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registration_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest other = - (com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest) obj; - - if (!getRegistration().equals(other.getRegistration())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `RetrieveAuthorizationCode` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest) - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveAuthorizationCodeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest.class, - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest.Builder.class); - } - - // Construct using - // com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - registration_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveAuthorizationCodeRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest build() { - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest buildPartial() { - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest result = - new com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest(this); - result.registration_ = registration_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest) { - return mergeFrom((com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest other) { - if (other - == com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest.getDefaultInstance()) - return this; - if (!other.getRegistration().isEmpty()) { - registration_ = other.registration_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - registration_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object registration_ = ""; - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being retrieved,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - public java.lang.String getRegistration() { - java.lang.Object ref = registration_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registration_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being retrieved,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - public com.google.protobuf.ByteString getRegistrationBytes() { - java.lang.Object ref = registration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - registration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being retrieved,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The registration to set. - * @return This builder for chaining. - */ - public Builder setRegistration(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being retrieved,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearRegistration() { - - registration_ = getDefaultInstance().getRegistration(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the `Registration` whose authorization code is being retrieved,
-     * in the format `projects/*/locations/*/registrations/*`.
-     * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for registration to set. - * @return This builder for chaining. - */ - public Builder setRegistrationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registration_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest) - private static final com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest(); - } - - public static com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveAuthorizationCodeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveAuthorizationCodeRequestOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveAuthorizationCodeRequestOrBuilder.java deleted file mode 100644 index fc4cf2a3..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveAuthorizationCodeRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface RetrieveAuthorizationCodeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being retrieved,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The registration. - */ - java.lang.String getRegistration(); - /** - * - * - *
-   * Required. The name of the `Registration` whose authorization code is being retrieved,
-   * in the format `projects/*/locations/*/registrations/*`.
-   * 
- * - * - * string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for registration. - */ - com.google.protobuf.ByteString getRegistrationBytes(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersRequest.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersRequest.java deleted file mode 100644 index 3f248337..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersRequest.java +++ /dev/null @@ -1,819 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Request for the `RetrieveRegisterParameters` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest} - */ -public final class RetrieveRegisterParametersRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest) - RetrieveRegisterParametersRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetrieveRegisterParametersRequest.newBuilder() to construct. - private RetrieveRegisterParametersRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetrieveRegisterParametersRequest() { - domainName_ = ""; - location_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetrieveRegisterParametersRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest.class, - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest.Builder.class); - } - - public static final int DOMAIN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object domainName_; - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - @java.lang.Override - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_FIELD_NUMBER = 2; - private volatile java.lang.Object location_; - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - @java.lang.Override - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, location_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest other = - (com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest) obj; - - if (!getDomainName().equals(other.getDomainName())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOMAIN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDomainName().hashCode(); - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `RetrieveRegisterParameters` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest) - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest.class, - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest.Builder.class); - } - - // Construct using - // com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - domainName_ = ""; - - location_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest build() { - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest buildPartial() { - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest result = - new com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest(this); - result.domainName_ = domainName_; - result.location_ = location_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest) { - return mergeFrom( - (com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest other) { - if (other - == com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest - .getDefaultInstance()) return this; - if (!other.getDomainName().isEmpty()) { - domainName_ = other.domainName_; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - domainName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - location_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object domainName_ = ""; - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domainName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDomainName() { - - domainName_ = getDefaultInstance().getDomainName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domainName_ = value; - onChanged(); - return this; - } - - private java.lang.Object location_ = ""; - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The location to set. - * @return This builder for chaining. - */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - location_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearLocation() { - - location_ = getDefaultInstance().getLocation(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for location to set. - * @return This builder for chaining. - */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - location_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest) - private static final com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest(); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveRegisterParametersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersRequestOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersRequestOrBuilder.java deleted file mode 100644 index 3e925b59..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersRequestOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface RetrieveRegisterParametersRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - java.lang.String getDomainName(); - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - com.google.protobuf.ByteString getDomainNameBytes(); - - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - java.lang.String getLocation(); - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersResponse.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersResponse.java deleted file mode 100644 index aa4eca24..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersResponse.java +++ /dev/null @@ -1,722 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Response for the `RetrieveRegisterParameters` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse} - */ -public final class RetrieveRegisterParametersResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse) - RetrieveRegisterParametersResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetrieveRegisterParametersResponse.newBuilder() to construct. - private RetrieveRegisterParametersResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetrieveRegisterParametersResponse() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetrieveRegisterParametersResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse.class, - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse.Builder.class); - } - - public static final int REGISTER_PARAMETERS_FIELD_NUMBER = 1; - private com.google.cloud.domains.v1beta1.RegisterParameters registerParameters_; - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - * @return Whether the registerParameters field is set. - */ - @java.lang.Override - public boolean hasRegisterParameters() { - return registerParameters_ != null; - } - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - * @return The registerParameters. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegisterParameters getRegisterParameters() { - return registerParameters_ == null - ? com.google.cloud.domains.v1beta1.RegisterParameters.getDefaultInstance() - : registerParameters_; - } - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegisterParametersOrBuilder - getRegisterParametersOrBuilder() { - return getRegisterParameters(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (registerParameters_ != null) { - output.writeMessage(1, getRegisterParameters()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (registerParameters_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRegisterParameters()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse other = - (com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse) obj; - - if (hasRegisterParameters() != other.hasRegisterParameters()) return false; - if (hasRegisterParameters()) { - if (!getRegisterParameters().equals(other.getRegisterParameters())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRegisterParameters()) { - hash = (37 * hash) + REGISTER_PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getRegisterParameters().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response for the `RetrieveRegisterParameters` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse) - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse.class, - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse.Builder.class); - } - - // Construct using - // com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (registerParametersBuilder_ == null) { - registerParameters_ = null; - } else { - registerParameters_ = null; - registerParametersBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveRegisterParametersResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse - getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse build() { - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse buildPartial() { - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse result = - new com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse(this); - if (registerParametersBuilder_ == null) { - result.registerParameters_ = registerParameters_; - } else { - result.registerParameters_ = registerParametersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse) { - return mergeFrom( - (com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse other) { - if (other - == com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse - .getDefaultInstance()) return this; - if (other.hasRegisterParameters()) { - mergeRegisterParameters(other.getRegisterParameters()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getRegisterParametersFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.domains.v1beta1.RegisterParameters registerParameters_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.RegisterParameters, - com.google.cloud.domains.v1beta1.RegisterParameters.Builder, - com.google.cloud.domains.v1beta1.RegisterParametersOrBuilder> - registerParametersBuilder_; - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - * @return Whether the registerParameters field is set. - */ - public boolean hasRegisterParameters() { - return registerParametersBuilder_ != null || registerParameters_ != null; - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - * @return The registerParameters. - */ - public com.google.cloud.domains.v1beta1.RegisterParameters getRegisterParameters() { - if (registerParametersBuilder_ == null) { - return registerParameters_ == null - ? com.google.cloud.domains.v1beta1.RegisterParameters.getDefaultInstance() - : registerParameters_; - } else { - return registerParametersBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - public Builder setRegisterParameters( - com.google.cloud.domains.v1beta1.RegisterParameters value) { - if (registerParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - registerParameters_ = value; - onChanged(); - } else { - registerParametersBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - public Builder setRegisterParameters( - com.google.cloud.domains.v1beta1.RegisterParameters.Builder builderForValue) { - if (registerParametersBuilder_ == null) { - registerParameters_ = builderForValue.build(); - onChanged(); - } else { - registerParametersBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - public Builder mergeRegisterParameters( - com.google.cloud.domains.v1beta1.RegisterParameters value) { - if (registerParametersBuilder_ == null) { - if (registerParameters_ != null) { - registerParameters_ = - com.google.cloud.domains.v1beta1.RegisterParameters.newBuilder(registerParameters_) - .mergeFrom(value) - .buildPartial(); - } else { - registerParameters_ = value; - } - onChanged(); - } else { - registerParametersBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - public Builder clearRegisterParameters() { - if (registerParametersBuilder_ == null) { - registerParameters_ = null; - onChanged(); - } else { - registerParameters_ = null; - registerParametersBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - public com.google.cloud.domains.v1beta1.RegisterParameters.Builder - getRegisterParametersBuilder() { - - onChanged(); - return getRegisterParametersFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - public com.google.cloud.domains.v1beta1.RegisterParametersOrBuilder - getRegisterParametersOrBuilder() { - if (registerParametersBuilder_ != null) { - return registerParametersBuilder_.getMessageOrBuilder(); - } else { - return registerParameters_ == null - ? com.google.cloud.domains.v1beta1.RegisterParameters.getDefaultInstance() - : registerParameters_; - } - } - /** - * - * - *
-     * Parameters to use when calling the `RegisterDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.RegisterParameters, - com.google.cloud.domains.v1beta1.RegisterParameters.Builder, - com.google.cloud.domains.v1beta1.RegisterParametersOrBuilder> - getRegisterParametersFieldBuilder() { - if (registerParametersBuilder_ == null) { - registerParametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.RegisterParameters, - com.google.cloud.domains.v1beta1.RegisterParameters.Builder, - com.google.cloud.domains.v1beta1.RegisterParametersOrBuilder>( - getRegisterParameters(), getParentForChildren(), isClean()); - registerParameters_ = null; - } - return registerParametersBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse) - private static final com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse(); - } - - public static com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveRegisterParametersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersResponseOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersResponseOrBuilder.java deleted file mode 100644 index 353e7f18..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersResponseOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface RetrieveRegisterParametersResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - * @return Whether the registerParameters field is set. - */ - boolean hasRegisterParameters(); - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - * @return The registerParameters. - */ - com.google.cloud.domains.v1beta1.RegisterParameters getRegisterParameters(); - /** - * - * - *
-   * Parameters to use when calling the `RegisterDomain` method.
-   * 
- * - * .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - com.google.cloud.domains.v1beta1.RegisterParametersOrBuilder getRegisterParametersOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveTransferParametersRequest.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveTransferParametersRequest.java deleted file mode 100644 index e38ce975..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveTransferParametersRequest.java +++ /dev/null @@ -1,819 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Request for the `RetrieveTransferParameters` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.RetrieveTransferParametersRequest} - */ -public final class RetrieveTransferParametersRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.RetrieveTransferParametersRequest) - RetrieveTransferParametersRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetrieveTransferParametersRequest.newBuilder() to construct. - private RetrieveTransferParametersRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetrieveTransferParametersRequest() { - domainName_ = ""; - location_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetrieveTransferParametersRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest.class, - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest.Builder.class); - } - - public static final int DOMAIN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object domainName_; - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - @java.lang.Override - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_FIELD_NUMBER = 2; - private volatile java.lang.Object location_; - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - @java.lang.Override - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, location_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest other = - (com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest) obj; - - if (!getDomainName().equals(other.getDomainName())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOMAIN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDomainName().hashCode(); - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `RetrieveTransferParameters` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.RetrieveTransferParametersRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.RetrieveTransferParametersRequest) - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest.class, - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest.Builder.class); - } - - // Construct using - // com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - domainName_ = ""; - - location_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest - getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest build() { - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest buildPartial() { - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest result = - new com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest(this); - result.domainName_ = domainName_; - result.location_ = location_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest) { - return mergeFrom( - (com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest other) { - if (other - == com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest - .getDefaultInstance()) return this; - if (!other.getDomainName().isEmpty()) { - domainName_ = other.domainName_; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - domainName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - location_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object domainName_ = ""; - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domainName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDomainName() { - - domainName_ = getDefaultInstance().getDomainName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-     * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domainName_ = value; - onChanged(); - return this; - } - - private java.lang.Object location_ = ""; - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The location to set. - * @return This builder for chaining. - */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - location_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearLocation() { - - location_ = getDefaultInstance().getLocation(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for location to set. - * @return This builder for chaining. - */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - location_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.RetrieveTransferParametersRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.RetrieveTransferParametersRequest) - private static final com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest(); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveTransferParametersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveTransferParametersRequestOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveTransferParametersRequestOrBuilder.java deleted file mode 100644 index 38eaf7a4..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveTransferParametersRequestOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface RetrieveTransferParametersRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.RetrieveTransferParametersRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The domainName. - */ - java.lang.String getDomainName(); - /** - * - * - *
-   * Required. The domain name. Unicode domain names must be expressed in Punycode format.
-   * 
- * - * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for domainName. - */ - com.google.protobuf.ByteString getDomainNameBytes(); - - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - java.lang.String getLocation(); - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveTransferParametersResponse.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveTransferParametersResponse.java deleted file mode 100644 index 9afcc608..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveTransferParametersResponse.java +++ /dev/null @@ -1,722 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Response for the `RetrieveTransferParameters` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.RetrieveTransferParametersResponse} - */ -public final class RetrieveTransferParametersResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.RetrieveTransferParametersResponse) - RetrieveTransferParametersResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetrieveTransferParametersResponse.newBuilder() to construct. - private RetrieveTransferParametersResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetrieveTransferParametersResponse() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetrieveTransferParametersResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse.class, - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse.Builder.class); - } - - public static final int TRANSFER_PARAMETERS_FIELD_NUMBER = 1; - private com.google.cloud.domains.v1beta1.TransferParameters transferParameters_; - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1beta1.TransferParameters transfer_parameters = 1; - * - * @return Whether the transferParameters field is set. - */ - @java.lang.Override - public boolean hasTransferParameters() { - return transferParameters_ != null; - } - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1beta1.TransferParameters transfer_parameters = 1; - * - * @return The transferParameters. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.TransferParameters getTransferParameters() { - return transferParameters_ == null - ? com.google.cloud.domains.v1beta1.TransferParameters.getDefaultInstance() - : transferParameters_; - } - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1beta1.TransferParameters transfer_parameters = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.TransferParametersOrBuilder - getTransferParametersOrBuilder() { - return getTransferParameters(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (transferParameters_ != null) { - output.writeMessage(1, getTransferParameters()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (transferParameters_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTransferParameters()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse other = - (com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse) obj; - - if (hasTransferParameters() != other.hasTransferParameters()) return false; - if (hasTransferParameters()) { - if (!getTransferParameters().equals(other.getTransferParameters())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTransferParameters()) { - hash = (37 * hash) + TRANSFER_PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getTransferParameters().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response for the `RetrieveTransferParameters` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.RetrieveTransferParametersResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.RetrieveTransferParametersResponse) - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse.class, - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse.Builder.class); - } - - // Construct using - // com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (transferParametersBuilder_ == null) { - transferParameters_ = null; - } else { - transferParameters_ = null; - transferParametersBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_RetrieveTransferParametersResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse - getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse build() { - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse buildPartial() { - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse result = - new com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse(this); - if (transferParametersBuilder_ == null) { - result.transferParameters_ = transferParameters_; - } else { - result.transferParameters_ = transferParametersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse) { - return mergeFrom( - (com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse other) { - if (other - == com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse - .getDefaultInstance()) return this; - if (other.hasTransferParameters()) { - mergeTransferParameters(other.getTransferParameters()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getTransferParametersFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.domains.v1beta1.TransferParameters transferParameters_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.TransferParameters, - com.google.cloud.domains.v1beta1.TransferParameters.Builder, - com.google.cloud.domains.v1beta1.TransferParametersOrBuilder> - transferParametersBuilder_; - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferParameters transfer_parameters = 1; - * - * @return Whether the transferParameters field is set. - */ - public boolean hasTransferParameters() { - return transferParametersBuilder_ != null || transferParameters_ != null; - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferParameters transfer_parameters = 1; - * - * @return The transferParameters. - */ - public com.google.cloud.domains.v1beta1.TransferParameters getTransferParameters() { - if (transferParametersBuilder_ == null) { - return transferParameters_ == null - ? com.google.cloud.domains.v1beta1.TransferParameters.getDefaultInstance() - : transferParameters_; - } else { - return transferParametersBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferParameters transfer_parameters = 1; - */ - public Builder setTransferParameters( - com.google.cloud.domains.v1beta1.TransferParameters value) { - if (transferParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transferParameters_ = value; - onChanged(); - } else { - transferParametersBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferParameters transfer_parameters = 1; - */ - public Builder setTransferParameters( - com.google.cloud.domains.v1beta1.TransferParameters.Builder builderForValue) { - if (transferParametersBuilder_ == null) { - transferParameters_ = builderForValue.build(); - onChanged(); - } else { - transferParametersBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferParameters transfer_parameters = 1; - */ - public Builder mergeTransferParameters( - com.google.cloud.domains.v1beta1.TransferParameters value) { - if (transferParametersBuilder_ == null) { - if (transferParameters_ != null) { - transferParameters_ = - com.google.cloud.domains.v1beta1.TransferParameters.newBuilder(transferParameters_) - .mergeFrom(value) - .buildPartial(); - } else { - transferParameters_ = value; - } - onChanged(); - } else { - transferParametersBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferParameters transfer_parameters = 1; - */ - public Builder clearTransferParameters() { - if (transferParametersBuilder_ == null) { - transferParameters_ = null; - onChanged(); - } else { - transferParameters_ = null; - transferParametersBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferParameters transfer_parameters = 1; - */ - public com.google.cloud.domains.v1beta1.TransferParameters.Builder - getTransferParametersBuilder() { - - onChanged(); - return getTransferParametersFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferParameters transfer_parameters = 1; - */ - public com.google.cloud.domains.v1beta1.TransferParametersOrBuilder - getTransferParametersOrBuilder() { - if (transferParametersBuilder_ != null) { - return transferParametersBuilder_.getMessageOrBuilder(); - } else { - return transferParameters_ == null - ? com.google.cloud.domains.v1beta1.TransferParameters.getDefaultInstance() - : transferParameters_; - } - } - /** - * - * - *
-     * Parameters to use when calling the `TransferDomain` method.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferParameters transfer_parameters = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.TransferParameters, - com.google.cloud.domains.v1beta1.TransferParameters.Builder, - com.google.cloud.domains.v1beta1.TransferParametersOrBuilder> - getTransferParametersFieldBuilder() { - if (transferParametersBuilder_ == null) { - transferParametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.TransferParameters, - com.google.cloud.domains.v1beta1.TransferParameters.Builder, - com.google.cloud.domains.v1beta1.TransferParametersOrBuilder>( - getTransferParameters(), getParentForChildren(), isClean()); - transferParameters_ = null; - } - return transferParametersBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.RetrieveTransferParametersResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.RetrieveTransferParametersResponse) - private static final com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse(); - } - - public static com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveTransferParametersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveTransferParametersResponseOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveTransferParametersResponseOrBuilder.java deleted file mode 100644 index 0f62cee3..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveTransferParametersResponseOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface RetrieveTransferParametersResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.RetrieveTransferParametersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1beta1.TransferParameters transfer_parameters = 1; - * - * @return Whether the transferParameters field is set. - */ - boolean hasTransferParameters(); - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1beta1.TransferParameters transfer_parameters = 1; - * - * @return The transferParameters. - */ - com.google.cloud.domains.v1beta1.TransferParameters getTransferParameters(); - /** - * - * - *
-   * Parameters to use when calling the `TransferDomain` method.
-   * 
- * - * .google.cloud.domains.v1beta1.TransferParameters transfer_parameters = 1; - */ - com.google.cloud.domains.v1beta1.TransferParametersOrBuilder getTransferParametersOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/SearchDomainsRequest.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/SearchDomainsRequest.java deleted file mode 100644 index e3934cb5..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/SearchDomainsRequest.java +++ /dev/null @@ -1,808 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Request for the `SearchDomains` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.SearchDomainsRequest} - */ -public final class SearchDomainsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.SearchDomainsRequest) - SearchDomainsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SearchDomainsRequest.newBuilder() to construct. - private SearchDomainsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SearchDomainsRequest() { - query_ = ""; - location_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SearchDomainsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_SearchDomainsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_SearchDomainsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.SearchDomainsRequest.class, - com.google.cloud.domains.v1beta1.SearchDomainsRequest.Builder.class); - } - - public static final int QUERY_FIELD_NUMBER = 1; - private volatile java.lang.Object query_; - /** - * - * - *
-   * Required. String used to search for available domain names.
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The query. - */ - @java.lang.Override - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } - } - /** - * - * - *
-   * Required. String used to search for available domain names.
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for query. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_FIELD_NUMBER = 2; - private volatile java.lang.Object location_; - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - @java.lang.Override - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, location_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.SearchDomainsRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.SearchDomainsRequest other = - (com.google.cloud.domains.v1beta1.SearchDomainsRequest) obj; - - if (!getQuery().equals(other.getQuery())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.SearchDomainsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `SearchDomains` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.SearchDomainsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.SearchDomainsRequest) - com.google.cloud.domains.v1beta1.SearchDomainsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_SearchDomainsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_SearchDomainsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.SearchDomainsRequest.class, - com.google.cloud.domains.v1beta1.SearchDomainsRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.SearchDomainsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - query_ = ""; - - location_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_SearchDomainsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.SearchDomainsRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.SearchDomainsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.SearchDomainsRequest build() { - com.google.cloud.domains.v1beta1.SearchDomainsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.SearchDomainsRequest buildPartial() { - com.google.cloud.domains.v1beta1.SearchDomainsRequest result = - new com.google.cloud.domains.v1beta1.SearchDomainsRequest(this); - result.query_ = query_; - result.location_ = location_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.SearchDomainsRequest) { - return mergeFrom((com.google.cloud.domains.v1beta1.SearchDomainsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.SearchDomainsRequest other) { - if (other == com.google.cloud.domains.v1beta1.SearchDomainsRequest.getDefaultInstance()) - return this; - if (!other.getQuery().isEmpty()) { - query_ = other.query_; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - query_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - location_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object query_ = ""; - /** - * - * - *
-     * Required. String used to search for available domain names.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The query. - */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. String used to search for available domain names.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for query. - */ - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. String used to search for available domain names.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The query to set. - * @return This builder for chaining. - */ - public Builder setQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - query_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. String used to search for available domain names.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearQuery() { - - query_ = getDefaultInstance().getQuery(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. String used to search for available domain names.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for query to set. - * @return This builder for chaining. - */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - query_ = value; - onChanged(); - return this; - } - - private java.lang.Object location_ = ""; - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The location to set. - * @return This builder for chaining. - */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - location_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearLocation() { - - location_ = getDefaultInstance().getLocation(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location. Must be in the format `projects/*/locations/*`.
-     * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for location to set. - * @return This builder for chaining. - */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - location_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.SearchDomainsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.SearchDomainsRequest) - private static final com.google.cloud.domains.v1beta1.SearchDomainsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.SearchDomainsRequest(); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchDomainsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.SearchDomainsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/SearchDomainsRequestOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/SearchDomainsRequestOrBuilder.java deleted file mode 100644 index cc0a024c..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/SearchDomainsRequestOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface SearchDomainsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.SearchDomainsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. String used to search for available domain names.
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The query. - */ - java.lang.String getQuery(); - /** - * - * - *
-   * Required. String used to search for available domain names.
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for query. - */ - com.google.protobuf.ByteString getQueryBytes(); - - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - java.lang.String getLocation(); - /** - * - * - *
-   * Required. The location. Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/SearchDomainsResponse.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/SearchDomainsResponse.java deleted file mode 100644 index c7e5342e..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/SearchDomainsResponse.java +++ /dev/null @@ -1,964 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Response for the `SearchDomains` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.SearchDomainsResponse} - */ -public final class SearchDomainsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.SearchDomainsResponse) - SearchDomainsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use SearchDomainsResponse.newBuilder() to construct. - private SearchDomainsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SearchDomainsResponse() { - registerParameters_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SearchDomainsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_SearchDomainsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_SearchDomainsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.SearchDomainsResponse.class, - com.google.cloud.domains.v1beta1.SearchDomainsResponse.Builder.class); - } - - public static final int REGISTER_PARAMETERS_FIELD_NUMBER = 1; - private java.util.List registerParameters_; - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - @java.lang.Override - public java.util.List - getRegisterParametersList() { - return registerParameters_; - } - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - @java.lang.Override - public java.util.List - getRegisterParametersOrBuilderList() { - return registerParameters_; - } - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - @java.lang.Override - public int getRegisterParametersCount() { - return registerParameters_.size(); - } - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegisterParameters getRegisterParameters(int index) { - return registerParameters_.get(index); - } - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegisterParametersOrBuilder - getRegisterParametersOrBuilder(int index) { - return registerParameters_.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 < registerParameters_.size(); i++) { - output.writeMessage(1, registerParameters_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < registerParameters_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, registerParameters_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.SearchDomainsResponse)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.SearchDomainsResponse other = - (com.google.cloud.domains.v1beta1.SearchDomainsResponse) obj; - - if (!getRegisterParametersList().equals(other.getRegisterParametersList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRegisterParametersCount() > 0) { - hash = (37 * hash) + REGISTER_PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getRegisterParametersList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.SearchDomainsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response for the `SearchDomains` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.SearchDomainsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.SearchDomainsResponse) - com.google.cloud.domains.v1beta1.SearchDomainsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_SearchDomainsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_SearchDomainsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.SearchDomainsResponse.class, - com.google.cloud.domains.v1beta1.SearchDomainsResponse.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.SearchDomainsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (registerParametersBuilder_ == null) { - registerParameters_ = java.util.Collections.emptyList(); - } else { - registerParameters_ = null; - registerParametersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_SearchDomainsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.SearchDomainsResponse getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.SearchDomainsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.SearchDomainsResponse build() { - com.google.cloud.domains.v1beta1.SearchDomainsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.SearchDomainsResponse buildPartial() { - com.google.cloud.domains.v1beta1.SearchDomainsResponse result = - new com.google.cloud.domains.v1beta1.SearchDomainsResponse(this); - int from_bitField0_ = bitField0_; - if (registerParametersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - registerParameters_ = java.util.Collections.unmodifiableList(registerParameters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.registerParameters_ = registerParameters_; - } else { - result.registerParameters_ = registerParametersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.SearchDomainsResponse) { - return mergeFrom((com.google.cloud.domains.v1beta1.SearchDomainsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.SearchDomainsResponse other) { - if (other == com.google.cloud.domains.v1beta1.SearchDomainsResponse.getDefaultInstance()) - return this; - if (registerParametersBuilder_ == null) { - if (!other.registerParameters_.isEmpty()) { - if (registerParameters_.isEmpty()) { - registerParameters_ = other.registerParameters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRegisterParametersIsMutable(); - registerParameters_.addAll(other.registerParameters_); - } - onChanged(); - } - } else { - if (!other.registerParameters_.isEmpty()) { - if (registerParametersBuilder_.isEmpty()) { - registerParametersBuilder_.dispose(); - registerParametersBuilder_ = null; - registerParameters_ = other.registerParameters_; - bitField0_ = (bitField0_ & ~0x00000001); - registerParametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRegisterParametersFieldBuilder() - : null; - } else { - registerParametersBuilder_.addAllMessages(other.registerParameters_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.domains.v1beta1.RegisterParameters m = - input.readMessage( - com.google.cloud.domains.v1beta1.RegisterParameters.parser(), - extensionRegistry); - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - registerParameters_.add(m); - } else { - registerParametersBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List - registerParameters_ = java.util.Collections.emptyList(); - - private void ensureRegisterParametersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - registerParameters_ = - new java.util.ArrayList( - registerParameters_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1beta1.RegisterParameters, - com.google.cloud.domains.v1beta1.RegisterParameters.Builder, - com.google.cloud.domains.v1beta1.RegisterParametersOrBuilder> - registerParametersBuilder_; - - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public java.util.List - getRegisterParametersList() { - if (registerParametersBuilder_ == null) { - return java.util.Collections.unmodifiableList(registerParameters_); - } else { - return registerParametersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public int getRegisterParametersCount() { - if (registerParametersBuilder_ == null) { - return registerParameters_.size(); - } else { - return registerParametersBuilder_.getCount(); - } - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public com.google.cloud.domains.v1beta1.RegisterParameters getRegisterParameters(int index) { - if (registerParametersBuilder_ == null) { - return registerParameters_.get(index); - } else { - return registerParametersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public Builder setRegisterParameters( - int index, com.google.cloud.domains.v1beta1.RegisterParameters value) { - if (registerParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisterParametersIsMutable(); - registerParameters_.set(index, value); - onChanged(); - } else { - registerParametersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public Builder setRegisterParameters( - int index, com.google.cloud.domains.v1beta1.RegisterParameters.Builder builderForValue) { - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - registerParameters_.set(index, builderForValue.build()); - onChanged(); - } else { - registerParametersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public Builder addRegisterParameters( - com.google.cloud.domains.v1beta1.RegisterParameters value) { - if (registerParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisterParametersIsMutable(); - registerParameters_.add(value); - onChanged(); - } else { - registerParametersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public Builder addRegisterParameters( - int index, com.google.cloud.domains.v1beta1.RegisterParameters value) { - if (registerParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisterParametersIsMutable(); - registerParameters_.add(index, value); - onChanged(); - } else { - registerParametersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public Builder addRegisterParameters( - com.google.cloud.domains.v1beta1.RegisterParameters.Builder builderForValue) { - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - registerParameters_.add(builderForValue.build()); - onChanged(); - } else { - registerParametersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public Builder addRegisterParameters( - int index, com.google.cloud.domains.v1beta1.RegisterParameters.Builder builderForValue) { - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - registerParameters_.add(index, builderForValue.build()); - onChanged(); - } else { - registerParametersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public Builder addAllRegisterParameters( - java.lang.Iterable values) { - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, registerParameters_); - onChanged(); - } else { - registerParametersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public Builder clearRegisterParameters() { - if (registerParametersBuilder_ == null) { - registerParameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - registerParametersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public Builder removeRegisterParameters(int index) { - if (registerParametersBuilder_ == null) { - ensureRegisterParametersIsMutable(); - registerParameters_.remove(index); - onChanged(); - } else { - registerParametersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public com.google.cloud.domains.v1beta1.RegisterParameters.Builder getRegisterParametersBuilder( - int index) { - return getRegisterParametersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public com.google.cloud.domains.v1beta1.RegisterParametersOrBuilder - getRegisterParametersOrBuilder(int index) { - if (registerParametersBuilder_ == null) { - return registerParameters_.get(index); - } else { - return registerParametersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public java.util.List - getRegisterParametersOrBuilderList() { - if (registerParametersBuilder_ != null) { - return registerParametersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(registerParameters_); - } - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public com.google.cloud.domains.v1beta1.RegisterParameters.Builder - addRegisterParametersBuilder() { - return getRegisterParametersFieldBuilder() - .addBuilder(com.google.cloud.domains.v1beta1.RegisterParameters.getDefaultInstance()); - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public com.google.cloud.domains.v1beta1.RegisterParameters.Builder addRegisterParametersBuilder( - int index) { - return getRegisterParametersFieldBuilder() - .addBuilder( - index, com.google.cloud.domains.v1beta1.RegisterParameters.getDefaultInstance()); - } - /** - * - * - *
-     * Results of the domain name search.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - * - */ - public java.util.List - getRegisterParametersBuilderList() { - return getRegisterParametersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1beta1.RegisterParameters, - com.google.cloud.domains.v1beta1.RegisterParameters.Builder, - com.google.cloud.domains.v1beta1.RegisterParametersOrBuilder> - getRegisterParametersFieldBuilder() { - if (registerParametersBuilder_ == null) { - registerParametersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.domains.v1beta1.RegisterParameters, - com.google.cloud.domains.v1beta1.RegisterParameters.Builder, - com.google.cloud.domains.v1beta1.RegisterParametersOrBuilder>( - registerParameters_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - registerParameters_ = null; - } - return registerParametersBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.SearchDomainsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.SearchDomainsResponse) - private static final com.google.cloud.domains.v1beta1.SearchDomainsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.SearchDomainsResponse(); - } - - public static com.google.cloud.domains.v1beta1.SearchDomainsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchDomainsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.SearchDomainsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/SearchDomainsResponseOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/SearchDomainsResponseOrBuilder.java deleted file mode 100644 index bfcbd407..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/SearchDomainsResponseOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface SearchDomainsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.SearchDomainsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - java.util.List getRegisterParametersList(); - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - com.google.cloud.domains.v1beta1.RegisterParameters getRegisterParameters(int index); - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - int getRegisterParametersCount(); - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - java.util.List - getRegisterParametersOrBuilderList(); - /** - * - * - *
-   * Results of the domain name search.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.RegisterParameters register_parameters = 1; - */ - com.google.cloud.domains.v1beta1.RegisterParametersOrBuilder getRegisterParametersOrBuilder( - int index); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/TransferDomainRequest.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/TransferDomainRequest.java deleted file mode 100644 index 140d9ebb..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/TransferDomainRequest.java +++ /dev/null @@ -1,2064 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Request for the `TransferDomain` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.TransferDomainRequest} - */ -public final class TransferDomainRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.TransferDomainRequest) - TransferDomainRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TransferDomainRequest.newBuilder() to construct. - private TransferDomainRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TransferDomainRequest() { - parent_ = ""; - contactNotices_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TransferDomainRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_TransferDomainRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_TransferDomainRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.TransferDomainRequest.class, - com.google.cloud.domains.v1beta1.TransferDomainRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGISTRATION_FIELD_NUMBER = 2; - private com.google.cloud.domains.v1beta1.Registration registration_; - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - @java.lang.Override - public boolean hasRegistration() { - return registration_ != null; - } - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.Registration getRegistration() { - return registration_ == null - ? com.google.cloud.domains.v1beta1.Registration.getDefaultInstance() - : registration_; - } - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegistrationOrBuilder getRegistrationOrBuilder() { - return getRegistration(); - } - - public static final int CONTACT_NOTICES_FIELD_NUMBER = 3; - private java.util.List contactNotices_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactNotice> - contactNotices_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactNotice>() { - public com.google.cloud.domains.v1beta1.ContactNotice convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.ContactNotice result = - com.google.cloud.domains.v1beta1.ContactNotice.valueOf(from); - return result == null - ? com.google.cloud.domains.v1beta1.ContactNotice.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @return A list containing the contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @return The count of contactNotices. - */ - @java.lang.Override - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - @java.lang.Override - public java.util.List getContactNoticesValueList() { - return contactNotices_; - } - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - @java.lang.Override - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - - private int contactNoticesMemoizedSerializedSize; - - public static final int YEARLY_PRICE_FIELD_NUMBER = 4; - private com.google.type.Money yearlyPrice_; - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - @java.lang.Override - public boolean hasYearlyPrice() { - return yearlyPrice_ != null; - } - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - @java.lang.Override - public com.google.type.Money getYearlyPrice() { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - return getYearlyPrice(); - } - - public static final int AUTHORIZATION_CODE_FIELD_NUMBER = 5; - private com.google.cloud.domains.v1beta1.AuthorizationCode authorizationCode_; - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5; - * - * @return Whether the authorizationCode field is set. - */ - @java.lang.Override - public boolean hasAuthorizationCode() { - return authorizationCode_ != null; - } - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5; - * - * @return The authorizationCode. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.AuthorizationCode getAuthorizationCode() { - return authorizationCode_ == null - ? com.google.cloud.domains.v1beta1.AuthorizationCode.getDefaultInstance() - : authorizationCode_; - } - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.AuthorizationCodeOrBuilder - getAuthorizationCodeOrBuilder() { - return getAuthorizationCode(); - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 6; - private boolean validateOnly_; - /** - * - * - *
-   * Validate the request without actually transferring the domain.
-   * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (registration_ != null) { - output.writeMessage(2, getRegistration()); - } - if (getContactNoticesList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(contactNoticesMemoizedSerializedSize); - } - for (int i = 0; i < contactNotices_.size(); i++) { - output.writeEnumNoTag(contactNotices_.get(i)); - } - if (yearlyPrice_ != null) { - output.writeMessage(4, getYearlyPrice()); - } - if (authorizationCode_ != null) { - output.writeMessage(5, getAuthorizationCode()); - } - if (validateOnly_ != false) { - output.writeBool(6, validateOnly_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (registration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRegistration()); - } - { - int dataSize = 0; - for (int i = 0; i < contactNotices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(contactNotices_.get(i)); - } - size += dataSize; - if (!getContactNoticesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - contactNoticesMemoizedSerializedSize = dataSize; - } - if (yearlyPrice_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getYearlyPrice()); - } - if (authorizationCode_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthorizationCode()); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, validateOnly_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.TransferDomainRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.TransferDomainRequest other = - (com.google.cloud.domains.v1beta1.TransferDomainRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasRegistration() != other.hasRegistration()) return false; - if (hasRegistration()) { - if (!getRegistration().equals(other.getRegistration())) return false; - } - if (!contactNotices_.equals(other.contactNotices_)) return false; - if (hasYearlyPrice() != other.hasYearlyPrice()) return false; - if (hasYearlyPrice()) { - if (!getYearlyPrice().equals(other.getYearlyPrice())) return false; - } - if (hasAuthorizationCode() != other.hasAuthorizationCode()) return false; - if (hasAuthorizationCode()) { - if (!getAuthorizationCode().equals(other.getAuthorizationCode())) return false; - } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasRegistration()) { - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - } - if (getContactNoticesCount() > 0) { - hash = (37 * hash) + CONTACT_NOTICES_FIELD_NUMBER; - hash = (53 * hash) + contactNotices_.hashCode(); - } - if (hasYearlyPrice()) { - hash = (37 * hash) + YEARLY_PRICE_FIELD_NUMBER; - hash = (53 * hash) + getYearlyPrice().hashCode(); - } - if (hasAuthorizationCode()) { - hash = (37 * hash) + AUTHORIZATION_CODE_FIELD_NUMBER; - hash = (53 * hash) + getAuthorizationCode().hashCode(); - } - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.TransferDomainRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.TransferDomainRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.TransferDomainRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.TransferDomainRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.TransferDomainRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.TransferDomainRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.TransferDomainRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.TransferDomainRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.TransferDomainRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.TransferDomainRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.TransferDomainRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.TransferDomainRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.TransferDomainRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `TransferDomain` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.TransferDomainRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.TransferDomainRequest) - com.google.cloud.domains.v1beta1.TransferDomainRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_TransferDomainRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_TransferDomainRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.TransferDomainRequest.class, - com.google.cloud.domains.v1beta1.TransferDomainRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.TransferDomainRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (registrationBuilder_ == null) { - registration_ = null; - } else { - registration_ = null; - registrationBuilder_ = null; - } - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - if (authorizationCodeBuilder_ == null) { - authorizationCode_ = null; - } else { - authorizationCode_ = null; - authorizationCodeBuilder_ = null; - } - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_TransferDomainRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.TransferDomainRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.TransferDomainRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.TransferDomainRequest build() { - com.google.cloud.domains.v1beta1.TransferDomainRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.TransferDomainRequest buildPartial() { - com.google.cloud.domains.v1beta1.TransferDomainRequest result = - new com.google.cloud.domains.v1beta1.TransferDomainRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; - if (registrationBuilder_ == null) { - result.registration_ = registration_; - } else { - result.registration_ = registrationBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - contactNotices_ = java.util.Collections.unmodifiableList(contactNotices_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.contactNotices_ = contactNotices_; - if (yearlyPriceBuilder_ == null) { - result.yearlyPrice_ = yearlyPrice_; - } else { - result.yearlyPrice_ = yearlyPriceBuilder_.build(); - } - if (authorizationCodeBuilder_ == null) { - result.authorizationCode_ = authorizationCode_; - } else { - result.authorizationCode_ = authorizationCodeBuilder_.build(); - } - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.TransferDomainRequest) { - return mergeFrom((com.google.cloud.domains.v1beta1.TransferDomainRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.TransferDomainRequest other) { - if (other == com.google.cloud.domains.v1beta1.TransferDomainRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasRegistration()) { - mergeRegistration(other.getRegistration()); - } - if (!other.contactNotices_.isEmpty()) { - if (contactNotices_.isEmpty()) { - contactNotices_ = other.contactNotices_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureContactNoticesIsMutable(); - contactNotices_.addAll(other.contactNotices_); - } - onChanged(); - } - if (other.hasYearlyPrice()) { - mergeYearlyPrice(other.getYearlyPrice()); - } - if (other.hasAuthorizationCode()) { - mergeAuthorizationCode(other.getAuthorizationCode()); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getRegistrationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 24: - { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - break; - } // case 24 - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureContactNoticesIsMutable(); - contactNotices_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 34: - { - input.readMessage(getYearlyPriceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage( - getAuthorizationCodeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 48: - { - validateOnly_ = input.readBool(); - - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource of the `Registration`. Must be in the
-     * format `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.cloud.domains.v1beta1.Registration registration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.Registration, - com.google.cloud.domains.v1beta1.Registration.Builder, - com.google.cloud.domains.v1beta1.RegistrationOrBuilder> - registrationBuilder_; - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - public boolean hasRegistration() { - return registrationBuilder_ != null || registration_ != null; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - public com.google.cloud.domains.v1beta1.Registration getRegistration() { - if (registrationBuilder_ == null) { - return registration_ == null - ? com.google.cloud.domains.v1beta1.Registration.getDefaultInstance() - : registration_; - } else { - return registrationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistration(com.google.cloud.domains.v1beta1.Registration value) { - if (registrationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - registration_ = value; - onChanged(); - } else { - registrationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRegistration( - com.google.cloud.domains.v1beta1.Registration.Builder builderForValue) { - if (registrationBuilder_ == null) { - registration_ = builderForValue.build(); - onChanged(); - } else { - registrationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRegistration(com.google.cloud.domains.v1beta1.Registration value) { - if (registrationBuilder_ == null) { - if (registration_ != null) { - registration_ = - com.google.cloud.domains.v1beta1.Registration.newBuilder(registration_) - .mergeFrom(value) - .buildPartial(); - } else { - registration_ = value; - } - onChanged(); - } else { - registrationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRegistration() { - if (registrationBuilder_ == null) { - registration_ = null; - onChanged(); - } else { - registration_ = null; - registrationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1beta1.Registration.Builder getRegistrationBuilder() { - - onChanged(); - return getRegistrationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.domains.v1beta1.RegistrationOrBuilder getRegistrationOrBuilder() { - if (registrationBuilder_ != null) { - return registrationBuilder_.getMessageOrBuilder(); - } else { - return registration_ == null - ? com.google.cloud.domains.v1beta1.Registration.getDefaultInstance() - : registration_; - } - } - /** - * - * - *
-     * Required. The complete `Registration` resource to be created.
-     * You can leave `registration.dns_settings` unset to import the
-     * domain's current DNS configuration from its current registrar. Use this
-     * option only if you are sure that the domain's current DNS service
-     * does not cease upon transfer, as is often the case for DNS services
-     * provided for free by the registrar.
-     * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.Registration, - com.google.cloud.domains.v1beta1.Registration.Builder, - com.google.cloud.domains.v1beta1.RegistrationOrBuilder> - getRegistrationFieldBuilder() { - if (registrationBuilder_ == null) { - registrationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.Registration, - com.google.cloud.domains.v1beta1.Registration.Builder, - com.google.cloud.domains.v1beta1.RegistrationOrBuilder>( - getRegistration(), getParentForChildren(), isClean()); - registration_ = null; - } - return registrationBuilder_; - } - - private java.util.List contactNotices_ = java.util.Collections.emptyList(); - - private void ensureContactNoticesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - contactNotices_ = new java.util.ArrayList(contactNotices_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @return A list containing the contactNotices. - */ - public java.util.List getContactNoticesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactNotice>( - contactNotices_, contactNotices_converter_); - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @return The count of contactNotices. - */ - public int getContactNoticesCount() { - return contactNotices_.size(); - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - public com.google.cloud.domains.v1beta1.ContactNotice getContactNotices(int index) { - return contactNotices_converter_.convert(contactNotices_.get(index)); - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @param index The index to set the value at. - * @param value The contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNotices( - int index, com.google.cloud.domains.v1beta1.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @param value The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNotices(com.google.cloud.domains.v1beta1.ContactNotice value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactNoticesIsMutable(); - contactNotices_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @param values The contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNotices( - java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (com.google.cloud.domains.v1beta1.ContactNotice value : values) { - contactNotices_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @return This builder for chaining. - */ - public Builder clearContactNotices() { - contactNotices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - public java.util.List getContactNoticesValueList() { - return java.util.Collections.unmodifiableList(contactNotices_); - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - public int getContactNoticesValue(int index) { - return contactNotices_.get(index); - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for contactNotices to set. - * @return This builder for chaining. - */ - public Builder setContactNoticesValue(int index, int value) { - ensureContactNoticesIsMutable(); - contactNotices_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @param value The enum numeric value on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addContactNoticesValue(int value) { - ensureContactNoticesIsMutable(); - contactNotices_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of contact notices that you acknowledge. The notices
-     * needed here depend on the values specified in
-     * `registration.contact_settings`.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @param values The enum numeric values on the wire for contactNotices to add. - * @return This builder for chaining. - */ - public Builder addAllContactNoticesValue(java.lang.Iterable values) { - ensureContactNoticesIsMutable(); - for (int value : values) { - contactNotices_.add(value); - } - onChanged(); - return this; - } - - private com.google.type.Money yearlyPrice_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - yearlyPriceBuilder_; - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - public boolean hasYearlyPrice() { - return yearlyPriceBuilder_ != null || yearlyPrice_ != null; - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - public com.google.type.Money getYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } else { - return yearlyPriceBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - yearlyPrice_ = value; - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setYearlyPrice(com.google.type.Money.Builder builderForValue) { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = builderForValue.build(); - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (yearlyPrice_ != null) { - yearlyPrice_ = - com.google.type.Money.newBuilder(yearlyPrice_).mergeFrom(value).buildPartial(); - } else { - yearlyPrice_ = value; - } - onChanged(); - } else { - yearlyPriceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - onChanged(); - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.type.Money.Builder getYearlyPriceBuilder() { - - onChanged(); - return getYearlyPriceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - if (yearlyPriceBuilder_ != null) { - return yearlyPriceBuilder_.getMessageOrBuilder(); - } else { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - } - /** - * - * - *
-     * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-     * Call `RetrieveTransferParameters` to obtain the price, which you must
-     * acknowledge.
-     * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - getYearlyPriceFieldBuilder() { - if (yearlyPriceBuilder_ == null) { - yearlyPriceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, - com.google.type.Money.Builder, - com.google.type.MoneyOrBuilder>( - getYearlyPrice(), getParentForChildren(), isClean()); - yearlyPrice_ = null; - } - return yearlyPriceBuilder_; - } - - private com.google.cloud.domains.v1beta1.AuthorizationCode authorizationCode_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.AuthorizationCode, - com.google.cloud.domains.v1beta1.AuthorizationCode.Builder, - com.google.cloud.domains.v1beta1.AuthorizationCodeOrBuilder> - authorizationCodeBuilder_; - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5; - * - * @return Whether the authorizationCode field is set. - */ - public boolean hasAuthorizationCode() { - return authorizationCodeBuilder_ != null || authorizationCode_ != null; - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5; - * - * @return The authorizationCode. - */ - public com.google.cloud.domains.v1beta1.AuthorizationCode getAuthorizationCode() { - if (authorizationCodeBuilder_ == null) { - return authorizationCode_ == null - ? com.google.cloud.domains.v1beta1.AuthorizationCode.getDefaultInstance() - : authorizationCode_; - } else { - return authorizationCodeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5; - */ - public Builder setAuthorizationCode(com.google.cloud.domains.v1beta1.AuthorizationCode value) { - if (authorizationCodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authorizationCode_ = value; - onChanged(); - } else { - authorizationCodeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5; - */ - public Builder setAuthorizationCode( - com.google.cloud.domains.v1beta1.AuthorizationCode.Builder builderForValue) { - if (authorizationCodeBuilder_ == null) { - authorizationCode_ = builderForValue.build(); - onChanged(); - } else { - authorizationCodeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5; - */ - public Builder mergeAuthorizationCode( - com.google.cloud.domains.v1beta1.AuthorizationCode value) { - if (authorizationCodeBuilder_ == null) { - if (authorizationCode_ != null) { - authorizationCode_ = - com.google.cloud.domains.v1beta1.AuthorizationCode.newBuilder(authorizationCode_) - .mergeFrom(value) - .buildPartial(); - } else { - authorizationCode_ = value; - } - onChanged(); - } else { - authorizationCodeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5; - */ - public Builder clearAuthorizationCode() { - if (authorizationCodeBuilder_ == null) { - authorizationCode_ = null; - onChanged(); - } else { - authorizationCode_ = null; - authorizationCodeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5; - */ - public com.google.cloud.domains.v1beta1.AuthorizationCode.Builder - getAuthorizationCodeBuilder() { - - onChanged(); - return getAuthorizationCodeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5; - */ - public com.google.cloud.domains.v1beta1.AuthorizationCodeOrBuilder - getAuthorizationCodeOrBuilder() { - if (authorizationCodeBuilder_ != null) { - return authorizationCodeBuilder_.getMessageOrBuilder(); - } else { - return authorizationCode_ == null - ? com.google.cloud.domains.v1beta1.AuthorizationCode.getDefaultInstance() - : authorizationCode_; - } - } - /** - * - * - *
-     * The domain's transfer authorization code. You can obtain this from the
-     * domain's current registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.AuthorizationCode, - com.google.cloud.domains.v1beta1.AuthorizationCode.Builder, - com.google.cloud.domains.v1beta1.AuthorizationCodeOrBuilder> - getAuthorizationCodeFieldBuilder() { - if (authorizationCodeBuilder_ == null) { - authorizationCodeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.AuthorizationCode, - com.google.cloud.domains.v1beta1.AuthorizationCode.Builder, - com.google.cloud.domains.v1beta1.AuthorizationCodeOrBuilder>( - getAuthorizationCode(), getParentForChildren(), isClean()); - authorizationCode_ = null; - } - return authorizationCodeBuilder_; - } - - private boolean validateOnly_; - /** - * - * - *
-     * Validate the request without actually transferring the domain.
-     * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - * - * - *
-     * Validate the request without actually transferring the domain.
-     * 
- * - * bool validate_only = 6; - * - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Validate the request without actually transferring the domain.
-     * 
- * - * bool validate_only = 6; - * - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.TransferDomainRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.TransferDomainRequest) - private static final com.google.cloud.domains.v1beta1.TransferDomainRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.TransferDomainRequest(); - } - - public static com.google.cloud.domains.v1beta1.TransferDomainRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransferDomainRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.TransferDomainRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/TransferDomainRequestOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/TransferDomainRequestOrBuilder.java deleted file mode 100644 index 665ab5af..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/TransferDomainRequestOrBuilder.java +++ /dev/null @@ -1,277 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface TransferDomainRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.TransferDomainRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource of the `Registration`. Must be in the
-   * format `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the registration field is set. - */ - boolean hasRegistration(); - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The registration. - */ - com.google.cloud.domains.v1beta1.Registration getRegistration(); - /** - * - * - *
-   * Required. The complete `Registration` resource to be created.
-   * You can leave `registration.dns_settings` unset to import the
-   * domain's current DNS configuration from its current registrar. Use this
-   * option only if you are sure that the domain's current DNS service
-   * does not cease upon transfer, as is often the case for DNS services
-   * provided for free by the registrar.
-   * 
- * - * - * .google.cloud.domains.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.domains.v1beta1.RegistrationOrBuilder getRegistrationOrBuilder(); - - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @return A list containing the contactNotices. - */ - java.util.List getContactNoticesList(); - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @return The count of contactNotices. - */ - int getContactNoticesCount(); - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @param index The index of the element to return. - * @return The contactNotices at the given index. - */ - com.google.cloud.domains.v1beta1.ContactNotice getContactNotices(int index); - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @return A list containing the enum numeric values on the wire for contactNotices. - */ - java.util.List getContactNoticesValueList(); - /** - * - * - *
-   * The list of contact notices that you acknowledge. The notices
-   * needed here depend on the values specified in
-   * `registration.contact_settings`.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactNotice contact_notices = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of contactNotices at the given index. - */ - int getContactNoticesValue(int index); - - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the yearlyPrice field is set. - */ - boolean hasYearlyPrice(); - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The yearlyPrice. - */ - com.google.type.Money getYearlyPrice(); - /** - * - * - *
-   * Required. Acknowledgement of the price to transfer or renew the domain for one year.
-   * Call `RetrieveTransferParameters` to obtain the price, which you must
-   * acknowledge.
-   * 
- * - * .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder(); - - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5; - * - * @return Whether the authorizationCode field is set. - */ - boolean hasAuthorizationCode(); - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5; - * - * @return The authorizationCode. - */ - com.google.cloud.domains.v1beta1.AuthorizationCode getAuthorizationCode(); - /** - * - * - *
-   * The domain's transfer authorization code. You can obtain this from the
-   * domain's current registrar.
-   * 
- * - * .google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5; - */ - com.google.cloud.domains.v1beta1.AuthorizationCodeOrBuilder getAuthorizationCodeOrBuilder(); - - /** - * - * - *
-   * Validate the request without actually transferring the domain.
-   * 
- * - * bool validate_only = 6; - * - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/TransferLockState.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/TransferLockState.java deleted file mode 100644 index 5f754167..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/TransferLockState.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Possible states of a `Registration`'s transfer lock.
- * 
- * - * Protobuf enum {@code google.cloud.domains.v1beta1.TransferLockState} - */ -public enum TransferLockState implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * The state is unspecified.
-   * 
- * - * TRANSFER_LOCK_STATE_UNSPECIFIED = 0; - */ - TRANSFER_LOCK_STATE_UNSPECIFIED(0), - /** - * - * - *
-   * The domain is unlocked and can be transferred to another registrar.
-   * 
- * - * UNLOCKED = 1; - */ - UNLOCKED(1), - /** - * - * - *
-   * The domain is locked and cannot be transferred to another registrar.
-   * 
- * - * LOCKED = 2; - */ - LOCKED(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * The state is unspecified.
-   * 
- * - * TRANSFER_LOCK_STATE_UNSPECIFIED = 0; - */ - public static final int TRANSFER_LOCK_STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * The domain is unlocked and can be transferred to another registrar.
-   * 
- * - * UNLOCKED = 1; - */ - public static final int UNLOCKED_VALUE = 1; - /** - * - * - *
-   * The domain is locked and cannot be transferred to another registrar.
-   * 
- * - * LOCKED = 2; - */ - public static final int LOCKED_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 TransferLockState 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 TransferLockState forNumber(int value) { - switch (value) { - case 0: - return TRANSFER_LOCK_STATE_UNSPECIFIED; - case 1: - return UNLOCKED; - case 2: - return LOCKED; - 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 TransferLockState findValueByNumber(int number) { - return TransferLockState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto.getDescriptor().getEnumTypes().get(3); - } - - private static final TransferLockState[] VALUES = values(); - - public static TransferLockState 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 TransferLockState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1beta1.TransferLockState) -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/TransferParameters.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/TransferParameters.java deleted file mode 100644 index 7c37c6e1..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/TransferParameters.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/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Parameters required to transfer a domain from another registrar.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.TransferParameters} - */ -public final class TransferParameters extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.TransferParameters) - TransferParametersOrBuilder { - private static final long serialVersionUID = 0L; - // Use TransferParameters.newBuilder() to construct. - private TransferParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TransferParameters() { - domainName_ = ""; - currentRegistrar_ = ""; - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - transferLockState_ = 0; - supportedPrivacy_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TransferParameters(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_TransferParameters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_TransferParameters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.TransferParameters.class, - com.google.cloud.domains.v1beta1.TransferParameters.Builder.class); - } - - public static final int DOMAIN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object domainName_; - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - @java.lang.Override - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } - } - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CURRENT_REGISTRAR_FIELD_NUMBER = 2; - private volatile java.lang.Object currentRegistrar_; - /** - * - * - *
-   * The registrar that currently manages the domain.
-   * 
- * - * string current_registrar = 2; - * - * @return The currentRegistrar. - */ - @java.lang.Override - public java.lang.String getCurrentRegistrar() { - java.lang.Object ref = currentRegistrar_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentRegistrar_ = s; - return s; - } - } - /** - * - * - *
-   * The registrar that currently manages the domain.
-   * 
- * - * string current_registrar = 2; - * - * @return The bytes for currentRegistrar. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCurrentRegistrarBytes() { - java.lang.Object ref = currentRegistrar_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currentRegistrar_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_SERVERS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList nameServers_; - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_; - } - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - - public static final int TRANSFER_LOCK_STATE_FIELD_NUMBER = 4; - private int transferLockState_; - /** - * - * - *
-   * Indicates whether the domain is protected by a transfer lock. For a
-   * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-   * go to its current registrar.
-   * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - @java.lang.Override - public int getTransferLockStateValue() { - return transferLockState_; - } - /** - * - * - *
-   * Indicates whether the domain is protected by a transfer lock. For a
-   * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-   * go to its current registrar.
-   * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.TransferLockState getTransferLockState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.TransferLockState result = - com.google.cloud.domains.v1beta1.TransferLockState.valueOf(transferLockState_); - return result == null - ? com.google.cloud.domains.v1beta1.TransferLockState.UNRECOGNIZED - : result; - } - - public static final int SUPPORTED_PRIVACY_FIELD_NUMBER = 5; - private java.util.List supportedPrivacy_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactPrivacy> - supportedPrivacy_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactPrivacy>() { - public com.google.cloud.domains.v1beta1.ContactPrivacy convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.ContactPrivacy result = - com.google.cloud.domains.v1beta1.ContactPrivacy.valueOf(from); - return result == null - ? com.google.cloud.domains.v1beta1.ContactPrivacy.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the supportedPrivacy. - */ - @java.lang.Override - public java.util.List getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @return The count of supportedPrivacy. - */ - @java.lang.Override - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - @java.lang.Override - public java.util.List getSupportedPrivacyValueList() { - return supportedPrivacy_; - } - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - @java.lang.Override - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - - private int supportedPrivacyMemoizedSerializedSize; - - public static final int YEARLY_PRICE_FIELD_NUMBER = 6; - private com.google.type.Money yearlyPrice_; - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - * - * @return Whether the yearlyPrice field is set. - */ - @java.lang.Override - public boolean hasYearlyPrice() { - return yearlyPrice_ != null; - } - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - * - * @return The yearlyPrice. - */ - @java.lang.Override - public com.google.type.Money getYearlyPrice() { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - */ - @java.lang.Override - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - return getYearlyPrice(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentRegistrar_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, currentRegistrar_); - } - for (int i = 0; i < nameServers_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nameServers_.getRaw(i)); - } - if (transferLockState_ - != com.google.cloud.domains.v1beta1.TransferLockState.TRANSFER_LOCK_STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(4, transferLockState_); - } - if (getSupportedPrivacyList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(supportedPrivacyMemoizedSerializedSize); - } - for (int i = 0; i < supportedPrivacy_.size(); i++) { - output.writeEnumNoTag(supportedPrivacy_.get(i)); - } - if (yearlyPrice_ != null) { - output.writeMessage(6, getYearlyPrice()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domainName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentRegistrar_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currentRegistrar_); - } - { - int dataSize = 0; - for (int i = 0; i < nameServers_.size(); i++) { - dataSize += computeStringSizeNoTag(nameServers_.getRaw(i)); - } - size += dataSize; - size += 1 * getNameServersList().size(); - } - if (transferLockState_ - != com.google.cloud.domains.v1beta1.TransferLockState.TRANSFER_LOCK_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, transferLockState_); - } - { - int dataSize = 0; - for (int i = 0; i < supportedPrivacy_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(supportedPrivacy_.get(i)); - } - size += dataSize; - if (!getSupportedPrivacyList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - supportedPrivacyMemoizedSerializedSize = dataSize; - } - if (yearlyPrice_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getYearlyPrice()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.TransferParameters)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.TransferParameters other = - (com.google.cloud.domains.v1beta1.TransferParameters) obj; - - if (!getDomainName().equals(other.getDomainName())) return false; - if (!getCurrentRegistrar().equals(other.getCurrentRegistrar())) return false; - if (!getNameServersList().equals(other.getNameServersList())) return false; - if (transferLockState_ != other.transferLockState_) return false; - if (!supportedPrivacy_.equals(other.supportedPrivacy_)) return false; - if (hasYearlyPrice() != other.hasYearlyPrice()) return false; - if (hasYearlyPrice()) { - if (!getYearlyPrice().equals(other.getYearlyPrice())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOMAIN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDomainName().hashCode(); - hash = (37 * hash) + CURRENT_REGISTRAR_FIELD_NUMBER; - hash = (53 * hash) + getCurrentRegistrar().hashCode(); - if (getNameServersCount() > 0) { - hash = (37 * hash) + NAME_SERVERS_FIELD_NUMBER; - hash = (53 * hash) + getNameServersList().hashCode(); - } - hash = (37 * hash) + TRANSFER_LOCK_STATE_FIELD_NUMBER; - hash = (53 * hash) + transferLockState_; - if (getSupportedPrivacyCount() > 0) { - hash = (37 * hash) + SUPPORTED_PRIVACY_FIELD_NUMBER; - hash = (53 * hash) + supportedPrivacy_.hashCode(); - } - if (hasYearlyPrice()) { - hash = (37 * hash) + YEARLY_PRICE_FIELD_NUMBER; - hash = (53 * hash) + getYearlyPrice().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.TransferParameters parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.TransferParameters parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.TransferParameters parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.TransferParameters parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.TransferParameters parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.TransferParameters parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.TransferParameters parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.TransferParameters parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.TransferParameters parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.TransferParameters parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.TransferParameters parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.TransferParameters parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.domains.v1beta1.TransferParameters prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 required to transfer a domain from another registrar.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.TransferParameters} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.TransferParameters) - com.google.cloud.domains.v1beta1.TransferParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_TransferParameters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_TransferParameters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.TransferParameters.class, - com.google.cloud.domains.v1beta1.TransferParameters.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.TransferParameters.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - domainName_ = ""; - - currentRegistrar_ = ""; - - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - transferLockState_ = 0; - - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_TransferParameters_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.TransferParameters getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.TransferParameters.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.TransferParameters build() { - com.google.cloud.domains.v1beta1.TransferParameters result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.TransferParameters buildPartial() { - com.google.cloud.domains.v1beta1.TransferParameters result = - new com.google.cloud.domains.v1beta1.TransferParameters(this); - int from_bitField0_ = bitField0_; - result.domainName_ = domainName_; - result.currentRegistrar_ = currentRegistrar_; - if (((bitField0_ & 0x00000001) != 0)) { - nameServers_ = nameServers_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nameServers_ = nameServers_; - result.transferLockState_ = transferLockState_; - if (((bitField0_ & 0x00000002) != 0)) { - supportedPrivacy_ = java.util.Collections.unmodifiableList(supportedPrivacy_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.supportedPrivacy_ = supportedPrivacy_; - if (yearlyPriceBuilder_ == null) { - result.yearlyPrice_ = yearlyPrice_; - } else { - result.yearlyPrice_ = yearlyPriceBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.TransferParameters) { - return mergeFrom((com.google.cloud.domains.v1beta1.TransferParameters) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.TransferParameters other) { - if (other == com.google.cloud.domains.v1beta1.TransferParameters.getDefaultInstance()) - return this; - if (!other.getDomainName().isEmpty()) { - domainName_ = other.domainName_; - onChanged(); - } - if (!other.getCurrentRegistrar().isEmpty()) { - currentRegistrar_ = other.currentRegistrar_; - onChanged(); - } - if (!other.nameServers_.isEmpty()) { - if (nameServers_.isEmpty()) { - nameServers_ = other.nameServers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNameServersIsMutable(); - nameServers_.addAll(other.nameServers_); - } - onChanged(); - } - if (other.transferLockState_ != 0) { - setTransferLockStateValue(other.getTransferLockStateValue()); - } - if (!other.supportedPrivacy_.isEmpty()) { - if (supportedPrivacy_.isEmpty()) { - supportedPrivacy_ = other.supportedPrivacy_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.addAll(other.supportedPrivacy_); - } - onChanged(); - } - if (other.hasYearlyPrice()) { - mergeYearlyPrice(other.getYearlyPrice()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - domainName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - currentRegistrar_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureNameServersIsMutable(); - nameServers_.add(s); - break; - } // case 26 - case 32: - { - transferLockState_ = input.readEnum(); - - break; - } // case 32 - case 40: - { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - break; - } // case 40 - case 42: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 42 - case 50: - { - input.readMessage(getYearlyPriceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object domainName_ = ""; - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - public java.lang.String getDomainName() { - java.lang.Object ref = domainName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domainName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - public com.google.protobuf.ByteString getDomainNameBytes() { - java.lang.Object ref = domainName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domainName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @param value The domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domainName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDomainName() { - - domainName_ = getDefaultInstance().getDomainName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The domain name. Unicode domain names are expressed in Punycode format.
-     * 
- * - * string domain_name = 1; - * - * @param value The bytes for domainName to set. - * @return This builder for chaining. - */ - public Builder setDomainNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domainName_ = value; - onChanged(); - return this; - } - - private java.lang.Object currentRegistrar_ = ""; - /** - * - * - *
-     * The registrar that currently manages the domain.
-     * 
- * - * string current_registrar = 2; - * - * @return The currentRegistrar. - */ - public java.lang.String getCurrentRegistrar() { - java.lang.Object ref = currentRegistrar_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentRegistrar_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The registrar that currently manages the domain.
-     * 
- * - * string current_registrar = 2; - * - * @return The bytes for currentRegistrar. - */ - public com.google.protobuf.ByteString getCurrentRegistrarBytes() { - java.lang.Object ref = currentRegistrar_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currentRegistrar_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The registrar that currently manages the domain.
-     * 
- * - * string current_registrar = 2; - * - * @param value The currentRegistrar to set. - * @return This builder for chaining. - */ - public Builder setCurrentRegistrar(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currentRegistrar_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The registrar that currently manages the domain.
-     * 
- * - * string current_registrar = 2; - * - * @return This builder for chaining. - */ - public Builder clearCurrentRegistrar() { - - currentRegistrar_ = getDefaultInstance().getCurrentRegistrar(); - onChanged(); - return this; - } - /** - * - * - *
-     * The registrar that currently manages the domain.
-     * 
- * - * string current_registrar = 2; - * - * @param value The bytes for currentRegistrar to set. - * @return This builder for chaining. - */ - public Builder setCurrentRegistrarBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currentRegistrar_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList nameServers_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureNameServersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nameServers_ = new com.google.protobuf.LazyStringArrayList(nameServers_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @return A list containing the nameServers. - */ - public com.google.protobuf.ProtocolStringList getNameServersList() { - return nameServers_.getUnmodifiableView(); - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @return The count of nameServers. - */ - public int getNameServersCount() { - return nameServers_.size(); - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - public java.lang.String getNameServers(int index) { - return nameServers_.get(index); - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - public com.google.protobuf.ByteString getNameServersBytes(int index) { - return nameServers_.getByteString(index); - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param index The index to set the value at. - * @param value The nameServers to set. - * @return This builder for chaining. - */ - public Builder setNameServers(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param value The nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServers(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param values The nameServers to add. - * @return This builder for chaining. - */ - public Builder addAllNameServers(java.lang.Iterable values) { - ensureNameServersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nameServers_); - onChanged(); - return this; - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @return This builder for chaining. - */ - public Builder clearNameServers() { - nameServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The name servers that currently store the configuration of the domain.
-     * 
- * - * repeated string name_servers = 3; - * - * @param value The bytes of the nameServers to add. - * @return This builder for chaining. - */ - public Builder addNameServersBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureNameServersIsMutable(); - nameServers_.add(value); - onChanged(); - return this; - } - - private int transferLockState_ = 0; - /** - * - * - *
-     * Indicates whether the domain is protected by a transfer lock. For a
-     * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-     * go to its current registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - @java.lang.Override - public int getTransferLockStateValue() { - return transferLockState_; - } - /** - * - * - *
-     * Indicates whether the domain is protected by a transfer lock. For a
-     * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-     * go to its current registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @param value The enum numeric value on the wire for transferLockState to set. - * @return This builder for chaining. - */ - public Builder setTransferLockStateValue(int value) { - - transferLockState_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Indicates whether the domain is protected by a transfer lock. For a
-     * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-     * go to its current registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.TransferLockState getTransferLockState() { - @SuppressWarnings("deprecation") - com.google.cloud.domains.v1beta1.TransferLockState result = - com.google.cloud.domains.v1beta1.TransferLockState.valueOf(transferLockState_); - return result == null - ? com.google.cloud.domains.v1beta1.TransferLockState.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Indicates whether the domain is protected by a transfer lock. For a
-     * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-     * go to its current registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @param value The transferLockState to set. - * @return This builder for chaining. - */ - public Builder setTransferLockState(com.google.cloud.domains.v1beta1.TransferLockState value) { - if (value == null) { - throw new NullPointerException(); - } - - transferLockState_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Indicates whether the domain is protected by a transfer lock. For a
-     * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-     * go to its current registrar.
-     * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @return This builder for chaining. - */ - public Builder clearTransferLockState() { - - transferLockState_ = 0; - onChanged(); - return this; - } - - private java.util.List supportedPrivacy_ = java.util.Collections.emptyList(); - - private void ensureSupportedPrivacyIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - supportedPrivacy_ = new java.util.ArrayList(supportedPrivacy_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the supportedPrivacy. - */ - public java.util.List - getSupportedPrivacyList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.domains.v1beta1.ContactPrivacy>( - supportedPrivacy_, supportedPrivacy_converter_); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @return The count of supportedPrivacy. - */ - public int getSupportedPrivacyCount() { - return supportedPrivacy_.size(); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - public com.google.cloud.domains.v1beta1.ContactPrivacy getSupportedPrivacy(int index) { - return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index)); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @param index The index to set the value at. - * @param value The supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacy( - int index, com.google.cloud.domains.v1beta1.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @param value The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacy(com.google.cloud.domains.v1beta1.ContactPrivacy value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @param values The supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacy( - java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (com.google.cloud.domains.v1beta1.ContactPrivacy value : values) { - supportedPrivacy_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @return This builder for chaining. - */ - public Builder clearSupportedPrivacy() { - supportedPrivacy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - public java.util.List getSupportedPrivacyValueList() { - return java.util.Collections.unmodifiableList(supportedPrivacy_); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - public int getSupportedPrivacyValue(int index) { - return supportedPrivacy_.get(index); - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for supportedPrivacy to set. - * @return This builder for chaining. - */ - public Builder setSupportedPrivacyValue(int index, int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @param value The enum numeric value on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addSupportedPrivacyValue(int value) { - ensureSupportedPrivacyIsMutable(); - supportedPrivacy_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Contact privacy options that the domain supports.
-     * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @param values The enum numeric values on the wire for supportedPrivacy to add. - * @return This builder for chaining. - */ - public Builder addAllSupportedPrivacyValue(java.lang.Iterable values) { - ensureSupportedPrivacyIsMutable(); - for (int value : values) { - supportedPrivacy_.add(value); - } - onChanged(); - return this; - } - - private com.google.type.Money yearlyPrice_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - yearlyPriceBuilder_; - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - * - * @return Whether the yearlyPrice field is set. - */ - public boolean hasYearlyPrice() { - return yearlyPriceBuilder_ != null || yearlyPrice_ != null; - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - * - * @return The yearlyPrice. - */ - public com.google.type.Money getYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } else { - return yearlyPriceBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public Builder setYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - yearlyPrice_ = value; - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public Builder setYearlyPrice(com.google.type.Money.Builder builderForValue) { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = builderForValue.build(); - onChanged(); - } else { - yearlyPriceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public Builder mergeYearlyPrice(com.google.type.Money value) { - if (yearlyPriceBuilder_ == null) { - if (yearlyPrice_ != null) { - yearlyPrice_ = - com.google.type.Money.newBuilder(yearlyPrice_).mergeFrom(value).buildPartial(); - } else { - yearlyPrice_ = value; - } - onChanged(); - } else { - yearlyPriceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public Builder clearYearlyPrice() { - if (yearlyPriceBuilder_ == null) { - yearlyPrice_ = null; - onChanged(); - } else { - yearlyPrice_ = null; - yearlyPriceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public com.google.type.Money.Builder getYearlyPriceBuilder() { - - onChanged(); - return getYearlyPriceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - public com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder() { - if (yearlyPriceBuilder_ != null) { - return yearlyPriceBuilder_.getMessageOrBuilder(); - } else { - return yearlyPrice_ == null ? com.google.type.Money.getDefaultInstance() : yearlyPrice_; - } - } - /** - * - * - *
-     * Price to transfer or renew the domain for one year.
-     * 
- * - * .google.type.Money yearly_price = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - getYearlyPriceFieldBuilder() { - if (yearlyPriceBuilder_ == null) { - yearlyPriceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, - com.google.type.Money.Builder, - com.google.type.MoneyOrBuilder>( - getYearlyPrice(), getParentForChildren(), isClean()); - yearlyPrice_ = null; - } - return yearlyPriceBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.TransferParameters) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.TransferParameters) - private static final com.google.cloud.domains.v1beta1.TransferParameters DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.TransferParameters(); - } - - public static com.google.cloud.domains.v1beta1.TransferParameters getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransferParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.TransferParameters getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/TransferParametersOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/TransferParametersOrBuilder.java deleted file mode 100644 index c97368a1..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/TransferParametersOrBuilder.java +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface TransferParametersOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.TransferParameters) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The domainName. - */ - java.lang.String getDomainName(); - /** - * - * - *
-   * The domain name. Unicode domain names are expressed in Punycode format.
-   * 
- * - * string domain_name = 1; - * - * @return The bytes for domainName. - */ - com.google.protobuf.ByteString getDomainNameBytes(); - - /** - * - * - *
-   * The registrar that currently manages the domain.
-   * 
- * - * string current_registrar = 2; - * - * @return The currentRegistrar. - */ - java.lang.String getCurrentRegistrar(); - /** - * - * - *
-   * The registrar that currently manages the domain.
-   * 
- * - * string current_registrar = 2; - * - * @return The bytes for currentRegistrar. - */ - com.google.protobuf.ByteString getCurrentRegistrarBytes(); - - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @return A list containing the nameServers. - */ - java.util.List getNameServersList(); - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @return The count of nameServers. - */ - int getNameServersCount(); - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the element to return. - * @return The nameServers at the given index. - */ - java.lang.String getNameServers(int index); - /** - * - * - *
-   * The name servers that currently store the configuration of the domain.
-   * 
- * - * repeated string name_servers = 3; - * - * @param index The index of the value to return. - * @return The bytes of the nameServers at the given index. - */ - com.google.protobuf.ByteString getNameServersBytes(int index); - - /** - * - * - *
-   * Indicates whether the domain is protected by a transfer lock. For a
-   * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-   * go to its current registrar.
-   * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @return The enum numeric value on the wire for transferLockState. - */ - int getTransferLockStateValue(); - /** - * - * - *
-   * Indicates whether the domain is protected by a transfer lock. For a
-   * transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
-   * go to its current registrar.
-   * 
- * - * .google.cloud.domains.v1beta1.TransferLockState transfer_lock_state = 4; - * - * @return The transferLockState. - */ - com.google.cloud.domains.v1beta1.TransferLockState getTransferLockState(); - - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the supportedPrivacy. - */ - java.util.List getSupportedPrivacyList(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @return The count of supportedPrivacy. - */ - int getSupportedPrivacyCount(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the element to return. - * @return The supportedPrivacy at the given index. - */ - com.google.cloud.domains.v1beta1.ContactPrivacy getSupportedPrivacy(int index); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @return A list containing the enum numeric values on the wire for supportedPrivacy. - */ - java.util.List getSupportedPrivacyValueList(); - /** - * - * - *
-   * Contact privacy options that the domain supports.
-   * 
- * - * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 5; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedPrivacy at the given index. - */ - int getSupportedPrivacyValue(int index); - - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - * - * @return Whether the yearlyPrice field is set. - */ - boolean hasYearlyPrice(); - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - * - * @return The yearlyPrice. - */ - com.google.type.Money getYearlyPrice(); - /** - * - * - *
-   * Price to transfer or renew the domain for one year.
-   * 
- * - * .google.type.Money yearly_price = 6; - */ - com.google.type.MoneyOrBuilder getYearlyPriceOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/UpdateRegistrationRequest.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/UpdateRegistrationRequest.java deleted file mode 100644 index 6207bbb9..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/UpdateRegistrationRequest.java +++ /dev/null @@ -1,1004 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -/** - * - * - *
- * Request for the `UpdateRegistration` method.
- * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.UpdateRegistrationRequest} - */ -public final class UpdateRegistrationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.UpdateRegistrationRequest) - UpdateRegistrationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateRegistrationRequest.newBuilder() to construct. - private UpdateRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateRegistrationRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateRegistrationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_UpdateRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_UpdateRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.UpdateRegistrationRequest.class, - com.google.cloud.domains.v1beta1.UpdateRegistrationRequest.Builder.class); - } - - public static final int REGISTRATION_FIELD_NUMBER = 1; - private com.google.cloud.domains.v1beta1.Registration registration_; - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.Registration registration = 1; - * - * @return Whether the registration field is set. - */ - @java.lang.Override - public boolean hasRegistration() { - return registration_ != null; - } - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.Registration registration = 1; - * - * @return The registration. - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.Registration getRegistration() { - return registration_ == null - ? com.google.cloud.domains.v1beta1.Registration.getDefaultInstance() - : registration_; - } - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.Registration registration = 1; - */ - @java.lang.Override - public com.google.cloud.domains.v1beta1.RegistrationOrBuilder getRegistrationOrBuilder() { - return getRegistration(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (registration_ != null) { - output.writeMessage(1, getRegistration()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (registration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRegistration()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.domains.v1beta1.UpdateRegistrationRequest)) { - return super.equals(obj); - } - com.google.cloud.domains.v1beta1.UpdateRegistrationRequest other = - (com.google.cloud.domains.v1beta1.UpdateRegistrationRequest) obj; - - if (hasRegistration() != other.hasRegistration()) return false; - if (hasRegistration()) { - if (!getRegistration().equals(other.getRegistration())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRegistration()) { - hash = (37 * hash) + REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getRegistration().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.domains.v1beta1.UpdateRegistrationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.UpdateRegistrationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.UpdateRegistrationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.UpdateRegistrationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.UpdateRegistrationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.domains.v1beta1.UpdateRegistrationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.UpdateRegistrationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.UpdateRegistrationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.UpdateRegistrationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.UpdateRegistrationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.domains.v1beta1.UpdateRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.domains.v1beta1.UpdateRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.domains.v1beta1.UpdateRegistrationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for the `UpdateRegistration` method.
-   * 
- * - * Protobuf type {@code google.cloud.domains.v1beta1.UpdateRegistrationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.UpdateRegistrationRequest) - com.google.cloud.domains.v1beta1.UpdateRegistrationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_UpdateRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_UpdateRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.domains.v1beta1.UpdateRegistrationRequest.class, - com.google.cloud.domains.v1beta1.UpdateRegistrationRequest.Builder.class); - } - - // Construct using com.google.cloud.domains.v1beta1.UpdateRegistrationRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (registrationBuilder_ == null) { - registration_ = null; - } else { - registration_ = null; - registrationBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.domains.v1beta1.DomainsProto - .internal_static_google_cloud_domains_v1beta1_UpdateRegistrationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.UpdateRegistrationRequest getDefaultInstanceForType() { - return com.google.cloud.domains.v1beta1.UpdateRegistrationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.UpdateRegistrationRequest build() { - com.google.cloud.domains.v1beta1.UpdateRegistrationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.UpdateRegistrationRequest buildPartial() { - com.google.cloud.domains.v1beta1.UpdateRegistrationRequest result = - new com.google.cloud.domains.v1beta1.UpdateRegistrationRequest(this); - if (registrationBuilder_ == null) { - result.registration_ = registration_; - } else { - result.registration_ = registrationBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.domains.v1beta1.UpdateRegistrationRequest) { - return mergeFrom((com.google.cloud.domains.v1beta1.UpdateRegistrationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.domains.v1beta1.UpdateRegistrationRequest other) { - if (other == com.google.cloud.domains.v1beta1.UpdateRegistrationRequest.getDefaultInstance()) - return this; - if (other.hasRegistration()) { - mergeRegistration(other.getRegistration()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getRegistrationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.domains.v1beta1.Registration registration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.Registration, - com.google.cloud.domains.v1beta1.Registration.Builder, - com.google.cloud.domains.v1beta1.RegistrationOrBuilder> - registrationBuilder_; - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.Registration registration = 1; - * - * @return Whether the registration field is set. - */ - public boolean hasRegistration() { - return registrationBuilder_ != null || registration_ != null; - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.Registration registration = 1; - * - * @return The registration. - */ - public com.google.cloud.domains.v1beta1.Registration getRegistration() { - if (registrationBuilder_ == null) { - return registration_ == null - ? com.google.cloud.domains.v1beta1.Registration.getDefaultInstance() - : registration_; - } else { - return registrationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.Registration registration = 1; - */ - public Builder setRegistration(com.google.cloud.domains.v1beta1.Registration value) { - if (registrationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - registration_ = value; - onChanged(); - } else { - registrationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.Registration registration = 1; - */ - public Builder setRegistration( - com.google.cloud.domains.v1beta1.Registration.Builder builderForValue) { - if (registrationBuilder_ == null) { - registration_ = builderForValue.build(); - onChanged(); - } else { - registrationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.Registration registration = 1; - */ - public Builder mergeRegistration(com.google.cloud.domains.v1beta1.Registration value) { - if (registrationBuilder_ == null) { - if (registration_ != null) { - registration_ = - com.google.cloud.domains.v1beta1.Registration.newBuilder(registration_) - .mergeFrom(value) - .buildPartial(); - } else { - registration_ = value; - } - onChanged(); - } else { - registrationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.Registration registration = 1; - */ - public Builder clearRegistration() { - if (registrationBuilder_ == null) { - registration_ = null; - onChanged(); - } else { - registration_ = null; - registrationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.Registration registration = 1; - */ - public com.google.cloud.domains.v1beta1.Registration.Builder getRegistrationBuilder() { - - onChanged(); - return getRegistrationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.Registration registration = 1; - */ - public com.google.cloud.domains.v1beta1.RegistrationOrBuilder getRegistrationOrBuilder() { - if (registrationBuilder_ != null) { - return registrationBuilder_.getMessageOrBuilder(); - } else { - return registration_ == null - ? com.google.cloud.domains.v1beta1.Registration.getDefaultInstance() - : registration_; - } - } - /** - * - * - *
-     * Fields of the `Registration` to update.
-     * 
- * - * .google.cloud.domains.v1beta1.Registration registration = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.Registration, - com.google.cloud.domains.v1beta1.Registration.Builder, - com.google.cloud.domains.v1beta1.RegistrationOrBuilder> - getRegistrationFieldBuilder() { - if (registrationBuilder_ == null) { - registrationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.domains.v1beta1.Registration, - com.google.cloud.domains.v1beta1.Registration.Builder, - com.google.cloud.domains.v1beta1.RegistrationOrBuilder>( - getRegistration(), getParentForChildren(), isClean()); - registration_ = null; - } - return registrationBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The field mask describing which fields to update as a comma-separated list.
-     * For example, if only the labels are being updated, the `update_mask` is
-     * `"labels"`.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.UpdateRegistrationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.UpdateRegistrationRequest) - private static final com.google.cloud.domains.v1beta1.UpdateRegistrationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.UpdateRegistrationRequest(); - } - - public static com.google.cloud.domains.v1beta1.UpdateRegistrationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateRegistrationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.domains.v1beta1.UpdateRegistrationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/UpdateRegistrationRequestOrBuilder.java b/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/UpdateRegistrationRequestOrBuilder.java deleted file mode 100644 index 65ac6dd6..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/UpdateRegistrationRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/domains/v1beta1/domains.proto - -package com.google.cloud.domains.v1beta1; - -public interface UpdateRegistrationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.domains.v1beta1.UpdateRegistrationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.Registration registration = 1; - * - * @return Whether the registration field is set. - */ - boolean hasRegistration(); - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.Registration registration = 1; - * - * @return The registration. - */ - com.google.cloud.domains.v1beta1.Registration getRegistration(); - /** - * - * - *
-   * Fields of the `Registration` to update.
-   * 
- * - * .google.cloud.domains.v1beta1.Registration registration = 1; - */ - com.google.cloud.domains.v1beta1.RegistrationOrBuilder getRegistrationOrBuilder(); - - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The field mask describing which fields to update as a comma-separated list.
-   * For example, if only the labels are being updated, the `update_mask` is
-   * `"labels"`.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-domains-v1beta1/src/main/proto/google/cloud/domains/v1beta1/domains.proto b/proto-google-cloud-domains-v1beta1/src/main/proto/google/cloud/domains/v1beta1/domains.proto deleted file mode 100644 index 062cdb06..00000000 --- a/proto-google-cloud-domains-v1beta1/src/main/proto/google/cloud/domains/v1beta1/domains.proto +++ /dev/null @@ -1,1147 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.domains.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; -import "google/type/money.proto"; -import "google/type/postal_address.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/domains/v1beta1;domains"; -option java_multiple_files = true; -option java_outer_classname = "DomainsProto"; -option java_package = "com.google.cloud.domains.v1beta1"; - -// The Cloud Domains API enables management and configuration of domain names. -service Domains { - option (google.api.default_host) = "domains.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Searches for available domain names similar to the provided query. - // - // Availability results from this method are approximate; call - // `RetrieveRegisterParameters` on a domain before registering to confirm - // availability. - rpc SearchDomains(SearchDomainsRequest) returns (SearchDomainsResponse) { - option (google.api.http) = { - get: "/v1beta1/{location=projects/*/locations/*}/registrations:searchDomains" - }; - option (google.api.method_signature) = "location,query"; - } - - // Gets parameters needed to register a new domain name, including price and - // up-to-date availability. Use the returned values to call `RegisterDomain`. - rpc RetrieveRegisterParameters(RetrieveRegisterParametersRequest) returns (RetrieveRegisterParametersResponse) { - option (google.api.http) = { - get: "/v1beta1/{location=projects/*/locations/*}/registrations:retrieveRegisterParameters" - }; - option (google.api.method_signature) = "location,domain_name"; - } - - // Registers a new domain name and creates a corresponding `Registration` - // resource. - // - // Call `RetrieveRegisterParameters` first to check availability of the domain - // name and determine parameters like price that are needed to build a call to - // this method. - // - // A successful call creates a `Registration` resource in state - // `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2 - // minutes, indicating that the domain was successfully registered. If the - // resource ends up in state `REGISTRATION_FAILED`, it indicates that the - // domain was not registered successfully, and you can safely delete the - // resource and retry registration. - rpc RegisterDomain(RegisterDomainRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*}/registrations:register" - body: "*" - }; - option (google.api.method_signature) = "parent,registration,yearly_price"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Gets parameters needed to transfer a domain name from another registrar to - // Cloud Domains. For domains managed by Google Domains, transferring to Cloud - // Domains is not supported. - // - // - // Use the returned values to call `TransferDomain`. - rpc RetrieveTransferParameters(RetrieveTransferParametersRequest) returns (RetrieveTransferParametersResponse) { - option (google.api.http) = { - get: "/v1beta1/{location=projects/*/locations/*}/registrations:retrieveTransferParameters" - }; - option (google.api.method_signature) = "location,domain_name"; - } - - // Transfers a domain name from another registrar to Cloud Domains. For - // domains managed by Google Domains, transferring to Cloud Domains is not - // supported. - // - // - // Before calling this method, go to the domain's current registrar to unlock - // the domain for transfer and retrieve the domain's transfer authorization - // code. Then call `RetrieveTransferParameters` to confirm that the domain is - // unlocked and to get values needed to build a call to this method. - // - // A successful call creates a `Registration` resource in state - // `TRANSFER_PENDING`. It can take several days to complete the transfer - // process. The registrant can often speed up this process by approving the - // transfer through the current registrar, either by clicking a link in an - // email from the registrar or by visiting the registrar's website. - // - // A few minutes after transfer approval, the resource transitions to state - // `ACTIVE`, indicating that the transfer was successful. If the transfer is - // rejected or the request expires without being approved, the resource can - // end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete - // the resource and retry the transfer. - rpc TransferDomain(TransferDomainRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*}/registrations:transfer" - body: "*" - }; - option (google.api.method_signature) = "parent,registration,yearly_price,authorization_code"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Lists the `Registration` resources in a project. - rpc ListRegistrations(ListRegistrationsRequest) returns (ListRegistrationsResponse) { - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*}/registrations" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets the details of a `Registration` resource. - rpc GetRegistration(GetRegistrationRequest) returns (Registration) { - option (google.api.http) = { - get: "/v1beta1/{name=projects/*/locations/*/registrations/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates select fields of a `Registration` resource, notably `labels`. To - // update other fields, use the appropriate custom update method: - // - // * To update management settings, see `ConfigureManagementSettings` - // * To update DNS configuration, see `ConfigureDnsSettings` - // * To update contact information, see `ConfigureContactSettings` - rpc UpdateRegistration(UpdateRegistrationRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1beta1/{registration.name=projects/*/locations/*/registrations/*}" - body: "registration" - }; - option (google.api.method_signature) = "registration,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Updates a `Registration`'s management settings. - rpc ConfigureManagementSettings(ConfigureManagementSettingsRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta1/{registration=projects/*/locations/*/registrations/*}:configureManagementSettings" - body: "*" - }; - option (google.api.method_signature) = "registration,management_settings,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Updates a `Registration`'s DNS settings. - rpc ConfigureDnsSettings(ConfigureDnsSettingsRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta1/{registration=projects/*/locations/*/registrations/*}:configureDnsSettings" - body: "*" - }; - option (google.api.method_signature) = "registration,dns_settings,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Updates a `Registration`'s contact settings. Some changes require - // confirmation by the domain's registrant contact . - rpc ConfigureContactSettings(ConfigureContactSettingsRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta1/{registration=projects/*/locations/*/registrations/*}:configureContactSettings" - body: "*" - }; - option (google.api.method_signature) = "registration,contact_settings,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Exports a `Registration` resource, such that it is no longer managed by - // Cloud Domains. - // - // When an active domain is successfully exported, you can continue to use the - // domain in [Google Domains](https://domains.google/) until it expires. The - // calling user becomes the domain's sole owner in Google Domains, and - // permissions for the domain are subsequently managed there. The domain does - // not renew automatically unless the new owner sets up billing in Google - // Domains. - rpc ExportRegistration(ExportRegistrationRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta1/{name=projects/*/locations/*/registrations/*}:export" - body: "*" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "Registration" - metadata_type: "OperationMetadata" - }; - } - - // Deletes a `Registration` resource. - // - // This method works on any `Registration` resource using [Subscription or - // Commitment billing](/domains/pricing#billing-models), provided that the - // resource was created at least 1 day in the past. - // - // For `Registration` resources using - // [Monthly billing](/domains/pricing#billing-models), this method works if: - // - // * `state` is `EXPORTED` with `expire_time` in the past - // * `state` is `REGISTRATION_FAILED` - // * `state` is `TRANSFER_FAILED` - // - // When an active registration is successfully deleted, you can continue to - // use the domain in [Google Domains](https://domains.google/) until it - // expires. The calling user becomes the domain's sole owner in Google - // Domains, and permissions for the domain are subsequently managed there. The - // domain does not renew automatically unless the new owner sets up billing in - // Google Domains. - rpc DeleteRegistration(DeleteRegistrationRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1beta1/{name=projects/*/locations/*/registrations/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "OperationMetadata" - }; - } - - // Gets the authorization code of the `Registration` for the purpose of - // transferring the domain to another registrar. - // - // You can call this method only after 60 days have elapsed since the initial - // domain registration. - rpc RetrieveAuthorizationCode(RetrieveAuthorizationCodeRequest) returns (AuthorizationCode) { - option (google.api.http) = { - get: "/v1beta1/{registration=projects/*/locations/*/registrations/*}:retrieveAuthorizationCode" - }; - option (google.api.method_signature) = "registration"; - } - - // Resets the authorization code of the `Registration` to a new random string. - // - // You can call this method only after 60 days have elapsed since the initial - // domain registration. - rpc ResetAuthorizationCode(ResetAuthorizationCodeRequest) returns (AuthorizationCode) { - option (google.api.http) = { - post: "/v1beta1/{registration=projects/*/locations/*/registrations/*}:resetAuthorizationCode" - body: "*" - }; - option (google.api.method_signature) = "registration"; - } -} - -// The `Registration` resource facilitates managing and configuring domain name -// registrations. -// -// There are several ways to create a new `Registration` resource: -// -// To create a new `Registration` resource, find a suitable domain name by -// calling the `SearchDomains` method with a query to see available domain name -// options. After choosing a name, call `RetrieveRegisterParameters` to -// ensure availability and obtain information like pricing, which is needed to -// build a call to `RegisterDomain`. -// -// Another way to create a new `Registration` is to transfer an existing -// domain from another registrar. First, go to the current registrar to unlock -// the domain for transfer and retrieve the domain's transfer authorization -// code. Then call `RetrieveTransferParameters` to confirm that the domain is -// unlocked and to get values needed to build a call to `TransferDomain`. -message Registration { - option (google.api.resource) = { - type: "domains.googleapis.com/Registration" - pattern: "projects/{project}/locations/{location}/registrations/{registration}" - }; - - // Possible states of a `Registration`. - enum State { - // The state is undefined. - STATE_UNSPECIFIED = 0; - - // The domain is being registered. - REGISTRATION_PENDING = 1; - - // The domain registration failed. You can delete resources in this state - // to allow registration to be retried. - REGISTRATION_FAILED = 2; - - // The domain is being transferred from another registrar to Cloud Domains. - TRANSFER_PENDING = 3; - - // The attempt to transfer the domain from another registrar to - // Cloud Domains failed. You can delete resources in this state and retry - // the transfer. - TRANSFER_FAILED = 4; - - // The domain is registered and operational. The domain renews automatically - // as long as it remains in this state. - ACTIVE = 6; - - // The domain is suspended and inoperative. For more details, see the - // `issues` field. - SUSPENDED = 7; - - // The domain is no longer managed with Cloud Domains. It may have been - // transferred to another registrar or exported for management in - // [Google Domains](https://domains.google/). You can no longer update it - // with this API, and information shown about it may be stale. Domains in - // this state are not automatically renewed by Cloud Domains. - EXPORTED = 8; - } - - // Possible issues with a `Registration` that require attention. - enum Issue { - // The issue is undefined. - ISSUE_UNSPECIFIED = 0; - - // Contact the Cloud Support team to resolve a problem with this domain. - CONTACT_SUPPORT = 1; - - // [ICANN](https://icann.org/) requires verification of the email address - // in the `Registration`'s `contact_settings.registrant_contact` field. To - // verify the email address, follow the - // instructions in the email the `registrant_contact` receives following - // registration. If you do not complete email verification within - // 15 days of registration, the domain is suspended. To resend the - // verification email, call ConfigureContactSettings and provide the current - // `registrant_contact.email`. - UNVERIFIED_EMAIL = 2; - } - - // Output only. Name of the `Registration` resource, in the format - // `projects/*/locations/*/registrations/`. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format. - string domain_name = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IMMUTABLE - ]; - - // Output only. The creation timestamp of the `Registration` resource. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The expiration timestamp of the `Registration`. - google.protobuf.Timestamp expire_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The state of the `Registration` - State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The set of issues with the `Registration` that require attention. - repeated Issue issues = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Set of labels associated with the `Registration`. - map labels = 9; - - // Settings for management of the `Registration`, including renewal, billing, - // and transfer. You cannot update these with the `UpdateRegistration` - // method. To update these settings, use the `ConfigureManagementSettings` - // method. - ManagementSettings management_settings = 10; - - // Settings controlling the DNS configuration of the `Registration`. You - // cannot update these with the `UpdateRegistration` method. To update these - // settings, use the `ConfigureDnsSettings` method. - DnsSettings dns_settings = 11; - - // Required. Settings for contact information linked to the `Registration`. You cannot - // update these with the `UpdateRegistration` method. To update these - // settings, use the `ConfigureContactSettings` method. - ContactSettings contact_settings = 12 [(google.api.field_behavior) = REQUIRED]; - - // Output only. Pending contact settings for the `Registration`. Updates to the - // `contact_settings` field that change its `registrant_contact` or `privacy` - // fields require email confirmation by the `registrant_contact` - // before taking effect. This field is set only if there are pending updates - // to the `contact_settings` that have not been confirmed. To confirm the - // changes, the `registrant_contact` must follow the instructions in the - // email they receive. - ContactSettings pending_contact_settings = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Set of options for the `contact_settings.privacy` field that this - // `Registration` supports. - repeated ContactPrivacy supported_privacy = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Defines renewal, billing, and transfer settings for a `Registration`. -message ManagementSettings { - // Defines how the `Registration` is renewed. - enum RenewalMethod { - // The renewal method is undefined. - RENEWAL_METHOD_UNSPECIFIED = 0; - - // The domain is automatically renewed each year . - // - // To disable automatic renewals, delete the resource by calling - // `DeleteRegistration` or export it by calling `ExportRegistration`. - AUTOMATIC_RENEWAL = 1; - - // The domain must be explicitly renewed each year before its - // `expire_time`. This option is only available when the `Registration` - // is in state `EXPORTED`. - // - // To manage the domain's current billing and - // renewal settings, go to [Google Domains](https://domains.google/). - MANUAL_RENEWAL = 2; - } - - // Output only. The renewal method for this `Registration`. - RenewalMethod renewal_method = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Controls whether the domain can be transferred to another registrar. - TransferLockState transfer_lock_state = 4; -} - -// Defines the DNS configuration of a `Registration`, including name servers, -// DNSSEC, and glue records. -message DnsSettings { - // Configuration for an arbitrary DNS provider. - message CustomDns { - // Required. A list of name servers that store the DNS zone for this domain. Each name - // server is a domain name, with Unicode domain names expressed in - // Punycode format. - repeated string name_servers = 1 [(google.api.field_behavior) = REQUIRED]; - - // The list of DS records for this domain, which are used to enable DNSSEC. - // The domain's DNS provider can provide the values to set here. If this - // field is empty, DNSSEC is disabled. - repeated DsRecord ds_records = 2; - } - - // Configuration for using the free DNS zone provided by Google Domains as a - // `Registration`'s `dns_provider`. You cannot configure the DNS zone itself - // using the API. To configure the DNS zone, go to - // [Google Domains](https://domains.google/). - message GoogleDomainsDns { - // Output only. A list of name servers that store the DNS zone for this domain. Each name - // server is a domain name, with Unicode domain names expressed in - // Punycode format. This field is automatically populated with the name - // servers assigned to the Google Domains DNS zone. - repeated string name_servers = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. The state of DS records for this domain. Used to enable or disable - // automatic DNSSEC. - DsState ds_state = 2 [(google.api.field_behavior) = REQUIRED]; - - // Output only. The list of DS records published for this domain. The list is - // automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`, - // otherwise it remains empty. - repeated DsRecord ds_records = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Defines a Delegation Signer (DS) record, which is needed to enable DNSSEC - // for a domain. It contains a digest (hash) of a DNSKEY record that must be - // present in the domain's DNS zone. - message DsRecord { - // List of algorithms used to create a DNSKEY. Certain - // algorithms are not supported for particular domains. - enum Algorithm { - // The algorithm is unspecified. - ALGORITHM_UNSPECIFIED = 0; - - // RSA/MD5. Cannot be used for new deployments. - RSAMD5 = 1; - - // Diffie-Hellman. Cannot be used for new deployments. - DH = 2; - - // DSA/SHA1. Not recommended for new deployments. - DSA = 3; - - // ECC. Not recommended for new deployments. - ECC = 4; - - // RSA/SHA-1. Not recommended for new deployments. - RSASHA1 = 5; - - // DSA-NSEC3-SHA1. Not recommended for new deployments. - DSANSEC3SHA1 = 6; - - // RSA/SHA1-NSEC3-SHA1. Not recommended for new deployments. - RSASHA1NSEC3SHA1 = 7; - - // RSA/SHA-256. - RSASHA256 = 8; - - // RSA/SHA-512. - RSASHA512 = 10; - - // GOST R 34.10-2001. - ECCGOST = 12; - - // ECDSA Curve P-256 with SHA-256. - ECDSAP256SHA256 = 13; - - // ECDSA Curve P-384 with SHA-384. - ECDSAP384SHA384 = 14; - - // Ed25519. - ED25519 = 15; - - // Ed448. - ED448 = 16; - - // Reserved for Indirect Keys. Cannot be used for new deployments. - INDIRECT = 252; - - // Private algorithm. Cannot be used for new deployments. - PRIVATEDNS = 253; - - // Private algorithm OID. Cannot be used for new deployments. - PRIVATEOID = 254; - } - - // List of hash functions that may have been used to generate a digest of a - // DNSKEY. - enum DigestType { - // The DigestType is unspecified. - DIGEST_TYPE_UNSPECIFIED = 0; - - // SHA-1. Not recommended for new deployments. - SHA1 = 1; - - // SHA-256. - SHA256 = 2; - - // GOST R 34.11-94. - GOST3411 = 3; - - // SHA-384. - SHA384 = 4; - } - - // The key tag of the record. Must be set in range 0 -- 65535. - int32 key_tag = 1; - - // The algorithm used to generate the referenced DNSKEY. - Algorithm algorithm = 2; - - // The hash function used to generate the digest of the referenced DNSKEY. - DigestType digest_type = 3; - - // The digest generated from the referenced DNSKEY. - string digest = 4; - } - - // Defines a host on your domain that is a DNS name server for your domain - // and/or other domains. Glue records are a way of making the IP address of a - // name server known, even when it serves DNS queries for its parent domain. - // For example, when `ns.example.com` is a name server for `example.com`, the - // host `ns.example.com` must have a glue record to break the circular DNS - // reference. - message GlueRecord { - // Required. Domain name of the host in Punycode format. - string host_name = 1 [(google.api.field_behavior) = REQUIRED]; - - // List of IPv4 addresses corresponding to this host in the standard decimal - // format (e.g. `198.51.100.1`). At least one of `ipv4_address` and - // `ipv6_address` must be set. - repeated string ipv4_addresses = 2; - - // List of IPv6 addresses corresponding to this host in the standard - // hexadecimal format (e.g. `2001:db8::`). At least one of - // `ipv4_address` and `ipv6_address` must be set. - repeated string ipv6_addresses = 3; - } - - // The publication state of DS records for a `Registration`. - enum DsState { - // DS state is unspecified. - DS_STATE_UNSPECIFIED = 0; - - // DNSSEC is disabled for this domain. No DS records for this domain are - // published in the parent DNS zone. - DS_RECORDS_UNPUBLISHED = 1; - - // DNSSEC is enabled for this domain. Appropriate DS records for this domain - // are published in the parent DNS zone. This option is valid only if the - // DNS zone referenced in the `Registration`'s `dns_provider` field is - // already DNSSEC-signed. - DS_RECORDS_PUBLISHED = 2; - } - - // The DNS provider of the registration. - oneof dns_provider { - // An arbitrary DNS provider identified by its name servers. - CustomDns custom_dns = 1; - - // The free DNS zone provided by - // [Google Domains](https://domains.google/). - GoogleDomainsDns google_domains_dns = 2; - } - - // The list of glue records for this `Registration`. Commonly empty. - repeated GlueRecord glue_records = 4; -} - -// Defines the contact information associated with a `Registration`. -// -// [ICANN](https://icann.org/) requires all domain names to have associated -// contact information. The `registrant_contact` is considered the -// domain's legal owner, and often the other contacts are identical. -message ContactSettings { - // Details required for a contact associated with a `Registration`. - message Contact { - // Required. Postal address of the contact. - google.type.PostalAddress postal_address = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. Email address of the contact. - string email = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. Phone number of the contact in international format. For example, - // `"+1-800-555-0123"`. - string phone_number = 3 [(google.api.field_behavior) = REQUIRED]; - - // Fax number of the contact in international format. For example, - // `"+1-800-555-0123"`. - string fax_number = 4; - } - - // Required. Privacy setting for the contacts associated with the `Registration`. - ContactPrivacy privacy = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The registrant contact for the `Registration`. - // - // *Caution: Anyone with access to this email address, phone number, - // and/or postal address can take control of the domain.* - // - // *Warning: For new `Registration`s, the registrant receives an email - // confirmation that they must complete within 15 days to avoid domain - // suspension.* - Contact registrant_contact = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The administrative contact for the `Registration`. - Contact admin_contact = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The technical contact for the `Registration`. - Contact technical_contact = 4 [(google.api.field_behavior) = REQUIRED]; -} - -// Request for the `SearchDomains` method. -message SearchDomainsRequest { - // Required. String used to search for available domain names. - string query = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The location. Must be in the format `projects/*/locations/*`. - string location = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; -} - -// Response for the `SearchDomains` method. -message SearchDomainsResponse { - // Results of the domain name search. - repeated RegisterParameters register_parameters = 1; -} - -// Request for the `RetrieveRegisterParameters` method. -message RetrieveRegisterParametersRequest { - // Required. The domain name. Unicode domain names must be expressed in Punycode format. - string domain_name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The location. Must be in the format `projects/*/locations/*`. - string location = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; -} - -// Response for the `RetrieveRegisterParameters` method. -message RetrieveRegisterParametersResponse { - // Parameters to use when calling the `RegisterDomain` method. - RegisterParameters register_parameters = 1; -} - -// Request for the `RegisterDomain` method. -message RegisterDomainRequest { - // Required. The parent resource of the `Registration`. Must be in the - // format `projects/*/locations/*`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // Required. The complete `Registration` resource to be created. - Registration registration = 2 [(google.api.field_behavior) = REQUIRED]; - - // The list of domain notices that you acknowledge. Call - // `RetrieveRegisterParameters` to see the notices that need acknowledgement. - repeated DomainNotice domain_notices = 3; - - // The list of contact notices that the caller acknowledges. The notices - // needed here depend on the values specified in - // `registration.contact_settings`. - repeated ContactNotice contact_notices = 4; - - // Required. Yearly price to register or renew the domain. - // The value that should be put here can be obtained from - // RetrieveRegisterParameters or SearchDomains calls. - google.type.Money yearly_price = 5 [(google.api.field_behavior) = REQUIRED]; - - // When true, only validation is performed, without actually registering - // the domain. Follows: - // https://cloud.google.com/apis/design/design_patterns#request_validation - bool validate_only = 6; -} - -// Request for the `RetrieveTransferParameters` method. -message RetrieveTransferParametersRequest { - // Required. The domain name. Unicode domain names must be expressed in Punycode format. - string domain_name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The location. Must be in the format `projects/*/locations/*`. - string location = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; -} - -// Response for the `RetrieveTransferParameters` method. -message RetrieveTransferParametersResponse { - // Parameters to use when calling the `TransferDomain` method. - TransferParameters transfer_parameters = 1; -} - -// Request for the `TransferDomain` method. -message TransferDomainRequest { - // Required. The parent resource of the `Registration`. Must be in the - // format `projects/*/locations/*`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // Required. The complete `Registration` resource to be created. - // - // You can leave `registration.dns_settings` unset to import the - // domain's current DNS configuration from its current registrar. Use this - // option only if you are sure that the domain's current DNS service - // does not cease upon transfer, as is often the case for DNS services - // provided for free by the registrar. - Registration registration = 2 [(google.api.field_behavior) = REQUIRED]; - - // The list of contact notices that you acknowledge. The notices - // needed here depend on the values specified in - // `registration.contact_settings`. - repeated ContactNotice contact_notices = 3; - - // Required. Acknowledgement of the price to transfer or renew the domain for one year. - // Call `RetrieveTransferParameters` to obtain the price, which you must - // acknowledge. - google.type.Money yearly_price = 4 [(google.api.field_behavior) = REQUIRED]; - - // The domain's transfer authorization code. You can obtain this from the - // domain's current registrar. - AuthorizationCode authorization_code = 5; - - // Validate the request without actually transferring the domain. - bool validate_only = 6; -} - -// Request for the `ListRegistrations` method. -message ListRegistrationsRequest { - // Required. The project and location from which to list `Registration`s, specified in - // the format `projects/*/locations/*`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // Maximum number of results to return. - int32 page_size = 2; - - // When set to the `next_page_token` from a prior response, provides the next - // page of results. - string page_token = 3; - - // Filter expression to restrict the `Registration`s returned. - // - // The expression must specify the field name, a comparison operator, and the - // value that you want to use for filtering. The value must be a string, a - // number, a boolean, or an enum value. The comparison operator should be one - // of =, !=, >, <, >=, <=, or : for prefix or wildcard matches. - // - // For example, to filter to a specific domain name, use an expression like - // `domainName="example.com"`. You can also check for the existence of a - // field; for example, to find domains using custom DNS settings, use an - // expression like `dnsSettings.customDns:*`. - // - // You can also create compound filters by combining expressions with the - // `AND` and `OR` operators. For example, to find domains that are suspended - // or have specific issues flagged, use an expression like - // `(state=SUSPENDED) OR (issue:*)`. - string filter = 4; -} - -// Response for the `ListRegistrations` method. -message ListRegistrationsResponse { - // A list of `Registration`s. - repeated Registration registrations = 1; - - // When present, there are more results to retrieve. Set `page_token` to this - // value on a subsequent call to get the next page of results. - string next_page_token = 2; -} - -// Request for the `GetRegistration` method. -message GetRegistrationRequest { - // Required. The name of the `Registration` to get, in the format - // `projects/*/locations/*/registrations/*`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; -} - -// Request for the `UpdateRegistration` method. -message UpdateRegistrationRequest { - // Fields of the `Registration` to update. - Registration registration = 1; - - // Required. The field mask describing which fields to update as a comma-separated list. - // For example, if only the labels are being updated, the `update_mask` is - // `"labels"`. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request for the `ConfigureManagementSettings` method. -message ConfigureManagementSettingsRequest { - // Required. The name of the `Registration` whose management settings are being updated, - // in the format `projects/*/locations/*/registrations/*`. - string registration = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; - - // Fields of the `ManagementSettings` to update. - ManagementSettings management_settings = 2; - - // Required. The field mask describing which fields to update as a comma-separated list. - // For example, if only the transfer lock is being updated, the `update_mask` - // is `"transfer_lock_state"`. - google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Request for the `ConfigureDnsSettings` method. -message ConfigureDnsSettingsRequest { - // Required. The name of the `Registration` whose DNS settings are being updated, - // in the format `projects/*/locations/*/registrations/*`. - string registration = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; - - // Fields of the `DnsSettings` to update. - DnsSettings dns_settings = 2; - - // Required. The field mask describing which fields to update as a comma-separated list. - // For example, if only the name servers are being updated for an existing - // Custom DNS configuration, the `update_mask` is - // `"custom_dns.name_servers"`. - // - // When changing the DNS provider from one type to another, pass the new - // provider's field name as part of the field mask. For example, when changing - // from a Google Domains DNS configuration to a Custom DNS configuration, the - // `update_mask` is `"custom_dns"`. // - google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED]; - - // Validate the request without actually updating the DNS settings. - bool validate_only = 4; -} - -// Request for the `ConfigureContactSettings` method. -message ConfigureContactSettingsRequest { - // Required. The name of the `Registration` whose contact settings are being updated, - // in the format `projects/*/locations/*/registrations/*`. - string registration = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; - - // Fields of the `ContactSettings` to update. - ContactSettings contact_settings = 2; - - // Required. The field mask describing which fields to update as a comma-separated list. - // For example, if only the registrant contact is being updated, the - // `update_mask` is `"registrant_contact"`. - google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED]; - - // The list of contact notices that the caller acknowledges. The notices - // needed here depend on the values specified in `contact_settings`. - repeated ContactNotice contact_notices = 4; - - // Validate the request without actually updating the contact settings. - bool validate_only = 5; -} - -// Request for the `ExportRegistration` method. -message ExportRegistrationRequest { - // Required. The name of the `Registration` to export, - // in the format `projects/*/locations/*/registrations/*`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; -} - -// Request for the `DeleteRegistration` method. -message DeleteRegistrationRequest { - // Required. The name of the `Registration` to delete, - // in the format `projects/*/locations/*/registrations/*`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; -} - -// Request for the `RetrieveAuthorizationCode` method. -message RetrieveAuthorizationCodeRequest { - // Required. The name of the `Registration` whose authorization code is being retrieved, - // in the format `projects/*/locations/*/registrations/*`. - string registration = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; -} - -// Request for the `ResetAuthorizationCode` method. -message ResetAuthorizationCodeRequest { - // Required. The name of the `Registration` whose authorization code is being reset, - // in the format `projects/*/locations/*/registrations/*`. - string registration = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "domains.googleapis.com/Registration" - } - ]; -} - -// Parameters required to register a new domain. -message RegisterParameters { - // Possible availability states of a domain name. - enum Availability { - // The availability is unspecified. - AVAILABILITY_UNSPECIFIED = 0; - - // The domain is available for registration. - AVAILABLE = 1; - - // The domain is not available for registration. Generally this means it is - // already registered to another party. - UNAVAILABLE = 2; - - // The domain is not currently supported by Cloud Domains, but may - // be available elsewhere. - UNSUPPORTED = 3; - - // Cloud Domains is unable to determine domain availability, generally - // due to system maintenance at the domain name registry. - UNKNOWN = 4; - } - - // The domain name. Unicode domain names are expressed in Punycode format. - string domain_name = 1; - - // Indicates whether the domain is available for registration. This value is - // accurate when obtained by calling `RetrieveRegisterParameters`, but is - // approximate when obtained by calling `SearchDomains`. - Availability availability = 2; - - // Contact privacy options that the domain supports. - repeated ContactPrivacy supported_privacy = 3; - - // Notices about special properties of the domain. - repeated DomainNotice domain_notices = 4; - - // Price to register or renew the domain for one year. - google.type.Money yearly_price = 5; -} - -// Parameters required to transfer a domain from another registrar. -message TransferParameters { - // The domain name. Unicode domain names are expressed in Punycode format. - string domain_name = 1; - - // The registrar that currently manages the domain. - string current_registrar = 2; - - // The name servers that currently store the configuration of the domain. - repeated string name_servers = 3; - - // Indicates whether the domain is protected by a transfer lock. For a - // transfer to succeed, this must show `UNLOCKED`. To unlock a domain, - // go to its current registrar. - TransferLockState transfer_lock_state = 4; - - // Contact privacy options that the domain supports. - repeated ContactPrivacy supported_privacy = 5; - - // Price to transfer or renew the domain for one year. - google.type.Money yearly_price = 6; -} - -// Defines an authorization code. -message AuthorizationCode { - // The Authorization Code in ASCII. It can be used to transfer the domain - // to or from another registrar. - string code = 1; -} - -// Represents the metadata of the long-running operation. Output only. -message OperationMetadata { - // The time the operation was created. - google.protobuf.Timestamp create_time = 1; - - // The time the operation finished running. - google.protobuf.Timestamp end_time = 2; - - // Server-defined resource path for the target of the operation. - string target = 3; - - // Name of the verb executed by the operation. - string verb = 4; - - // Human-readable status of the operation, if any. - string status_detail = 5; - - // API version used to start the operation. - string api_version = 6; -} - -// Defines a set of possible contact privacy settings for a `Registration`. -// -// [ICANN](https://icann.org/) maintains the WHOIS database, a publicly -// accessible mapping from domain name to contact information, and requires that -// each domain name have an entry. Choose from these options to control how much -// information in your `ContactSettings` is published. -enum ContactPrivacy { - // The contact privacy settings are undefined. - CONTACT_PRIVACY_UNSPECIFIED = 0; - - // All the data from `ContactSettings` is publicly available. When setting - // this option, you must also provide a - // `PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT` in the `contact_notices` field of the - // request. - PUBLIC_CONTACT_DATA = 1; - - // None of the data from `ContactSettings` is publicly available. Instead, - // proxy contact data is published for your domain. Email sent to the proxy - // email address is forwarded to the registrant's email address. Cloud Domains - // provides this privacy proxy service at no additional cost. - PRIVATE_CONTACT_DATA = 2; - - // Some data from `ContactSettings` is publicly available. The actual - // information redacted depends on the domain. For details, see [the - // registration privacy - // article](https://support.google.com/domains/answer/3251242). - REDACTED_CONTACT_DATA = 3; -} - -// Notices about special properties of certain domains. -enum DomainNotice { - // The notice is undefined. - DOMAIN_NOTICE_UNSPECIFIED = 0; - - // Indicates that the domain is preloaded on the HTTP Strict Transport - // Security list in browsers. Serving a website on such domain requires - // an SSL certificate. For details, see - // [how to get an SSL - // certificate](https://support.google.com/domains/answer/7638036). - HSTS_PRELOADED = 1; -} - -// Notices related to contact information. -enum ContactNotice { - // The notice is undefined. - CONTACT_NOTICE_UNSPECIFIED = 0; - - // Required when setting the `privacy` field of `ContactSettings` to - // `PUBLIC_CONTACT_DATA`, which exposes contact data publicly. - PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT = 1; -} - -// Possible states of a `Registration`'s transfer lock. -enum TransferLockState { - // The state is unspecified. - TRANSFER_LOCK_STATE_UNSPECIFIED = 0; - - // The domain is unlocked and can be transferred to another registrar. - UNLOCKED = 1; - - // The domain is locked and cannot be transferred to another registrar. - LOCKED = 2; -} diff --git a/renovate.json b/renovate.json deleted file mode 100644 index faf22548..00000000 --- a/renovate.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "enabled": false, - "extends": [ - ":separateMajorReleases", - ":combinePatchMinorReleases", - ":ignoreUnstable", - ":prImmediately", - ":updateNotScheduled", - ":automergeDisabled", - ":ignoreModulesAndTests", - ":maintainLockFilesDisabled", - ":autodetectPinVersions" - ], - "ignorePaths": [".kokoro/requirements.txt"], - "packageRules": [ - { - "packagePatterns": [ - "^com.google.guava:" - ], - "versionScheme": "docker" - }, - { - "packagePatterns": [ - "*" - ], - "semanticCommitType": "deps", - "semanticCommitScope": null - }, - { - "packagePatterns": [ - "^org.apache.maven", - "^org.jacoco:", - "^org.codehaus.mojo:", - "^org.sonatype.plugins:", - "^com.coveo:", - "^com.google.cloud:google-cloud-shared-config" - ], - "semanticCommitType": "build", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^com.google.cloud:google-cloud-domains", - "^com.google.cloud:libraries-bom", - "^com.google.cloud.samples:shared-configuration" - ], - "semanticCommitType": "chore", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^junit:junit", - "^com.google.truth:truth", - "^org.mockito:mockito-core", - "^org.objenesis:objenesis", - "^com.google.cloud:google-cloud-conformance-tests" - ], - "semanticCommitType": "test", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^com.google.cloud:google-cloud-" - ], - "ignoreUnstable": false - }, - { - "packagePatterns": [ - "^com.fasterxml.jackson.core" - ], - "groupName": "jackson dependencies" - } - ], - "semanticCommits": true, - "dependencyDashboard": true -} diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml deleted file mode 100644 index c75932be..00000000 --- a/samples/install-without-bom/pom.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - 4.0.0 - com.google.cloud - domains-install-without-bom - jar - Google Cloud Domains Install Without Bom - https://github.com/googleapis/java-domains - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - - com.google.cloud - google-cloud-domains - 1.0.6 - - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - add-snippets-source - - add-source - - - - ../snippets/src/main/java - - - - - add-snippets-tests - - add-test-source - - - - ../snippets/src/test/java - - - - - - - - diff --git a/samples/pom.xml b/samples/pom.xml deleted file mode 100644 index 782da216..00000000 --- a/samples/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-domains-samples - 0.0.1-SNAPSHOT - pom - Google Cloud Domains Samples Parent - https://github.com/googleapis/java-domains - - Java idiomatic client for Google Cloud Platform services. - - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - install-without-bom - snapshot - snippets - - - - - - org.apache.maven.plugins - maven-deploy-plugin - 3.0.0 - - true - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 - - true - - - - - diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml deleted file mode 100644 index befe0434..00000000 --- a/samples/snapshot/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - 4.0.0 - com.google.cloud - domains-snapshot - jar - Google Cloud Domains Snapshot Samples - https://github.com/googleapis/java-domains - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - com.google.cloud - google-cloud-domains - 1.0.7-SNAPSHOT - - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - add-snippets-source - - add-source - - - - ../snippets/src/main/java - - - - - add-snippets-tests - - add-test-source - - - - ../snippets/src/test/java - - - - - - - - \ No newline at end of file diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurecontactsettings/AsyncConfigureContactSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurecontactsettings/AsyncConfigureContactSettings.java deleted file mode 100644 index 12c09e0a..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurecontactsettings/AsyncConfigureContactSettings.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_configurecontactsettings_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1.ContactNotice; -import com.google.cloud.domains.v1.ContactSettings; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.longrunning.Operation; -import com.google.protobuf.FieldMask; -import java.util.ArrayList; - -public class AsyncConfigureContactSettings { - - public static void main(String[] args) throws Exception { - asyncConfigureContactSettings(); - } - - public static void asyncConfigureContactSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureContactSettingsRequest request = - ConfigureContactSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setValidateOnly(true) - .build(); - ApiFuture future = - domainsClient.configureContactSettingsCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_configurecontactsettings_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurecontactsettings/AsyncConfigureContactSettingsLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurecontactsettings/AsyncConfigureContactSettingsLRO.java deleted file mode 100644 index c6f75915..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurecontactsettings/AsyncConfigureContactSettingsLRO.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_configurecontactsettings_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1.ContactNotice; -import com.google.cloud.domains.v1.ContactSettings; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.OperationMetadata; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.protobuf.FieldMask; -import java.util.ArrayList; - -public class AsyncConfigureContactSettingsLRO { - - public static void main(String[] args) throws Exception { - asyncConfigureContactSettingsLRO(); - } - - public static void asyncConfigureContactSettingsLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureContactSettingsRequest request = - ConfigureContactSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setValidateOnly(true) - .build(); - OperationFuture future = - domainsClient.configureContactSettingsOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_configurecontactsettings_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurecontactsettings/SyncConfigureContactSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurecontactsettings/SyncConfigureContactSettings.java deleted file mode 100644 index c7301d5e..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurecontactsettings/SyncConfigureContactSettings.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_configurecontactsettings_sync] -import com.google.cloud.domains.v1.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1.ContactNotice; -import com.google.cloud.domains.v1.ContactSettings; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.protobuf.FieldMask; -import java.util.ArrayList; - -public class SyncConfigureContactSettings { - - public static void main(String[] args) throws Exception { - syncConfigureContactSettings(); - } - - public static void syncConfigureContactSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureContactSettingsRequest request = - ConfigureContactSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setValidateOnly(true) - .build(); - Registration response = domainsClient.configureContactSettingsAsync(request).get(); - } - } -} -// [END domains_v1_generated_domainsclient_configurecontactsettings_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurecontactsettings/SyncConfigureContactSettingsRegistrationnameContactsettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurecontactsettings/SyncConfigureContactSettingsRegistrationnameContactsettingsFieldmask.java deleted file mode 100644 index 04f944b9..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurecontactsettings/SyncConfigureContactSettingsRegistrationnameContactsettingsFieldmask.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync] -import com.google.cloud.domains.v1.ContactSettings; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureContactSettingsRegistrationnameContactsettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureContactSettingsRegistrationnameContactsettingsFieldmask(); - } - - public static void syncConfigureContactSettingsRegistrationnameContactsettingsFieldmask() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient - .configureContactSettingsAsync(registration, contactSettings, updateMask) - .get(); - } - } -} -// [END domains_v1_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurecontactsettings/SyncConfigureContactSettingsStringContactsettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurecontactsettings/SyncConfigureContactSettingsStringContactsettingsFieldmask.java deleted file mode 100644 index 58488188..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurecontactsettings/SyncConfigureContactSettingsStringContactsettingsFieldmask.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync] -import com.google.cloud.domains.v1.ContactSettings; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureContactSettingsStringContactsettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureContactSettingsStringContactsettingsFieldmask(); - } - - public static void syncConfigureContactSettingsStringContactsettingsFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient - .configureContactSettingsAsync(registration, contactSettings, updateMask) - .get(); - } - } -} -// [END domains_v1_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurednssettings/AsyncConfigureDnsSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurednssettings/AsyncConfigureDnsSettings.java deleted file mode 100644 index 4e7f535a..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurednssettings/AsyncConfigureDnsSettings.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_configurednssettings_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1.DnsSettings; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.longrunning.Operation; -import com.google.protobuf.FieldMask; - -public class AsyncConfigureDnsSettings { - - public static void main(String[] args) throws Exception { - asyncConfigureDnsSettings(); - } - - public static void asyncConfigureDnsSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureDnsSettingsRequest request = - ConfigureDnsSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .setValidateOnly(true) - .build(); - ApiFuture future = - domainsClient.configureDnsSettingsCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_configurednssettings_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurednssettings/AsyncConfigureDnsSettingsLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurednssettings/AsyncConfigureDnsSettingsLRO.java deleted file mode 100644 index fc1b1832..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurednssettings/AsyncConfigureDnsSettingsLRO.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_configurednssettings_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1.DnsSettings; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.OperationMetadata; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class AsyncConfigureDnsSettingsLRO { - - public static void main(String[] args) throws Exception { - asyncConfigureDnsSettingsLRO(); - } - - public static void asyncConfigureDnsSettingsLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureDnsSettingsRequest request = - ConfigureDnsSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .setValidateOnly(true) - .build(); - OperationFuture future = - domainsClient.configureDnsSettingsOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_configurednssettings_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurednssettings/SyncConfigureDnsSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurednssettings/SyncConfigureDnsSettings.java deleted file mode 100644 index f594a442..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurednssettings/SyncConfigureDnsSettings.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_configurednssettings_sync] -import com.google.cloud.domains.v1.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1.DnsSettings; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureDnsSettings { - - public static void main(String[] args) throws Exception { - syncConfigureDnsSettings(); - } - - public static void syncConfigureDnsSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureDnsSettingsRequest request = - ConfigureDnsSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .setValidateOnly(true) - .build(); - Registration response = domainsClient.configureDnsSettingsAsync(request).get(); - } - } -} -// [END domains_v1_generated_domainsclient_configurednssettings_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurednssettings/SyncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurednssettings/SyncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask.java deleted file mode 100644 index cf281459..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurednssettings/SyncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_configurednssettings_registrationnamednssettingsfieldmask_sync] -import com.google.cloud.domains.v1.DnsSettings; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask(); - } - - public static void syncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - } - } -} -// [END domains_v1_generated_domainsclient_configurednssettings_registrationnamednssettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurednssettings/SyncConfigureDnsSettingsStringDnssettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurednssettings/SyncConfigureDnsSettingsStringDnssettingsFieldmask.java deleted file mode 100644 index 3cbcffcb..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configurednssettings/SyncConfigureDnsSettingsStringDnssettingsFieldmask.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_configurednssettings_stringdnssettingsfieldmask_sync] -import com.google.cloud.domains.v1.DnsSettings; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureDnsSettingsStringDnssettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureDnsSettingsStringDnssettingsFieldmask(); - } - - public static void syncConfigureDnsSettingsStringDnssettingsFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - } - } -} -// [END domains_v1_generated_domainsclient_configurednssettings_stringdnssettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettings.java deleted file mode 100644 index ef2a098a..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettings.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_configuremanagementsettings_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.ManagementSettings; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.longrunning.Operation; -import com.google.protobuf.FieldMask; - -public class AsyncConfigureManagementSettings { - - public static void main(String[] args) throws Exception { - asyncConfigureManagementSettings(); - } - - public static void asyncConfigureManagementSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureManagementSettingsRequest request = - ConfigureManagementSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = - domainsClient.configureManagementSettingsCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_configuremanagementsettings_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettingsLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettingsLRO.java deleted file mode 100644 index 3a968830..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettingsLRO.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_configuremanagementsettings_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.ManagementSettings; -import com.google.cloud.domains.v1.OperationMetadata; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class AsyncConfigureManagementSettingsLRO { - - public static void main(String[] args) throws Exception { - asyncConfigureManagementSettingsLRO(); - } - - public static void asyncConfigureManagementSettingsLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureManagementSettingsRequest request = - ConfigureManagementSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - OperationFuture future = - domainsClient.configureManagementSettingsOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_configuremanagementsettings_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettings.java deleted file mode 100644 index 5bda784e..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettings.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_configuremanagementsettings_sync] -import com.google.cloud.domains.v1.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.ManagementSettings; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureManagementSettings { - - public static void main(String[] args) throws Exception { - syncConfigureManagementSettings(); - } - - public static void syncConfigureManagementSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureManagementSettingsRequest request = - ConfigureManagementSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Registration response = domainsClient.configureManagementSettingsAsync(request).get(); - } - } -} -// [END domains_v1_generated_domainsclient_configuremanagementsettings_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask.java deleted file mode 100644 index cc6ed5a5..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_configuremanagementsettings_registrationnamemanagementsettingsfieldmask_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.ManagementSettings; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask(); - } - - public static void syncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient - .configureManagementSettingsAsync(registration, managementSettings, updateMask) - .get(); - } - } -} -// [END domains_v1_generated_domainsclient_configuremanagementsettings_registrationnamemanagementsettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsStringManagementsettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsStringManagementsettingsFieldmask.java deleted file mode 100644 index 55ef999f..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsStringManagementsettingsFieldmask.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_configuremanagementsettings_stringmanagementsettingsfieldmask_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.ManagementSettings; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureManagementSettingsStringManagementsettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureManagementSettingsStringManagementsettingsFieldmask(); - } - - public static void syncConfigureManagementSettingsStringManagementsettingsFieldmask() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient - .configureManagementSettingsAsync(registration, managementSettings, updateMask) - .get(); - } - } -} -// [END domains_v1_generated_domainsclient_configuremanagementsettings_stringmanagementsettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 0d84d814..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_create_setcredentialsprovider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.DomainsSettings; -import com.google.cloud.domains.v1.myCredentials; - -public class SyncCreateSetCredentialsProvider { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider(); - } - - public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsSettings domainsSettings = - DomainsSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - DomainsClient domainsClient = DomainsClient.create(domainsSettings); - } -} -// [END domains_v1_generated_domainsclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 317814d3..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_create_setcredentialsprovider1_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.DomainsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsSettings domainsSettings = - DomainsSettings.newBuilder() - .setTransportChannelProvider( - DomainsSettings.defaultHttpJsonTransportProviderBuilder().build()) - .build(); - DomainsClient domainsClient = DomainsClient.create(domainsSettings); - } -} -// [END domains_v1_generated_domainsclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/create/SyncCreateSetEndpoint.java deleted file mode 100644 index 757a033d..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_create_setendpoint_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.DomainsSettings; -import com.google.cloud.domains.v1.myEndpoint; - -public class SyncCreateSetEndpoint { - - public static void main(String[] args) throws Exception { - syncCreateSetEndpoint(); - } - - public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsSettings domainsSettings = DomainsSettings.newBuilder().setEndpoint(myEndpoint).build(); - DomainsClient domainsClient = DomainsClient.create(domainsSettings); - } -} -// [END domains_v1_generated_domainsclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/deleteregistration/AsyncDeleteRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/deleteregistration/AsyncDeleteRegistration.java deleted file mode 100644 index 186fe611..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/deleteregistration/AsyncDeleteRegistration.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_deleteregistration_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1.DeleteRegistrationRequest; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.longrunning.Operation; - -public class AsyncDeleteRegistration { - - public static void main(String[] args) throws Exception { - asyncDeleteRegistration(); - } - - public static void asyncDeleteRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - DeleteRegistrationRequest request = - DeleteRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - ApiFuture future = domainsClient.deleteRegistrationCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_deleteregistration_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/deleteregistration/AsyncDeleteRegistrationLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/deleteregistration/AsyncDeleteRegistrationLRO.java deleted file mode 100644 index a5a94d11..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/deleteregistration/AsyncDeleteRegistrationLRO.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_deleteregistration_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1.DeleteRegistrationRequest; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.OperationMetadata; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.protobuf.Empty; - -public class AsyncDeleteRegistrationLRO { - - public static void main(String[] args) throws Exception { - asyncDeleteRegistrationLRO(); - } - - public static void asyncDeleteRegistrationLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - DeleteRegistrationRequest request = - DeleteRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - OperationFuture future = - domainsClient.deleteRegistrationOperationCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_deleteregistration_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/deleteregistration/SyncDeleteRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/deleteregistration/SyncDeleteRegistration.java deleted file mode 100644 index d725e1a4..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/deleteregistration/SyncDeleteRegistration.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_deleteregistration_sync] -import com.google.cloud.domains.v1.DeleteRegistrationRequest; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.protobuf.Empty; - -public class SyncDeleteRegistration { - - public static void main(String[] args) throws Exception { - syncDeleteRegistration(); - } - - public static void syncDeleteRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - DeleteRegistrationRequest request = - DeleteRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - domainsClient.deleteRegistrationAsync(request).get(); - } - } -} -// [END domains_v1_generated_domainsclient_deleteregistration_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/deleteregistration/SyncDeleteRegistrationRegistrationname.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/deleteregistration/SyncDeleteRegistrationRegistrationname.java deleted file mode 100644 index 8e086e29..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/deleteregistration/SyncDeleteRegistrationRegistrationname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_deleteregistration_registrationname_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.protobuf.Empty; - -public class SyncDeleteRegistrationRegistrationname { - - public static void main(String[] args) throws Exception { - syncDeleteRegistrationRegistrationname(); - } - - public static void syncDeleteRegistrationRegistrationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - domainsClient.deleteRegistrationAsync(name).get(); - } - } -} -// [END domains_v1_generated_domainsclient_deleteregistration_registrationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/deleteregistration/SyncDeleteRegistrationString.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/deleteregistration/SyncDeleteRegistrationString.java deleted file mode 100644 index 742a3b89..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/deleteregistration/SyncDeleteRegistrationString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_deleteregistration_string_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.protobuf.Empty; - -public class SyncDeleteRegistrationString { - - public static void main(String[] args) throws Exception { - syncDeleteRegistrationString(); - } - - public static void syncDeleteRegistrationString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - domainsClient.deleteRegistrationAsync(name).get(); - } - } -} -// [END domains_v1_generated_domainsclient_deleteregistration_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/exportregistration/AsyncExportRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/exportregistration/AsyncExportRegistration.java deleted file mode 100644 index e1ecb47e..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/exportregistration/AsyncExportRegistration.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_exportregistration_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.ExportRegistrationRequest; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.longrunning.Operation; - -public class AsyncExportRegistration { - - public static void main(String[] args) throws Exception { - asyncExportRegistration(); - } - - public static void asyncExportRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ExportRegistrationRequest request = - ExportRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - ApiFuture future = domainsClient.exportRegistrationCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_exportregistration_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/exportregistration/AsyncExportRegistrationLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/exportregistration/AsyncExportRegistrationLRO.java deleted file mode 100644 index 4dd89b58..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/exportregistration/AsyncExportRegistrationLRO.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_exportregistration_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.ExportRegistrationRequest; -import com.google.cloud.domains.v1.OperationMetadata; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; - -public class AsyncExportRegistrationLRO { - - public static void main(String[] args) throws Exception { - asyncExportRegistrationLRO(); - } - - public static void asyncExportRegistrationLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ExportRegistrationRequest request = - ExportRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - OperationFuture future = - domainsClient.exportRegistrationOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_exportregistration_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/exportregistration/SyncExportRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/exportregistration/SyncExportRegistration.java deleted file mode 100644 index 6d12b49f..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/exportregistration/SyncExportRegistration.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_exportregistration_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.ExportRegistrationRequest; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; - -public class SyncExportRegistration { - - public static void main(String[] args) throws Exception { - syncExportRegistration(); - } - - public static void syncExportRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ExportRegistrationRequest request = - ExportRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - Registration response = domainsClient.exportRegistrationAsync(request).get(); - } - } -} -// [END domains_v1_generated_domainsclient_exportregistration_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/exportregistration/SyncExportRegistrationRegistrationname.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/exportregistration/SyncExportRegistrationRegistrationname.java deleted file mode 100644 index 96d1aa1a..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/exportregistration/SyncExportRegistrationRegistrationname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_exportregistration_registrationname_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; - -public class SyncExportRegistrationRegistrationname { - - public static void main(String[] args) throws Exception { - syncExportRegistrationRegistrationname(); - } - - public static void syncExportRegistrationRegistrationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - Registration response = domainsClient.exportRegistrationAsync(name).get(); - } - } -} -// [END domains_v1_generated_domainsclient_exportregistration_registrationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/exportregistration/SyncExportRegistrationString.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/exportregistration/SyncExportRegistrationString.java deleted file mode 100644 index 4772da1a..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/exportregistration/SyncExportRegistrationString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_exportregistration_string_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; - -public class SyncExportRegistrationString { - - public static void main(String[] args) throws Exception { - syncExportRegistrationString(); - } - - public static void syncExportRegistrationString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - Registration response = domainsClient.exportRegistrationAsync(name).get(); - } - } -} -// [END domains_v1_generated_domainsclient_exportregistration_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/getregistration/AsyncGetRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/getregistration/AsyncGetRegistration.java deleted file mode 100644 index 6969fbf5..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/getregistration/AsyncGetRegistration.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_getregistration_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.GetRegistrationRequest; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; - -public class AsyncGetRegistration { - - public static void main(String[] args) throws Exception { - asyncGetRegistration(); - } - - public static void asyncGetRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - GetRegistrationRequest request = - GetRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - ApiFuture future = domainsClient.getRegistrationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_getregistration_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/getregistration/SyncGetRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/getregistration/SyncGetRegistration.java deleted file mode 100644 index 2ddd3bbd..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/getregistration/SyncGetRegistration.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_getregistration_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.GetRegistrationRequest; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; - -public class SyncGetRegistration { - - public static void main(String[] args) throws Exception { - syncGetRegistration(); - } - - public static void syncGetRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - GetRegistrationRequest request = - GetRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - Registration response = domainsClient.getRegistration(request); - } - } -} -// [END domains_v1_generated_domainsclient_getregistration_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/getregistration/SyncGetRegistrationRegistrationname.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/getregistration/SyncGetRegistrationRegistrationname.java deleted file mode 100644 index 67582048..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/getregistration/SyncGetRegistrationRegistrationname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_getregistration_registrationname_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; - -public class SyncGetRegistrationRegistrationname { - - public static void main(String[] args) throws Exception { - syncGetRegistrationRegistrationname(); - } - - public static void syncGetRegistrationRegistrationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - Registration response = domainsClient.getRegistration(name); - } - } -} -// [END domains_v1_generated_domainsclient_getregistration_registrationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/getregistration/SyncGetRegistrationString.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/getregistration/SyncGetRegistrationString.java deleted file mode 100644 index 944c6f2c..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/getregistration/SyncGetRegistrationString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_getregistration_string_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.RegistrationName; - -public class SyncGetRegistrationString { - - public static void main(String[] args) throws Exception { - syncGetRegistrationString(); - } - - public static void syncGetRegistrationString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - Registration response = domainsClient.getRegistration(name); - } - } -} -// [END domains_v1_generated_domainsclient_getregistration_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/listregistrations/AsyncListRegistrations.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/listregistrations/AsyncListRegistrations.java deleted file mode 100644 index 54c4bbd8..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/listregistrations/AsyncListRegistrations.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_listregistrations_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.ListRegistrationsRequest; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.Registration; - -public class AsyncListRegistrations { - - public static void main(String[] args) throws Exception { - asyncListRegistrations(); - } - - public static void asyncListRegistrations() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ListRegistrationsRequest request = - ListRegistrationsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - ApiFuture future = - domainsClient.listRegistrationsPagedCallable().futureCall(request); - // Do something. - for (Registration element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END domains_v1_generated_domainsclient_listregistrations_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/listregistrations/AsyncListRegistrationsPaged.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/listregistrations/AsyncListRegistrationsPaged.java deleted file mode 100644 index 8d9780c8..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/listregistrations/AsyncListRegistrationsPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_listregistrations_paged_async] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.ListRegistrationsRequest; -import com.google.cloud.domains.v1.ListRegistrationsResponse; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.Registration; -import com.google.common.base.Strings; - -public class AsyncListRegistrationsPaged { - - public static void main(String[] args) throws Exception { - asyncListRegistrationsPaged(); - } - - public static void asyncListRegistrationsPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ListRegistrationsRequest request = - ListRegistrationsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - while (true) { - ListRegistrationsResponse response = - domainsClient.listRegistrationsCallable().call(request); - for (Registration element : response.getRegistrationsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END domains_v1_generated_domainsclient_listregistrations_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/listregistrations/SyncListRegistrations.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/listregistrations/SyncListRegistrations.java deleted file mode 100644 index 018fbf22..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/listregistrations/SyncListRegistrations.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_listregistrations_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.ListRegistrationsRequest; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.Registration; - -public class SyncListRegistrations { - - public static void main(String[] args) throws Exception { - syncListRegistrations(); - } - - public static void syncListRegistrations() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ListRegistrationsRequest request = - ListRegistrationsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - for (Registration element : domainsClient.listRegistrations(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END domains_v1_generated_domainsclient_listregistrations_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/listregistrations/SyncListRegistrationsLocationname.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/listregistrations/SyncListRegistrationsLocationname.java deleted file mode 100644 index be2536d9..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/listregistrations/SyncListRegistrationsLocationname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_listregistrations_locationname_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.Registration; - -public class SyncListRegistrationsLocationname { - - public static void main(String[] args) throws Exception { - syncListRegistrationsLocationname(); - } - - public static void syncListRegistrationsLocationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (Registration element : domainsClient.listRegistrations(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END domains_v1_generated_domainsclient_listregistrations_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/listregistrations/SyncListRegistrationsString.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/listregistrations/SyncListRegistrationsString.java deleted file mode 100644 index 5d30ab86..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/listregistrations/SyncListRegistrationsString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_listregistrations_string_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.Registration; - -public class SyncListRegistrationsString { - - public static void main(String[] args) throws Exception { - syncListRegistrationsString(); - } - - public static void syncListRegistrationsString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (Registration element : domainsClient.listRegistrations(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END domains_v1_generated_domainsclient_listregistrations_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/registerdomain/AsyncRegisterDomain.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/registerdomain/AsyncRegisterDomain.java deleted file mode 100644 index 5ff31150..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/registerdomain/AsyncRegisterDomain.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_registerdomain_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1.ContactNotice; -import com.google.cloud.domains.v1.DomainNotice; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.RegisterDomainRequest; -import com.google.cloud.domains.v1.Registration; -import com.google.longrunning.Operation; -import com.google.type.Money; -import java.util.ArrayList; - -public class AsyncRegisterDomain { - - public static void main(String[] args) throws Exception { - asyncRegisterDomain(); - } - - public static void asyncRegisterDomain() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegisterDomainRequest request = - RegisterDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllDomainNotices(new ArrayList()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setValidateOnly(true) - .build(); - ApiFuture future = domainsClient.registerDomainCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_registerdomain_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/registerdomain/AsyncRegisterDomainLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/registerdomain/AsyncRegisterDomainLRO.java deleted file mode 100644 index 4707fc5b..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/registerdomain/AsyncRegisterDomainLRO.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_registerdomain_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1.ContactNotice; -import com.google.cloud.domains.v1.DomainNotice; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.OperationMetadata; -import com.google.cloud.domains.v1.RegisterDomainRequest; -import com.google.cloud.domains.v1.Registration; -import com.google.type.Money; -import java.util.ArrayList; - -public class AsyncRegisterDomainLRO { - - public static void main(String[] args) throws Exception { - asyncRegisterDomainLRO(); - } - - public static void asyncRegisterDomainLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegisterDomainRequest request = - RegisterDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllDomainNotices(new ArrayList()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setValidateOnly(true) - .build(); - OperationFuture future = - domainsClient.registerDomainOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_registerdomain_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/registerdomain/SyncRegisterDomain.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/registerdomain/SyncRegisterDomain.java deleted file mode 100644 index 69ec1b8b..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/registerdomain/SyncRegisterDomain.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_registerdomain_sync] -import com.google.cloud.domains.v1.ContactNotice; -import com.google.cloud.domains.v1.DomainNotice; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.RegisterDomainRequest; -import com.google.cloud.domains.v1.Registration; -import com.google.type.Money; -import java.util.ArrayList; - -public class SyncRegisterDomain { - - public static void main(String[] args) throws Exception { - syncRegisterDomain(); - } - - public static void syncRegisterDomain() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegisterDomainRequest request = - RegisterDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllDomainNotices(new ArrayList()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setValidateOnly(true) - .build(); - Registration response = domainsClient.registerDomainAsync(request).get(); - } - } -} -// [END domains_v1_generated_domainsclient_registerdomain_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/registerdomain/SyncRegisterDomainLocationnameRegistrationMoney.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/registerdomain/SyncRegisterDomainLocationnameRegistrationMoney.java deleted file mode 100644 index 46ce423e..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/registerdomain/SyncRegisterDomainLocationnameRegistrationMoney.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_registerdomain_locationnameregistrationmoney_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.Registration; -import com.google.type.Money; - -public class SyncRegisterDomainLocationnameRegistrationMoney { - - public static void main(String[] args) throws Exception { - syncRegisterDomainLocationnameRegistrationMoney(); - } - - public static void syncRegisterDomainLocationnameRegistrationMoney() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - Registration response = - domainsClient.registerDomainAsync(parent, registration, yearlyPrice).get(); - } - } -} -// [END domains_v1_generated_domainsclient_registerdomain_locationnameregistrationmoney_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/registerdomain/SyncRegisterDomainStringRegistrationMoney.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/registerdomain/SyncRegisterDomainStringRegistrationMoney.java deleted file mode 100644 index 18bb0f8b..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/registerdomain/SyncRegisterDomainStringRegistrationMoney.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_registerdomain_stringregistrationmoney_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.Registration; -import com.google.type.Money; - -public class SyncRegisterDomainStringRegistrationMoney { - - public static void main(String[] args) throws Exception { - syncRegisterDomainStringRegistrationMoney(); - } - - public static void syncRegisterDomainStringRegistrationMoney() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - Registration response = - domainsClient.registerDomainAsync(parent, registration, yearlyPrice).get(); - } - } -} -// [END domains_v1_generated_domainsclient_registerdomain_stringregistrationmoney_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/resetauthorizationcode/AsyncResetAuthorizationCode.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/resetauthorizationcode/AsyncResetAuthorizationCode.java deleted file mode 100644 index 776c3f62..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/resetauthorizationcode/AsyncResetAuthorizationCode.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_resetauthorizationcode_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1.AuthorizationCode; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.cloud.domains.v1.ResetAuthorizationCodeRequest; - -public class AsyncResetAuthorizationCode { - - public static void main(String[] args) throws Exception { - asyncResetAuthorizationCode(); - } - - public static void asyncResetAuthorizationCode() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ResetAuthorizationCodeRequest request = - ResetAuthorizationCodeRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - ApiFuture future = - domainsClient.resetAuthorizationCodeCallable().futureCall(request); - // Do something. - AuthorizationCode response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_resetauthorizationcode_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCode.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCode.java deleted file mode 100644 index b70016cf..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCode.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_resetauthorizationcode_sync] -import com.google.cloud.domains.v1.AuthorizationCode; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.cloud.domains.v1.ResetAuthorizationCodeRequest; - -public class SyncResetAuthorizationCode { - - public static void main(String[] args) throws Exception { - syncResetAuthorizationCode(); - } - - public static void syncResetAuthorizationCode() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ResetAuthorizationCodeRequest request = - ResetAuthorizationCodeRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - AuthorizationCode response = domainsClient.resetAuthorizationCode(request); - } - } -} -// [END domains_v1_generated_domainsclient_resetauthorizationcode_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeRegistrationname.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeRegistrationname.java deleted file mode 100644 index 55547acd..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeRegistrationname.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_resetauthorizationcode_registrationname_sync] -import com.google.cloud.domains.v1.AuthorizationCode; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.RegistrationName; - -public class SyncResetAuthorizationCodeRegistrationname { - - public static void main(String[] args) throws Exception { - syncResetAuthorizationCodeRegistrationname(); - } - - public static void syncResetAuthorizationCodeRegistrationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - AuthorizationCode response = domainsClient.resetAuthorizationCode(registration); - } - } -} -// [END domains_v1_generated_domainsclient_resetauthorizationcode_registrationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeString.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeString.java deleted file mode 100644 index 6fe2c17c..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_resetauthorizationcode_string_sync] -import com.google.cloud.domains.v1.AuthorizationCode; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.RegistrationName; - -public class SyncResetAuthorizationCodeString { - - public static void main(String[] args) throws Exception { - syncResetAuthorizationCodeString(); - } - - public static void syncResetAuthorizationCodeString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - AuthorizationCode response = domainsClient.resetAuthorizationCode(registration); - } - } -} -// [END domains_v1_generated_domainsclient_resetauthorizationcode_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveauthorizationcode/AsyncRetrieveAuthorizationCode.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveauthorizationcode/AsyncRetrieveAuthorizationCode.java deleted file mode 100644 index b562bc75..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveauthorizationcode/AsyncRetrieveAuthorizationCode.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_retrieveauthorizationcode_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1.AuthorizationCode; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest; - -public class AsyncRetrieveAuthorizationCode { - - public static void main(String[] args) throws Exception { - asyncRetrieveAuthorizationCode(); - } - - public static void asyncRetrieveAuthorizationCode() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveAuthorizationCodeRequest request = - RetrieveAuthorizationCodeRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - ApiFuture future = - domainsClient.retrieveAuthorizationCodeCallable().futureCall(request); - // Do something. - AuthorizationCode response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_retrieveauthorizationcode_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCode.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCode.java deleted file mode 100644 index 52a1c240..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCode.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_retrieveauthorizationcode_sync] -import com.google.cloud.domains.v1.AuthorizationCode; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.RegistrationName; -import com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest; - -public class SyncRetrieveAuthorizationCode { - - public static void main(String[] args) throws Exception { - syncRetrieveAuthorizationCode(); - } - - public static void syncRetrieveAuthorizationCode() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveAuthorizationCodeRequest request = - RetrieveAuthorizationCodeRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - AuthorizationCode response = domainsClient.retrieveAuthorizationCode(request); - } - } -} -// [END domains_v1_generated_domainsclient_retrieveauthorizationcode_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeRegistrationname.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeRegistrationname.java deleted file mode 100644 index e1f92fd2..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeRegistrationname.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_retrieveauthorizationcode_registrationname_sync] -import com.google.cloud.domains.v1.AuthorizationCode; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.RegistrationName; - -public class SyncRetrieveAuthorizationCodeRegistrationname { - - public static void main(String[] args) throws Exception { - syncRetrieveAuthorizationCodeRegistrationname(); - } - - public static void syncRetrieveAuthorizationCodeRegistrationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - AuthorizationCode response = domainsClient.retrieveAuthorizationCode(registration); - } - } -} -// [END domains_v1_generated_domainsclient_retrieveauthorizationcode_registrationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeString.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeString.java deleted file mode 100644 index 67046e96..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_retrieveauthorizationcode_string_sync] -import com.google.cloud.domains.v1.AuthorizationCode; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.RegistrationName; - -public class SyncRetrieveAuthorizationCodeString { - - public static void main(String[] args) throws Exception { - syncRetrieveAuthorizationCodeString(); - } - - public static void syncRetrieveAuthorizationCodeString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - AuthorizationCode response = domainsClient.retrieveAuthorizationCode(registration); - } - } -} -// [END domains_v1_generated_domainsclient_retrieveauthorizationcode_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveregisterparameters/AsyncRetrieveRegisterParameters.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveregisterparameters/AsyncRetrieveRegisterParameters.java deleted file mode 100644 index c3315354..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveregisterparameters/AsyncRetrieveRegisterParameters.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_retrieveregisterparameters_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1.RetrieveRegisterParametersResponse; - -public class AsyncRetrieveRegisterParameters { - - public static void main(String[] args) throws Exception { - asyncRetrieveRegisterParameters(); - } - - public static void asyncRetrieveRegisterParameters() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveRegisterParametersRequest request = - RetrieveRegisterParametersRequest.newBuilder() - .setDomainName("domainName-1244085905") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - ApiFuture future = - domainsClient.retrieveRegisterParametersCallable().futureCall(request); - // Do something. - RetrieveRegisterParametersResponse response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_retrieveregisterparameters_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParameters.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParameters.java deleted file mode 100644 index 8893cc99..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParameters.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_retrieveregisterparameters_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1.RetrieveRegisterParametersResponse; - -public class SyncRetrieveRegisterParameters { - - public static void main(String[] args) throws Exception { - syncRetrieveRegisterParameters(); - } - - public static void syncRetrieveRegisterParameters() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveRegisterParametersRequest request = - RetrieveRegisterParametersRequest.newBuilder() - .setDomainName("domainName-1244085905") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - RetrieveRegisterParametersResponse response = - domainsClient.retrieveRegisterParameters(request); - } - } -} -// [END domains_v1_generated_domainsclient_retrieveregisterparameters_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersLocationnameString.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersLocationnameString.java deleted file mode 100644 index 107f7590..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersLocationnameString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_retrieveregisterparameters_locationnamestring_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.RetrieveRegisterParametersResponse; - -public class SyncRetrieveRegisterParametersLocationnameString { - - public static void main(String[] args) throws Exception { - syncRetrieveRegisterParametersLocationnameString(); - } - - public static void syncRetrieveRegisterParametersLocationnameString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - RetrieveRegisterParametersResponse response = - domainsClient.retrieveRegisterParameters(location, domainName); - } - } -} -// [END domains_v1_generated_domainsclient_retrieveregisterparameters_locationnamestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersStringString.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersStringString.java deleted file mode 100644 index c86076a9..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersStringString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_retrieveregisterparameters_stringstring_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.RetrieveRegisterParametersResponse; - -public class SyncRetrieveRegisterParametersStringString { - - public static void main(String[] args) throws Exception { - syncRetrieveRegisterParametersStringString(); - } - - public static void syncRetrieveRegisterParametersStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - String domainName = "domainName-1244085905"; - RetrieveRegisterParametersResponse response = - domainsClient.retrieveRegisterParameters(location, domainName); - } - } -} -// [END domains_v1_generated_domainsclient_retrieveregisterparameters_stringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrievetransferparameters/AsyncRetrieveTransferParameters.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrievetransferparameters/AsyncRetrieveTransferParameters.java deleted file mode 100644 index d62f91ca..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrievetransferparameters/AsyncRetrieveTransferParameters.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_retrievetransferparameters_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1.RetrieveTransferParametersResponse; - -public class AsyncRetrieveTransferParameters { - - public static void main(String[] args) throws Exception { - asyncRetrieveTransferParameters(); - } - - public static void asyncRetrieveTransferParameters() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveTransferParametersRequest request = - RetrieveTransferParametersRequest.newBuilder() - .setDomainName("domainName-1244085905") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - ApiFuture future = - domainsClient.retrieveTransferParametersCallable().futureCall(request); - // Do something. - RetrieveTransferParametersResponse response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_retrievetransferparameters_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParameters.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParameters.java deleted file mode 100644 index e28fef59..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParameters.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_retrievetransferparameters_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1.RetrieveTransferParametersResponse; - -public class SyncRetrieveTransferParameters { - - public static void main(String[] args) throws Exception { - syncRetrieveTransferParameters(); - } - - public static void syncRetrieveTransferParameters() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveTransferParametersRequest request = - RetrieveTransferParametersRequest.newBuilder() - .setDomainName("domainName-1244085905") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - RetrieveTransferParametersResponse response = - domainsClient.retrieveTransferParameters(request); - } - } -} -// [END domains_v1_generated_domainsclient_retrievetransferparameters_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersLocationnameString.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersLocationnameString.java deleted file mode 100644 index e9a51892..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersLocationnameString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_retrievetransferparameters_locationnamestring_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.RetrieveTransferParametersResponse; - -public class SyncRetrieveTransferParametersLocationnameString { - - public static void main(String[] args) throws Exception { - syncRetrieveTransferParametersLocationnameString(); - } - - public static void syncRetrieveTransferParametersLocationnameString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - RetrieveTransferParametersResponse response = - domainsClient.retrieveTransferParameters(location, domainName); - } - } -} -// [END domains_v1_generated_domainsclient_retrievetransferparameters_locationnamestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersStringString.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersStringString.java deleted file mode 100644 index 134f2e19..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersStringString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_retrievetransferparameters_stringstring_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.RetrieveTransferParametersResponse; - -public class SyncRetrieveTransferParametersStringString { - - public static void main(String[] args) throws Exception { - syncRetrieveTransferParametersStringString(); - } - - public static void syncRetrieveTransferParametersStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - String domainName = "domainName-1244085905"; - RetrieveTransferParametersResponse response = - domainsClient.retrieveTransferParameters(location, domainName); - } - } -} -// [END domains_v1_generated_domainsclient_retrievetransferparameters_stringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/searchdomains/AsyncSearchDomains.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/searchdomains/AsyncSearchDomains.java deleted file mode 100644 index 2383393a..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/searchdomains/AsyncSearchDomains.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_searchdomains_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.SearchDomainsRequest; -import com.google.cloud.domains.v1.SearchDomainsResponse; - -public class AsyncSearchDomains { - - public static void main(String[] args) throws Exception { - asyncSearchDomains(); - } - - public static void asyncSearchDomains() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - SearchDomainsRequest request = - SearchDomainsRequest.newBuilder() - .setQuery("query107944136") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - ApiFuture future = - domainsClient.searchDomainsCallable().futureCall(request); - // Do something. - SearchDomainsResponse response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_searchdomains_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/searchdomains/SyncSearchDomains.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/searchdomains/SyncSearchDomains.java deleted file mode 100644 index 385e9d20..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/searchdomains/SyncSearchDomains.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_searchdomains_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.SearchDomainsRequest; -import com.google.cloud.domains.v1.SearchDomainsResponse; - -public class SyncSearchDomains { - - public static void main(String[] args) throws Exception { - syncSearchDomains(); - } - - public static void syncSearchDomains() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - SearchDomainsRequest request = - SearchDomainsRequest.newBuilder() - .setQuery("query107944136") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - SearchDomainsResponse response = domainsClient.searchDomains(request); - } - } -} -// [END domains_v1_generated_domainsclient_searchdomains_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/searchdomains/SyncSearchDomainsLocationnameString.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/searchdomains/SyncSearchDomainsLocationnameString.java deleted file mode 100644 index 9dd03f18..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/searchdomains/SyncSearchDomainsLocationnameString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_searchdomains_locationnamestring_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.SearchDomainsResponse; - -public class SyncSearchDomainsLocationnameString { - - public static void main(String[] args) throws Exception { - syncSearchDomainsLocationnameString(); - } - - public static void syncSearchDomainsLocationnameString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String query = "query107944136"; - SearchDomainsResponse response = domainsClient.searchDomains(location, query); - } - } -} -// [END domains_v1_generated_domainsclient_searchdomains_locationnamestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/searchdomains/SyncSearchDomainsStringString.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/searchdomains/SyncSearchDomainsStringString.java deleted file mode 100644 index 40a20b2b..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/searchdomains/SyncSearchDomainsStringString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_searchdomains_stringstring_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.SearchDomainsResponse; - -public class SyncSearchDomainsStringString { - - public static void main(String[] args) throws Exception { - syncSearchDomainsStringString(); - } - - public static void syncSearchDomainsStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - String query = "query107944136"; - SearchDomainsResponse response = domainsClient.searchDomains(location, query); - } - } -} -// [END domains_v1_generated_domainsclient_searchdomains_stringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/transferdomain/AsyncTransferDomain.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/transferdomain/AsyncTransferDomain.java deleted file mode 100644 index 7bab5168..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/transferdomain/AsyncTransferDomain.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_transferdomain_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1.AuthorizationCode; -import com.google.cloud.domains.v1.ContactNotice; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.TransferDomainRequest; -import com.google.longrunning.Operation; -import com.google.type.Money; -import java.util.ArrayList; - -public class AsyncTransferDomain { - - public static void main(String[] args) throws Exception { - asyncTransferDomain(); - } - - public static void asyncTransferDomain() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - TransferDomainRequest request = - TransferDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setAuthorizationCode(AuthorizationCode.newBuilder().build()) - .setValidateOnly(true) - .build(); - ApiFuture future = domainsClient.transferDomainCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_transferdomain_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/transferdomain/AsyncTransferDomainLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/transferdomain/AsyncTransferDomainLRO.java deleted file mode 100644 index 1351a3ab..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/transferdomain/AsyncTransferDomainLRO.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_transferdomain_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1.AuthorizationCode; -import com.google.cloud.domains.v1.ContactNotice; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.OperationMetadata; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.TransferDomainRequest; -import com.google.type.Money; -import java.util.ArrayList; - -public class AsyncTransferDomainLRO { - - public static void main(String[] args) throws Exception { - asyncTransferDomainLRO(); - } - - public static void asyncTransferDomainLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - TransferDomainRequest request = - TransferDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setAuthorizationCode(AuthorizationCode.newBuilder().build()) - .setValidateOnly(true) - .build(); - OperationFuture future = - domainsClient.transferDomainOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_transferdomain_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/transferdomain/SyncTransferDomain.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/transferdomain/SyncTransferDomain.java deleted file mode 100644 index 0a6ff3e8..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/transferdomain/SyncTransferDomain.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_transferdomain_sync] -import com.google.cloud.domains.v1.AuthorizationCode; -import com.google.cloud.domains.v1.ContactNotice; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.TransferDomainRequest; -import com.google.type.Money; -import java.util.ArrayList; - -public class SyncTransferDomain { - - public static void main(String[] args) throws Exception { - syncTransferDomain(); - } - - public static void syncTransferDomain() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - TransferDomainRequest request = - TransferDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setAuthorizationCode(AuthorizationCode.newBuilder().build()) - .setValidateOnly(true) - .build(); - Registration response = domainsClient.transferDomainAsync(request).get(); - } - } -} -// [END domains_v1_generated_domainsclient_transferdomain_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/transferdomain/SyncTransferDomainLocationnameRegistrationMoneyAuthorizationcode.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/transferdomain/SyncTransferDomainLocationnameRegistrationMoneyAuthorizationcode.java deleted file mode 100644 index 0196b562..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/transferdomain/SyncTransferDomainLocationnameRegistrationMoneyAuthorizationcode.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_transferdomain_locationnameregistrationmoneyauthorizationcode_sync] -import com.google.cloud.domains.v1.AuthorizationCode; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.Registration; -import com.google.type.Money; - -public class SyncTransferDomainLocationnameRegistrationMoneyAuthorizationcode { - - public static void main(String[] args) throws Exception { - syncTransferDomainLocationnameRegistrationMoneyAuthorizationcode(); - } - - public static void syncTransferDomainLocationnameRegistrationMoneyAuthorizationcode() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - Registration response = - domainsClient - .transferDomainAsync(parent, registration, yearlyPrice, authorizationCode) - .get(); - } - } -} -// [END domains_v1_generated_domainsclient_transferdomain_locationnameregistrationmoneyauthorizationcode_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/transferdomain/SyncTransferDomainStringRegistrationMoneyAuthorizationcode.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/transferdomain/SyncTransferDomainStringRegistrationMoneyAuthorizationcode.java deleted file mode 100644 index fe8ed2fa..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/transferdomain/SyncTransferDomainStringRegistrationMoneyAuthorizationcode.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_transferdomain_stringregistrationmoneyauthorizationcode_sync] -import com.google.cloud.domains.v1.AuthorizationCode; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.LocationName; -import com.google.cloud.domains.v1.Registration; -import com.google.type.Money; - -public class SyncTransferDomainStringRegistrationMoneyAuthorizationcode { - - public static void main(String[] args) throws Exception { - syncTransferDomainStringRegistrationMoneyAuthorizationcode(); - } - - public static void syncTransferDomainStringRegistrationMoneyAuthorizationcode() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - Registration response = - domainsClient - .transferDomainAsync(parent, registration, yearlyPrice, authorizationCode) - .get(); - } - } -} -// [END domains_v1_generated_domainsclient_transferdomain_stringregistrationmoneyauthorizationcode_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/updateregistration/AsyncUpdateRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/updateregistration/AsyncUpdateRegistration.java deleted file mode 100644 index 5e0dd761..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/updateregistration/AsyncUpdateRegistration.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_updateregistration_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.UpdateRegistrationRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateRegistration { - - public static void main(String[] args) throws Exception { - asyncUpdateRegistration(); - } - - public static void asyncUpdateRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - UpdateRegistrationRequest request = - UpdateRegistrationRequest.newBuilder() - .setRegistration(Registration.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = domainsClient.updateRegistrationCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_updateregistration_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/updateregistration/AsyncUpdateRegistrationLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/updateregistration/AsyncUpdateRegistrationLRO.java deleted file mode 100644 index 83f1748e..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/updateregistration/AsyncUpdateRegistrationLRO.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_updateregistration_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.OperationMetadata; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.UpdateRegistrationRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateRegistrationLRO { - - public static void main(String[] args) throws Exception { - asyncUpdateRegistrationLRO(); - } - - public static void asyncUpdateRegistrationLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - UpdateRegistrationRequest request = - UpdateRegistrationRequest.newBuilder() - .setRegistration(Registration.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - OperationFuture future = - domainsClient.updateRegistrationOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1_generated_domainsclient_updateregistration_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/updateregistration/SyncUpdateRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/updateregistration/SyncUpdateRegistration.java deleted file mode 100644 index e293eb31..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/updateregistration/SyncUpdateRegistration.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_updateregistration_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.Registration; -import com.google.cloud.domains.v1.UpdateRegistrationRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateRegistration { - - public static void main(String[] args) throws Exception { - syncUpdateRegistration(); - } - - public static void syncUpdateRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - UpdateRegistrationRequest request = - UpdateRegistrationRequest.newBuilder() - .setRegistration(Registration.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Registration response = domainsClient.updateRegistrationAsync(request).get(); - } - } -} -// [END domains_v1_generated_domainsclient_updateregistration_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/updateregistration/SyncUpdateRegistrationRegistrationFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/updateregistration/SyncUpdateRegistrationRegistrationFieldmask.java deleted file mode 100644 index e4a416bf..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainsclient/updateregistration/SyncUpdateRegistrationRegistrationFieldmask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainsclient_updateregistration_registrationfieldmask_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.Registration; -import com.google.protobuf.FieldMask; - -public class SyncUpdateRegistrationRegistrationFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateRegistrationRegistrationFieldmask(); - } - - public static void syncUpdateRegistrationRegistrationFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - Registration registration = Registration.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = domainsClient.updateRegistrationAsync(registration, updateMask).get(); - } - } -} -// [END domains_v1_generated_domainsclient_updateregistration_registrationfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/domainssettings/searchdomains/SyncSearchDomains.java b/samples/snippets/generated/com/google/cloud/domains/v1/domainssettings/searchdomains/SyncSearchDomains.java deleted file mode 100644 index 97db14d7..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/domainssettings/searchdomains/SyncSearchDomains.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_domainssettings_searchdomains_sync] -import com.google.cloud.domains.v1.DomainsSettings; -import java.time.Duration; - -public class SyncSearchDomains { - - public static void main(String[] args) throws Exception { - syncSearchDomains(); - } - - public static void syncSearchDomains() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsSettings.Builder domainsSettingsBuilder = DomainsSettings.newBuilder(); - domainsSettingsBuilder - .searchDomainsSettings() - .setRetrySettings( - domainsSettingsBuilder.searchDomainsSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - DomainsSettings domainsSettings = domainsSettingsBuilder.build(); - } -} -// [END domains_v1_generated_domainssettings_searchdomains_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1/stub/domainsstubsettings/searchdomains/SyncSearchDomains.java b/samples/snippets/generated/com/google/cloud/domains/v1/stub/domainsstubsettings/searchdomains/SyncSearchDomains.java deleted file mode 100644 index 2cb669cf..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1/stub/domainsstubsettings/searchdomains/SyncSearchDomains.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.stub.samples; - -// [START domains_v1_generated_domainsstubsettings_searchdomains_sync] -import com.google.cloud.domains.v1.stub.DomainsStubSettings; -import java.time.Duration; - -public class SyncSearchDomains { - - public static void main(String[] args) throws Exception { - syncSearchDomains(); - } - - public static void syncSearchDomains() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsStubSettings.Builder domainsSettingsBuilder = DomainsStubSettings.newBuilder(); - domainsSettingsBuilder - .searchDomainsSettings() - .setRetrySettings( - domainsSettingsBuilder.searchDomainsSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - DomainsStubSettings domainsSettings = domainsSettingsBuilder.build(); - } -} -// [END domains_v1_generated_domainsstubsettings_searchdomains_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurecontactsettings/AsyncConfigureContactSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurecontactsettings/AsyncConfigureContactSettings.java deleted file mode 100644 index 6216d613..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurecontactsettings/AsyncConfigureContactSettings.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_configurecontactsettings_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1alpha2.ContactNotice; -import com.google.cloud.domains.v1alpha2.ContactSettings; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.longrunning.Operation; -import com.google.protobuf.FieldMask; -import java.util.ArrayList; - -public class AsyncConfigureContactSettings { - - public static void main(String[] args) throws Exception { - asyncConfigureContactSettings(); - } - - public static void asyncConfigureContactSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureContactSettingsRequest request = - ConfigureContactSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setValidateOnly(true) - .build(); - ApiFuture future = - domainsClient.configureContactSettingsCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_configurecontactsettings_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurecontactsettings/AsyncConfigureContactSettingsLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurecontactsettings/AsyncConfigureContactSettingsLRO.java deleted file mode 100644 index 3b7425cc..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurecontactsettings/AsyncConfigureContactSettingsLRO.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_configurecontactsettings_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1alpha2.ContactNotice; -import com.google.cloud.domains.v1alpha2.ContactSettings; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.OperationMetadata; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.protobuf.FieldMask; -import java.util.ArrayList; - -public class AsyncConfigureContactSettingsLRO { - - public static void main(String[] args) throws Exception { - asyncConfigureContactSettingsLRO(); - } - - public static void asyncConfigureContactSettingsLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureContactSettingsRequest request = - ConfigureContactSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setValidateOnly(true) - .build(); - OperationFuture future = - domainsClient.configureContactSettingsOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_configurecontactsettings_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurecontactsettings/SyncConfigureContactSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurecontactsettings/SyncConfigureContactSettings.java deleted file mode 100644 index 0e4fb578..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurecontactsettings/SyncConfigureContactSettings.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_configurecontactsettings_sync] -import com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1alpha2.ContactNotice; -import com.google.cloud.domains.v1alpha2.ContactSettings; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.protobuf.FieldMask; -import java.util.ArrayList; - -public class SyncConfigureContactSettings { - - public static void main(String[] args) throws Exception { - syncConfigureContactSettings(); - } - - public static void syncConfigureContactSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureContactSettingsRequest request = - ConfigureContactSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setValidateOnly(true) - .build(); - Registration response = domainsClient.configureContactSettingsAsync(request).get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_configurecontactsettings_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurecontactsettings/SyncConfigureContactSettingsRegistrationnameContactsettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurecontactsettings/SyncConfigureContactSettingsRegistrationnameContactsettingsFieldmask.java deleted file mode 100644 index 1d33b5ce..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurecontactsettings/SyncConfigureContactSettingsRegistrationnameContactsettingsFieldmask.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync] -import com.google.cloud.domains.v1alpha2.ContactSettings; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureContactSettingsRegistrationnameContactsettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureContactSettingsRegistrationnameContactsettingsFieldmask(); - } - - public static void syncConfigureContactSettingsRegistrationnameContactsettingsFieldmask() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient - .configureContactSettingsAsync(registration, contactSettings, updateMask) - .get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurecontactsettings/SyncConfigureContactSettingsStringContactsettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurecontactsettings/SyncConfigureContactSettingsStringContactsettingsFieldmask.java deleted file mode 100644 index 557b10bf..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurecontactsettings/SyncConfigureContactSettingsStringContactsettingsFieldmask.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync] -import com.google.cloud.domains.v1alpha2.ContactSettings; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureContactSettingsStringContactsettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureContactSettingsStringContactsettingsFieldmask(); - } - - public static void syncConfigureContactSettingsStringContactsettingsFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient - .configureContactSettingsAsync(registration, contactSettings, updateMask) - .get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurednssettings/AsyncConfigureDnsSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurednssettings/AsyncConfigureDnsSettings.java deleted file mode 100644 index 935ed1ce..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurednssettings/AsyncConfigureDnsSettings.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_configurednssettings_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1alpha2.DnsSettings; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.longrunning.Operation; -import com.google.protobuf.FieldMask; - -public class AsyncConfigureDnsSettings { - - public static void main(String[] args) throws Exception { - asyncConfigureDnsSettings(); - } - - public static void asyncConfigureDnsSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureDnsSettingsRequest request = - ConfigureDnsSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .setValidateOnly(true) - .build(); - ApiFuture future = - domainsClient.configureDnsSettingsCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_configurednssettings_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurednssettings/AsyncConfigureDnsSettingsLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurednssettings/AsyncConfigureDnsSettingsLRO.java deleted file mode 100644 index 6960bcec..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurednssettings/AsyncConfigureDnsSettingsLRO.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_configurednssettings_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1alpha2.DnsSettings; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.OperationMetadata; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.protobuf.FieldMask; - -public class AsyncConfigureDnsSettingsLRO { - - public static void main(String[] args) throws Exception { - asyncConfigureDnsSettingsLRO(); - } - - public static void asyncConfigureDnsSettingsLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureDnsSettingsRequest request = - ConfigureDnsSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .setValidateOnly(true) - .build(); - OperationFuture future = - domainsClient.configureDnsSettingsOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_configurednssettings_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurednssettings/SyncConfigureDnsSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurednssettings/SyncConfigureDnsSettings.java deleted file mode 100644 index a461e842..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurednssettings/SyncConfigureDnsSettings.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_configurednssettings_sync] -import com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1alpha2.DnsSettings; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureDnsSettings { - - public static void main(String[] args) throws Exception { - syncConfigureDnsSettings(); - } - - public static void syncConfigureDnsSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureDnsSettingsRequest request = - ConfigureDnsSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .setValidateOnly(true) - .build(); - Registration response = domainsClient.configureDnsSettingsAsync(request).get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_configurednssettings_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurednssettings/SyncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurednssettings/SyncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask.java deleted file mode 100644 index 86cc8522..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurednssettings/SyncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_configurednssettings_registrationnamednssettingsfieldmask_sync] -import com.google.cloud.domains.v1alpha2.DnsSettings; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask(); - } - - public static void syncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_configurednssettings_registrationnamednssettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurednssettings/SyncConfigureDnsSettingsStringDnssettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurednssettings/SyncConfigureDnsSettingsStringDnssettingsFieldmask.java deleted file mode 100644 index 3397e749..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configurednssettings/SyncConfigureDnsSettingsStringDnssettingsFieldmask.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_configurednssettings_stringdnssettingsfieldmask_sync] -import com.google.cloud.domains.v1alpha2.DnsSettings; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureDnsSettingsStringDnssettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureDnsSettingsStringDnssettingsFieldmask(); - } - - public static void syncConfigureDnsSettingsStringDnssettingsFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_configurednssettings_stringdnssettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettings.java deleted file mode 100644 index bdf855a0..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettings.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_configuremanagementsettings_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.ManagementSettings; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.longrunning.Operation; -import com.google.protobuf.FieldMask; - -public class AsyncConfigureManagementSettings { - - public static void main(String[] args) throws Exception { - asyncConfigureManagementSettings(); - } - - public static void asyncConfigureManagementSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureManagementSettingsRequest request = - ConfigureManagementSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = - domainsClient.configureManagementSettingsCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_configuremanagementsettings_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettingsLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettingsLRO.java deleted file mode 100644 index 043d127f..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettingsLRO.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_configuremanagementsettings_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.ManagementSettings; -import com.google.cloud.domains.v1alpha2.OperationMetadata; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.protobuf.FieldMask; - -public class AsyncConfigureManagementSettingsLRO { - - public static void main(String[] args) throws Exception { - asyncConfigureManagementSettingsLRO(); - } - - public static void asyncConfigureManagementSettingsLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureManagementSettingsRequest request = - ConfigureManagementSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - OperationFuture future = - domainsClient.configureManagementSettingsOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_configuremanagementsettings_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configuremanagementsettings/SyncConfigureManagementSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configuremanagementsettings/SyncConfigureManagementSettings.java deleted file mode 100644 index df161dc0..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configuremanagementsettings/SyncConfigureManagementSettings.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_configuremanagementsettings_sync] -import com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.ManagementSettings; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureManagementSettings { - - public static void main(String[] args) throws Exception { - syncConfigureManagementSettings(); - } - - public static void syncConfigureManagementSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureManagementSettingsRequest request = - ConfigureManagementSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Registration response = domainsClient.configureManagementSettingsAsync(request).get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_configuremanagementsettings_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask.java deleted file mode 100644 index 6704c4ba..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_configuremanagementsettings_registrationnamemanagementsettingsfieldmask_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.ManagementSettings; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask(); - } - - public static void syncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient - .configureManagementSettingsAsync(registration, managementSettings, updateMask) - .get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_configuremanagementsettings_registrationnamemanagementsettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsStringManagementsettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsStringManagementsettingsFieldmask.java deleted file mode 100644 index 9368ff36..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsStringManagementsettingsFieldmask.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_configuremanagementsettings_stringmanagementsettingsfieldmask_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.ManagementSettings; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureManagementSettingsStringManagementsettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureManagementSettingsStringManagementsettingsFieldmask(); - } - - public static void syncConfigureManagementSettingsStringManagementsettingsFieldmask() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient - .configureManagementSettingsAsync(registration, managementSettings, updateMask) - .get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_configuremanagementsettings_stringmanagementsettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index c33ca901..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_create_setcredentialsprovider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.DomainsSettings; -import com.google.cloud.domains.v1alpha2.myCredentials; - -public class SyncCreateSetCredentialsProvider { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider(); - } - - public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsSettings domainsSettings = - DomainsSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - DomainsClient domainsClient = DomainsClient.create(domainsSettings); - } -} -// [END domains_v1alpha2_generated_domainsclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2e5ee966..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_create_setcredentialsprovider1_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.DomainsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsSettings domainsSettings = - DomainsSettings.newBuilder() - .setTransportChannelProvider( - DomainsSettings.defaultHttpJsonTransportProviderBuilder().build()) - .build(); - DomainsClient domainsClient = DomainsClient.create(domainsSettings); - } -} -// [END domains_v1alpha2_generated_domainsclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/create/SyncCreateSetEndpoint.java deleted file mode 100644 index 56b2a809..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_create_setendpoint_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.DomainsSettings; -import com.google.cloud.domains.v1alpha2.myEndpoint; - -public class SyncCreateSetEndpoint { - - public static void main(String[] args) throws Exception { - syncCreateSetEndpoint(); - } - - public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsSettings domainsSettings = DomainsSettings.newBuilder().setEndpoint(myEndpoint).build(); - DomainsClient domainsClient = DomainsClient.create(domainsSettings); - } -} -// [END domains_v1alpha2_generated_domainsclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/deleteregistration/AsyncDeleteRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/deleteregistration/AsyncDeleteRegistration.java deleted file mode 100644 index b3468ed1..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/deleteregistration/AsyncDeleteRegistration.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_deleteregistration_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.longrunning.Operation; - -public class AsyncDeleteRegistration { - - public static void main(String[] args) throws Exception { - asyncDeleteRegistration(); - } - - public static void asyncDeleteRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - DeleteRegistrationRequest request = - DeleteRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - ApiFuture future = domainsClient.deleteRegistrationCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_deleteregistration_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/deleteregistration/AsyncDeleteRegistrationLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/deleteregistration/AsyncDeleteRegistrationLRO.java deleted file mode 100644 index 0051d4bb..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/deleteregistration/AsyncDeleteRegistrationLRO.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_deleteregistration_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.OperationMetadata; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.protobuf.Empty; - -public class AsyncDeleteRegistrationLRO { - - public static void main(String[] args) throws Exception { - asyncDeleteRegistrationLRO(); - } - - public static void asyncDeleteRegistrationLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - DeleteRegistrationRequest request = - DeleteRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - OperationFuture future = - domainsClient.deleteRegistrationOperationCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_deleteregistration_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/deleteregistration/SyncDeleteRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/deleteregistration/SyncDeleteRegistration.java deleted file mode 100644 index 2d75ea22..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/deleteregistration/SyncDeleteRegistration.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_deleteregistration_sync] -import com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.protobuf.Empty; - -public class SyncDeleteRegistration { - - public static void main(String[] args) throws Exception { - syncDeleteRegistration(); - } - - public static void syncDeleteRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - DeleteRegistrationRequest request = - DeleteRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - domainsClient.deleteRegistrationAsync(request).get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_deleteregistration_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/deleteregistration/SyncDeleteRegistrationRegistrationname.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/deleteregistration/SyncDeleteRegistrationRegistrationname.java deleted file mode 100644 index f717f3f6..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/deleteregistration/SyncDeleteRegistrationRegistrationname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_deleteregistration_registrationname_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.protobuf.Empty; - -public class SyncDeleteRegistrationRegistrationname { - - public static void main(String[] args) throws Exception { - syncDeleteRegistrationRegistrationname(); - } - - public static void syncDeleteRegistrationRegistrationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - domainsClient.deleteRegistrationAsync(name).get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_deleteregistration_registrationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/deleteregistration/SyncDeleteRegistrationString.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/deleteregistration/SyncDeleteRegistrationString.java deleted file mode 100644 index ac74a808..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/deleteregistration/SyncDeleteRegistrationString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_deleteregistration_string_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.protobuf.Empty; - -public class SyncDeleteRegistrationString { - - public static void main(String[] args) throws Exception { - syncDeleteRegistrationString(); - } - - public static void syncDeleteRegistrationString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - domainsClient.deleteRegistrationAsync(name).get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_deleteregistration_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/exportregistration/AsyncExportRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/exportregistration/AsyncExportRegistration.java deleted file mode 100644 index 7d359cda..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/exportregistration/AsyncExportRegistration.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_exportregistration_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.ExportRegistrationRequest; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.longrunning.Operation; - -public class AsyncExportRegistration { - - public static void main(String[] args) throws Exception { - asyncExportRegistration(); - } - - public static void asyncExportRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ExportRegistrationRequest request = - ExportRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - ApiFuture future = domainsClient.exportRegistrationCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_exportregistration_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/exportregistration/AsyncExportRegistrationLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/exportregistration/AsyncExportRegistrationLRO.java deleted file mode 100644 index e7634b4f..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/exportregistration/AsyncExportRegistrationLRO.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_exportregistration_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.ExportRegistrationRequest; -import com.google.cloud.domains.v1alpha2.OperationMetadata; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; - -public class AsyncExportRegistrationLRO { - - public static void main(String[] args) throws Exception { - asyncExportRegistrationLRO(); - } - - public static void asyncExportRegistrationLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ExportRegistrationRequest request = - ExportRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - OperationFuture future = - domainsClient.exportRegistrationOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_exportregistration_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/exportregistration/SyncExportRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/exportregistration/SyncExportRegistration.java deleted file mode 100644 index 98a726b3..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/exportregistration/SyncExportRegistration.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_exportregistration_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.ExportRegistrationRequest; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; - -public class SyncExportRegistration { - - public static void main(String[] args) throws Exception { - syncExportRegistration(); - } - - public static void syncExportRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ExportRegistrationRequest request = - ExportRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - Registration response = domainsClient.exportRegistrationAsync(request).get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_exportregistration_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/exportregistration/SyncExportRegistrationRegistrationname.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/exportregistration/SyncExportRegistrationRegistrationname.java deleted file mode 100644 index 591af5b7..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/exportregistration/SyncExportRegistrationRegistrationname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_exportregistration_registrationname_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; - -public class SyncExportRegistrationRegistrationname { - - public static void main(String[] args) throws Exception { - syncExportRegistrationRegistrationname(); - } - - public static void syncExportRegistrationRegistrationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - Registration response = domainsClient.exportRegistrationAsync(name).get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_exportregistration_registrationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/exportregistration/SyncExportRegistrationString.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/exportregistration/SyncExportRegistrationString.java deleted file mode 100644 index 32764856..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/exportregistration/SyncExportRegistrationString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_exportregistration_string_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; - -public class SyncExportRegistrationString { - - public static void main(String[] args) throws Exception { - syncExportRegistrationString(); - } - - public static void syncExportRegistrationString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - Registration response = domainsClient.exportRegistrationAsync(name).get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_exportregistration_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/getregistration/AsyncGetRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/getregistration/AsyncGetRegistration.java deleted file mode 100644 index 9fdb19e8..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/getregistration/AsyncGetRegistration.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_getregistration_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.GetRegistrationRequest; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; - -public class AsyncGetRegistration { - - public static void main(String[] args) throws Exception { - asyncGetRegistration(); - } - - public static void asyncGetRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - GetRegistrationRequest request = - GetRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - ApiFuture future = domainsClient.getRegistrationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_getregistration_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/getregistration/SyncGetRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/getregistration/SyncGetRegistration.java deleted file mode 100644 index 02496561..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/getregistration/SyncGetRegistration.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_getregistration_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.GetRegistrationRequest; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; - -public class SyncGetRegistration { - - public static void main(String[] args) throws Exception { - syncGetRegistration(); - } - - public static void syncGetRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - GetRegistrationRequest request = - GetRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - Registration response = domainsClient.getRegistration(request); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_getregistration_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/getregistration/SyncGetRegistrationRegistrationname.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/getregistration/SyncGetRegistrationRegistrationname.java deleted file mode 100644 index 925a1731..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/getregistration/SyncGetRegistrationRegistrationname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_getregistration_registrationname_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; - -public class SyncGetRegistrationRegistrationname { - - public static void main(String[] args) throws Exception { - syncGetRegistrationRegistrationname(); - } - - public static void syncGetRegistrationRegistrationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - Registration response = domainsClient.getRegistration(name); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_getregistration_registrationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/getregistration/SyncGetRegistrationString.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/getregistration/SyncGetRegistrationString.java deleted file mode 100644 index 364b9d94..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/getregistration/SyncGetRegistrationString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_getregistration_string_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.RegistrationName; - -public class SyncGetRegistrationString { - - public static void main(String[] args) throws Exception { - syncGetRegistrationString(); - } - - public static void syncGetRegistrationString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - Registration response = domainsClient.getRegistration(name); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_getregistration_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/listregistrations/AsyncListRegistrations.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/listregistrations/AsyncListRegistrations.java deleted file mode 100644 index 60d7d683..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/listregistrations/AsyncListRegistrations.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_listregistrations_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.ListRegistrationsRequest; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.Registration; - -public class AsyncListRegistrations { - - public static void main(String[] args) throws Exception { - asyncListRegistrations(); - } - - public static void asyncListRegistrations() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ListRegistrationsRequest request = - ListRegistrationsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - ApiFuture future = - domainsClient.listRegistrationsPagedCallable().futureCall(request); - // Do something. - for (Registration element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END domains_v1alpha2_generated_domainsclient_listregistrations_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/listregistrations/AsyncListRegistrationsPaged.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/listregistrations/AsyncListRegistrationsPaged.java deleted file mode 100644 index 19586ef1..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/listregistrations/AsyncListRegistrationsPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_listregistrations_paged_async] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.ListRegistrationsRequest; -import com.google.cloud.domains.v1alpha2.ListRegistrationsResponse; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.common.base.Strings; - -public class AsyncListRegistrationsPaged { - - public static void main(String[] args) throws Exception { - asyncListRegistrationsPaged(); - } - - public static void asyncListRegistrationsPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ListRegistrationsRequest request = - ListRegistrationsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - while (true) { - ListRegistrationsResponse response = - domainsClient.listRegistrationsCallable().call(request); - for (Registration element : response.getRegistrationsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END domains_v1alpha2_generated_domainsclient_listregistrations_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/listregistrations/SyncListRegistrations.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/listregistrations/SyncListRegistrations.java deleted file mode 100644 index 7820bb2d..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/listregistrations/SyncListRegistrations.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_listregistrations_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.ListRegistrationsRequest; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.Registration; - -public class SyncListRegistrations { - - public static void main(String[] args) throws Exception { - syncListRegistrations(); - } - - public static void syncListRegistrations() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ListRegistrationsRequest request = - ListRegistrationsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - for (Registration element : domainsClient.listRegistrations(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END domains_v1alpha2_generated_domainsclient_listregistrations_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/listregistrations/SyncListRegistrationsLocationname.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/listregistrations/SyncListRegistrationsLocationname.java deleted file mode 100644 index b9589b8c..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/listregistrations/SyncListRegistrationsLocationname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_listregistrations_locationname_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.Registration; - -public class SyncListRegistrationsLocationname { - - public static void main(String[] args) throws Exception { - syncListRegistrationsLocationname(); - } - - public static void syncListRegistrationsLocationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (Registration element : domainsClient.listRegistrations(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END domains_v1alpha2_generated_domainsclient_listregistrations_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/listregistrations/SyncListRegistrationsString.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/listregistrations/SyncListRegistrationsString.java deleted file mode 100644 index 777f971b..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/listregistrations/SyncListRegistrationsString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_listregistrations_string_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.Registration; - -public class SyncListRegistrationsString { - - public static void main(String[] args) throws Exception { - syncListRegistrationsString(); - } - - public static void syncListRegistrationsString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (Registration element : domainsClient.listRegistrations(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END domains_v1alpha2_generated_domainsclient_listregistrations_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/registerdomain/AsyncRegisterDomain.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/registerdomain/AsyncRegisterDomain.java deleted file mode 100644 index 67eca337..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/registerdomain/AsyncRegisterDomain.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_registerdomain_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1alpha2.ContactNotice; -import com.google.cloud.domains.v1alpha2.DomainNotice; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.RegisterDomainRequest; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.longrunning.Operation; -import com.google.type.Money; -import java.util.ArrayList; - -public class AsyncRegisterDomain { - - public static void main(String[] args) throws Exception { - asyncRegisterDomain(); - } - - public static void asyncRegisterDomain() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegisterDomainRequest request = - RegisterDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllDomainNotices(new ArrayList()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setValidateOnly(true) - .build(); - ApiFuture future = domainsClient.registerDomainCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_registerdomain_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/registerdomain/AsyncRegisterDomainLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/registerdomain/AsyncRegisterDomainLRO.java deleted file mode 100644 index 0050fb51..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/registerdomain/AsyncRegisterDomainLRO.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_registerdomain_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1alpha2.ContactNotice; -import com.google.cloud.domains.v1alpha2.DomainNotice; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.OperationMetadata; -import com.google.cloud.domains.v1alpha2.RegisterDomainRequest; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.type.Money; -import java.util.ArrayList; - -public class AsyncRegisterDomainLRO { - - public static void main(String[] args) throws Exception { - asyncRegisterDomainLRO(); - } - - public static void asyncRegisterDomainLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegisterDomainRequest request = - RegisterDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllDomainNotices(new ArrayList()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setValidateOnly(true) - .build(); - OperationFuture future = - domainsClient.registerDomainOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_registerdomain_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/registerdomain/SyncRegisterDomain.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/registerdomain/SyncRegisterDomain.java deleted file mode 100644 index d77a55d4..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/registerdomain/SyncRegisterDomain.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_registerdomain_sync] -import com.google.cloud.domains.v1alpha2.ContactNotice; -import com.google.cloud.domains.v1alpha2.DomainNotice; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.RegisterDomainRequest; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.type.Money; -import java.util.ArrayList; - -public class SyncRegisterDomain { - - public static void main(String[] args) throws Exception { - syncRegisterDomain(); - } - - public static void syncRegisterDomain() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegisterDomainRequest request = - RegisterDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllDomainNotices(new ArrayList()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setValidateOnly(true) - .build(); - Registration response = domainsClient.registerDomainAsync(request).get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_registerdomain_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/registerdomain/SyncRegisterDomainLocationnameRegistrationMoney.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/registerdomain/SyncRegisterDomainLocationnameRegistrationMoney.java deleted file mode 100644 index 47bfb6a7..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/registerdomain/SyncRegisterDomainLocationnameRegistrationMoney.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_registerdomain_locationnameregistrationmoney_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.type.Money; - -public class SyncRegisterDomainLocationnameRegistrationMoney { - - public static void main(String[] args) throws Exception { - syncRegisterDomainLocationnameRegistrationMoney(); - } - - public static void syncRegisterDomainLocationnameRegistrationMoney() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - Registration response = - domainsClient.registerDomainAsync(parent, registration, yearlyPrice).get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_registerdomain_locationnameregistrationmoney_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/registerdomain/SyncRegisterDomainStringRegistrationMoney.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/registerdomain/SyncRegisterDomainStringRegistrationMoney.java deleted file mode 100644 index 7c472ad2..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/registerdomain/SyncRegisterDomainStringRegistrationMoney.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_registerdomain_stringregistrationmoney_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.type.Money; - -public class SyncRegisterDomainStringRegistrationMoney { - - public static void main(String[] args) throws Exception { - syncRegisterDomainStringRegistrationMoney(); - } - - public static void syncRegisterDomainStringRegistrationMoney() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - Registration response = - domainsClient.registerDomainAsync(parent, registration, yearlyPrice).get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_registerdomain_stringregistrationmoney_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/resetauthorizationcode/AsyncResetAuthorizationCode.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/resetauthorizationcode/AsyncResetAuthorizationCode.java deleted file mode 100644 index d751c88b..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/resetauthorizationcode/AsyncResetAuthorizationCode.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_resetauthorizationcode_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1alpha2.AuthorizationCode; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest; - -public class AsyncResetAuthorizationCode { - - public static void main(String[] args) throws Exception { - asyncResetAuthorizationCode(); - } - - public static void asyncResetAuthorizationCode() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ResetAuthorizationCodeRequest request = - ResetAuthorizationCodeRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - ApiFuture future = - domainsClient.resetAuthorizationCodeCallable().futureCall(request); - // Do something. - AuthorizationCode response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_resetauthorizationcode_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/resetauthorizationcode/SyncResetAuthorizationCode.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/resetauthorizationcode/SyncResetAuthorizationCode.java deleted file mode 100644 index 7166ad6f..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/resetauthorizationcode/SyncResetAuthorizationCode.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_resetauthorizationcode_sync] -import com.google.cloud.domains.v1alpha2.AuthorizationCode; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest; - -public class SyncResetAuthorizationCode { - - public static void main(String[] args) throws Exception { - syncResetAuthorizationCode(); - } - - public static void syncResetAuthorizationCode() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ResetAuthorizationCodeRequest request = - ResetAuthorizationCodeRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - AuthorizationCode response = domainsClient.resetAuthorizationCode(request); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_resetauthorizationcode_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeRegistrationname.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeRegistrationname.java deleted file mode 100644 index d5f2afde..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeRegistrationname.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_resetauthorizationcode_registrationname_sync] -import com.google.cloud.domains.v1alpha2.AuthorizationCode; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.RegistrationName; - -public class SyncResetAuthorizationCodeRegistrationname { - - public static void main(String[] args) throws Exception { - syncResetAuthorizationCodeRegistrationname(); - } - - public static void syncResetAuthorizationCodeRegistrationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - AuthorizationCode response = domainsClient.resetAuthorizationCode(registration); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_resetauthorizationcode_registrationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeString.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeString.java deleted file mode 100644 index ee17b4d6..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_resetauthorizationcode_string_sync] -import com.google.cloud.domains.v1alpha2.AuthorizationCode; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.RegistrationName; - -public class SyncResetAuthorizationCodeString { - - public static void main(String[] args) throws Exception { - syncResetAuthorizationCodeString(); - } - - public static void syncResetAuthorizationCodeString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - AuthorizationCode response = domainsClient.resetAuthorizationCode(registration); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_resetauthorizationcode_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveauthorizationcode/AsyncRetrieveAuthorizationCode.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveauthorizationcode/AsyncRetrieveAuthorizationCode.java deleted file mode 100644 index eea06296..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveauthorizationcode/AsyncRetrieveAuthorizationCode.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_retrieveauthorizationcode_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1alpha2.AuthorizationCode; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest; - -public class AsyncRetrieveAuthorizationCode { - - public static void main(String[] args) throws Exception { - asyncRetrieveAuthorizationCode(); - } - - public static void asyncRetrieveAuthorizationCode() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveAuthorizationCodeRequest request = - RetrieveAuthorizationCodeRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - ApiFuture future = - domainsClient.retrieveAuthorizationCodeCallable().futureCall(request); - // Do something. - AuthorizationCode response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_retrieveauthorizationcode_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCode.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCode.java deleted file mode 100644 index 04710dbd..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCode.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_retrieveauthorizationcode_sync] -import com.google.cloud.domains.v1alpha2.AuthorizationCode; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.RegistrationName; -import com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest; - -public class SyncRetrieveAuthorizationCode { - - public static void main(String[] args) throws Exception { - syncRetrieveAuthorizationCode(); - } - - public static void syncRetrieveAuthorizationCode() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveAuthorizationCodeRequest request = - RetrieveAuthorizationCodeRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - AuthorizationCode response = domainsClient.retrieveAuthorizationCode(request); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_retrieveauthorizationcode_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeRegistrationname.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeRegistrationname.java deleted file mode 100644 index afd2c55e..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeRegistrationname.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_retrieveauthorizationcode_registrationname_sync] -import com.google.cloud.domains.v1alpha2.AuthorizationCode; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.RegistrationName; - -public class SyncRetrieveAuthorizationCodeRegistrationname { - - public static void main(String[] args) throws Exception { - syncRetrieveAuthorizationCodeRegistrationname(); - } - - public static void syncRetrieveAuthorizationCodeRegistrationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - AuthorizationCode response = domainsClient.retrieveAuthorizationCode(registration); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_retrieveauthorizationcode_registrationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeString.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeString.java deleted file mode 100644 index 1efd0202..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_retrieveauthorizationcode_string_sync] -import com.google.cloud.domains.v1alpha2.AuthorizationCode; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.RegistrationName; - -public class SyncRetrieveAuthorizationCodeString { - - public static void main(String[] args) throws Exception { - syncRetrieveAuthorizationCodeString(); - } - - public static void syncRetrieveAuthorizationCodeString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - AuthorizationCode response = domainsClient.retrieveAuthorizationCode(registration); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_retrieveauthorizationcode_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveregisterparameters/AsyncRetrieveRegisterParameters.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveregisterparameters/AsyncRetrieveRegisterParameters.java deleted file mode 100644 index d18bbf53..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveregisterparameters/AsyncRetrieveRegisterParameters.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_retrieveregisterparameters_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse; - -public class AsyncRetrieveRegisterParameters { - - public static void main(String[] args) throws Exception { - asyncRetrieveRegisterParameters(); - } - - public static void asyncRetrieveRegisterParameters() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveRegisterParametersRequest request = - RetrieveRegisterParametersRequest.newBuilder() - .setDomainName("domainName-1244085905") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - ApiFuture future = - domainsClient.retrieveRegisterParametersCallable().futureCall(request); - // Do something. - RetrieveRegisterParametersResponse response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_retrieveregisterparameters_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParameters.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParameters.java deleted file mode 100644 index b0d6fce9..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParameters.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_retrieveregisterparameters_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse; - -public class SyncRetrieveRegisterParameters { - - public static void main(String[] args) throws Exception { - syncRetrieveRegisterParameters(); - } - - public static void syncRetrieveRegisterParameters() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveRegisterParametersRequest request = - RetrieveRegisterParametersRequest.newBuilder() - .setDomainName("domainName-1244085905") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - RetrieveRegisterParametersResponse response = - domainsClient.retrieveRegisterParameters(request); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_retrieveregisterparameters_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersLocationnameString.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersLocationnameString.java deleted file mode 100644 index 919bb1a1..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersLocationnameString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_retrieveregisterparameters_locationnamestring_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse; - -public class SyncRetrieveRegisterParametersLocationnameString { - - public static void main(String[] args) throws Exception { - syncRetrieveRegisterParametersLocationnameString(); - } - - public static void syncRetrieveRegisterParametersLocationnameString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - RetrieveRegisterParametersResponse response = - domainsClient.retrieveRegisterParameters(location, domainName); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_retrieveregisterparameters_locationnamestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersStringString.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersStringString.java deleted file mode 100644 index a8c54d59..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersStringString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_retrieveregisterparameters_stringstring_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse; - -public class SyncRetrieveRegisterParametersStringString { - - public static void main(String[] args) throws Exception { - syncRetrieveRegisterParametersStringString(); - } - - public static void syncRetrieveRegisterParametersStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - String domainName = "domainName-1244085905"; - RetrieveRegisterParametersResponse response = - domainsClient.retrieveRegisterParameters(location, domainName); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_retrieveregisterparameters_stringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrievetransferparameters/AsyncRetrieveTransferParameters.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrievetransferparameters/AsyncRetrieveTransferParameters.java deleted file mode 100644 index 21af8f24..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrievetransferparameters/AsyncRetrieveTransferParameters.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_retrievetransferparameters_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse; - -public class AsyncRetrieveTransferParameters { - - public static void main(String[] args) throws Exception { - asyncRetrieveTransferParameters(); - } - - public static void asyncRetrieveTransferParameters() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveTransferParametersRequest request = - RetrieveTransferParametersRequest.newBuilder() - .setDomainName("domainName-1244085905") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - ApiFuture future = - domainsClient.retrieveTransferParametersCallable().futureCall(request); - // Do something. - RetrieveTransferParametersResponse response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_retrievetransferparameters_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrievetransferparameters/SyncRetrieveTransferParameters.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrievetransferparameters/SyncRetrieveTransferParameters.java deleted file mode 100644 index 637c89c5..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrievetransferparameters/SyncRetrieveTransferParameters.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_retrievetransferparameters_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse; - -public class SyncRetrieveTransferParameters { - - public static void main(String[] args) throws Exception { - syncRetrieveTransferParameters(); - } - - public static void syncRetrieveTransferParameters() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveTransferParametersRequest request = - RetrieveTransferParametersRequest.newBuilder() - .setDomainName("domainName-1244085905") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - RetrieveTransferParametersResponse response = - domainsClient.retrieveTransferParameters(request); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_retrievetransferparameters_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersLocationnameString.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersLocationnameString.java deleted file mode 100644 index 6ce183a0..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersLocationnameString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_retrievetransferparameters_locationnamestring_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse; - -public class SyncRetrieveTransferParametersLocationnameString { - - public static void main(String[] args) throws Exception { - syncRetrieveTransferParametersLocationnameString(); - } - - public static void syncRetrieveTransferParametersLocationnameString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - RetrieveTransferParametersResponse response = - domainsClient.retrieveTransferParameters(location, domainName); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_retrievetransferparameters_locationnamestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersStringString.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersStringString.java deleted file mode 100644 index 7d4a3af6..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersStringString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_retrievetransferparameters_stringstring_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse; - -public class SyncRetrieveTransferParametersStringString { - - public static void main(String[] args) throws Exception { - syncRetrieveTransferParametersStringString(); - } - - public static void syncRetrieveTransferParametersStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - String domainName = "domainName-1244085905"; - RetrieveTransferParametersResponse response = - domainsClient.retrieveTransferParameters(location, domainName); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_retrievetransferparameters_stringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/searchdomains/AsyncSearchDomains.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/searchdomains/AsyncSearchDomains.java deleted file mode 100644 index 00aa31c3..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/searchdomains/AsyncSearchDomains.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_searchdomains_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.SearchDomainsRequest; -import com.google.cloud.domains.v1alpha2.SearchDomainsResponse; - -public class AsyncSearchDomains { - - public static void main(String[] args) throws Exception { - asyncSearchDomains(); - } - - public static void asyncSearchDomains() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - SearchDomainsRequest request = - SearchDomainsRequest.newBuilder() - .setQuery("query107944136") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - ApiFuture future = - domainsClient.searchDomainsCallable().futureCall(request); - // Do something. - SearchDomainsResponse response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_searchdomains_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/searchdomains/SyncSearchDomains.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/searchdomains/SyncSearchDomains.java deleted file mode 100644 index 713d9c5b..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/searchdomains/SyncSearchDomains.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_searchdomains_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.SearchDomainsRequest; -import com.google.cloud.domains.v1alpha2.SearchDomainsResponse; - -public class SyncSearchDomains { - - public static void main(String[] args) throws Exception { - syncSearchDomains(); - } - - public static void syncSearchDomains() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - SearchDomainsRequest request = - SearchDomainsRequest.newBuilder() - .setQuery("query107944136") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - SearchDomainsResponse response = domainsClient.searchDomains(request); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_searchdomains_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/searchdomains/SyncSearchDomainsLocationnameString.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/searchdomains/SyncSearchDomainsLocationnameString.java deleted file mode 100644 index c82ae725..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/searchdomains/SyncSearchDomainsLocationnameString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_searchdomains_locationnamestring_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.SearchDomainsResponse; - -public class SyncSearchDomainsLocationnameString { - - public static void main(String[] args) throws Exception { - syncSearchDomainsLocationnameString(); - } - - public static void syncSearchDomainsLocationnameString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String query = "query107944136"; - SearchDomainsResponse response = domainsClient.searchDomains(location, query); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_searchdomains_locationnamestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/searchdomains/SyncSearchDomainsStringString.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/searchdomains/SyncSearchDomainsStringString.java deleted file mode 100644 index 97633675..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/searchdomains/SyncSearchDomainsStringString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_searchdomains_stringstring_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.SearchDomainsResponse; - -public class SyncSearchDomainsStringString { - - public static void main(String[] args) throws Exception { - syncSearchDomainsStringString(); - } - - public static void syncSearchDomainsStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - String query = "query107944136"; - SearchDomainsResponse response = domainsClient.searchDomains(location, query); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_searchdomains_stringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/transferdomain/AsyncTransferDomain.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/transferdomain/AsyncTransferDomain.java deleted file mode 100644 index b31e2f19..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/transferdomain/AsyncTransferDomain.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_transferdomain_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1alpha2.AuthorizationCode; -import com.google.cloud.domains.v1alpha2.ContactNotice; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.TransferDomainRequest; -import com.google.longrunning.Operation; -import com.google.type.Money; -import java.util.ArrayList; - -public class AsyncTransferDomain { - - public static void main(String[] args) throws Exception { - asyncTransferDomain(); - } - - public static void asyncTransferDomain() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - TransferDomainRequest request = - TransferDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setAuthorizationCode(AuthorizationCode.newBuilder().build()) - .setValidateOnly(true) - .build(); - ApiFuture future = domainsClient.transferDomainCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_transferdomain_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/transferdomain/AsyncTransferDomainLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/transferdomain/AsyncTransferDomainLRO.java deleted file mode 100644 index 0c598d2a..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/transferdomain/AsyncTransferDomainLRO.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_transferdomain_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1alpha2.AuthorizationCode; -import com.google.cloud.domains.v1alpha2.ContactNotice; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.OperationMetadata; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.TransferDomainRequest; -import com.google.type.Money; -import java.util.ArrayList; - -public class AsyncTransferDomainLRO { - - public static void main(String[] args) throws Exception { - asyncTransferDomainLRO(); - } - - public static void asyncTransferDomainLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - TransferDomainRequest request = - TransferDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setAuthorizationCode(AuthorizationCode.newBuilder().build()) - .setValidateOnly(true) - .build(); - OperationFuture future = - domainsClient.transferDomainOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_transferdomain_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/transferdomain/SyncTransferDomain.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/transferdomain/SyncTransferDomain.java deleted file mode 100644 index cb391a09..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/transferdomain/SyncTransferDomain.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_transferdomain_sync] -import com.google.cloud.domains.v1alpha2.AuthorizationCode; -import com.google.cloud.domains.v1alpha2.ContactNotice; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.TransferDomainRequest; -import com.google.type.Money; -import java.util.ArrayList; - -public class SyncTransferDomain { - - public static void main(String[] args) throws Exception { - syncTransferDomain(); - } - - public static void syncTransferDomain() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - TransferDomainRequest request = - TransferDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setAuthorizationCode(AuthorizationCode.newBuilder().build()) - .setValidateOnly(true) - .build(); - Registration response = domainsClient.transferDomainAsync(request).get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_transferdomain_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/transferdomain/SyncTransferDomainLocationnameRegistrationMoneyAuthorizationcode.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/transferdomain/SyncTransferDomainLocationnameRegistrationMoneyAuthorizationcode.java deleted file mode 100644 index 90018362..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/transferdomain/SyncTransferDomainLocationnameRegistrationMoneyAuthorizationcode.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_transferdomain_locationnameregistrationmoneyauthorizationcode_sync] -import com.google.cloud.domains.v1alpha2.AuthorizationCode; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.type.Money; - -public class SyncTransferDomainLocationnameRegistrationMoneyAuthorizationcode { - - public static void main(String[] args) throws Exception { - syncTransferDomainLocationnameRegistrationMoneyAuthorizationcode(); - } - - public static void syncTransferDomainLocationnameRegistrationMoneyAuthorizationcode() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - Registration response = - domainsClient - .transferDomainAsync(parent, registration, yearlyPrice, authorizationCode) - .get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_transferdomain_locationnameregistrationmoneyauthorizationcode_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/transferdomain/SyncTransferDomainStringRegistrationMoneyAuthorizationcode.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/transferdomain/SyncTransferDomainStringRegistrationMoneyAuthorizationcode.java deleted file mode 100644 index 6339395e..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/transferdomain/SyncTransferDomainStringRegistrationMoneyAuthorizationcode.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_transferdomain_stringregistrationmoneyauthorizationcode_sync] -import com.google.cloud.domains.v1alpha2.AuthorizationCode; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.LocationName; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.type.Money; - -public class SyncTransferDomainStringRegistrationMoneyAuthorizationcode { - - public static void main(String[] args) throws Exception { - syncTransferDomainStringRegistrationMoneyAuthorizationcode(); - } - - public static void syncTransferDomainStringRegistrationMoneyAuthorizationcode() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - Registration response = - domainsClient - .transferDomainAsync(parent, registration, yearlyPrice, authorizationCode) - .get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_transferdomain_stringregistrationmoneyauthorizationcode_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/updateregistration/AsyncUpdateRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/updateregistration/AsyncUpdateRegistration.java deleted file mode 100644 index 8f7abad6..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/updateregistration/AsyncUpdateRegistration.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_updateregistration_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateRegistration { - - public static void main(String[] args) throws Exception { - asyncUpdateRegistration(); - } - - public static void asyncUpdateRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - UpdateRegistrationRequest request = - UpdateRegistrationRequest.newBuilder() - .setRegistration(Registration.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = domainsClient.updateRegistrationCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_updateregistration_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/updateregistration/AsyncUpdateRegistrationLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/updateregistration/AsyncUpdateRegistrationLRO.java deleted file mode 100644 index 5c82434e..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/updateregistration/AsyncUpdateRegistrationLRO.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_updateregistration_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.OperationMetadata; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateRegistrationLRO { - - public static void main(String[] args) throws Exception { - asyncUpdateRegistrationLRO(); - } - - public static void asyncUpdateRegistrationLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - UpdateRegistrationRequest request = - UpdateRegistrationRequest.newBuilder() - .setRegistration(Registration.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - OperationFuture future = - domainsClient.updateRegistrationOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_updateregistration_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/updateregistration/SyncUpdateRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/updateregistration/SyncUpdateRegistration.java deleted file mode 100644 index bef189a9..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/updateregistration/SyncUpdateRegistration.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_updateregistration_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateRegistration { - - public static void main(String[] args) throws Exception { - syncUpdateRegistration(); - } - - public static void syncUpdateRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - UpdateRegistrationRequest request = - UpdateRegistrationRequest.newBuilder() - .setRegistration(Registration.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Registration response = domainsClient.updateRegistrationAsync(request).get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_updateregistration_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/updateregistration/SyncUpdateRegistrationRegistrationFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/updateregistration/SyncUpdateRegistrationRegistrationFieldmask.java deleted file mode 100644 index a279f918..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainsclient/updateregistration/SyncUpdateRegistrationRegistrationFieldmask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainsclient_updateregistration_registrationfieldmask_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.Registration; -import com.google.protobuf.FieldMask; - -public class SyncUpdateRegistrationRegistrationFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateRegistrationRegistrationFieldmask(); - } - - public static void syncUpdateRegistrationRegistrationFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - Registration registration = Registration.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = domainsClient.updateRegistrationAsync(registration, updateMask).get(); - } - } -} -// [END domains_v1alpha2_generated_domainsclient_updateregistration_registrationfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainssettings/searchdomains/SyncSearchDomains.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainssettings/searchdomains/SyncSearchDomains.java deleted file mode 100644 index af2ab7c3..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domainssettings/searchdomains/SyncSearchDomains.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_domainssettings_searchdomains_sync] -import com.google.cloud.domains.v1alpha2.DomainsSettings; -import java.time.Duration; - -public class SyncSearchDomains { - - public static void main(String[] args) throws Exception { - syncSearchDomains(); - } - - public static void syncSearchDomains() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsSettings.Builder domainsSettingsBuilder = DomainsSettings.newBuilder(); - domainsSettingsBuilder - .searchDomainsSettings() - .setRetrySettings( - domainsSettingsBuilder.searchDomainsSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - DomainsSettings domainsSettings = domainsSettingsBuilder.build(); - } -} -// [END domains_v1alpha2_generated_domainssettings_searchdomains_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/stub/domainsstubsettings/searchdomains/SyncSearchDomains.java b/samples/snippets/generated/com/google/cloud/domains/v1alpha2/stub/domainsstubsettings/searchdomains/SyncSearchDomains.java deleted file mode 100644 index 1ab16dfa..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1alpha2/stub/domainsstubsettings/searchdomains/SyncSearchDomains.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.stub.samples; - -// [START domains_v1alpha2_generated_domainsstubsettings_searchdomains_sync] -import com.google.cloud.domains.v1alpha2.stub.DomainsStubSettings; -import java.time.Duration; - -public class SyncSearchDomains { - - public static void main(String[] args) throws Exception { - syncSearchDomains(); - } - - public static void syncSearchDomains() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsStubSettings.Builder domainsSettingsBuilder = DomainsStubSettings.newBuilder(); - domainsSettingsBuilder - .searchDomainsSettings() - .setRetrySettings( - domainsSettingsBuilder.searchDomainsSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - DomainsStubSettings domainsSettings = domainsSettingsBuilder.build(); - } -} -// [END domains_v1alpha2_generated_domainsstubsettings_searchdomains_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurecontactsettings/AsyncConfigureContactSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurecontactsettings/AsyncConfigureContactSettings.java deleted file mode 100644 index 30febea2..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurecontactsettings/AsyncConfigureContactSettings.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_configurecontactsettings_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1beta1.ContactNotice; -import com.google.cloud.domains.v1beta1.ContactSettings; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.longrunning.Operation; -import com.google.protobuf.FieldMask; -import java.util.ArrayList; - -public class AsyncConfigureContactSettings { - - public static void main(String[] args) throws Exception { - asyncConfigureContactSettings(); - } - - public static void asyncConfigureContactSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureContactSettingsRequest request = - ConfigureContactSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setValidateOnly(true) - .build(); - ApiFuture future = - domainsClient.configureContactSettingsCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_configurecontactsettings_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurecontactsettings/AsyncConfigureContactSettingsLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurecontactsettings/AsyncConfigureContactSettingsLRO.java deleted file mode 100644 index 03d8178f..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurecontactsettings/AsyncConfigureContactSettingsLRO.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_configurecontactsettings_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1beta1.ContactNotice; -import com.google.cloud.domains.v1beta1.ContactSettings; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.OperationMetadata; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.protobuf.FieldMask; -import java.util.ArrayList; - -public class AsyncConfigureContactSettingsLRO { - - public static void main(String[] args) throws Exception { - asyncConfigureContactSettingsLRO(); - } - - public static void asyncConfigureContactSettingsLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureContactSettingsRequest request = - ConfigureContactSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setValidateOnly(true) - .build(); - OperationFuture future = - domainsClient.configureContactSettingsOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_configurecontactsettings_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurecontactsettings/SyncConfigureContactSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurecontactsettings/SyncConfigureContactSettings.java deleted file mode 100644 index 59e652fa..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurecontactsettings/SyncConfigureContactSettings.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_configurecontactsettings_sync] -import com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest; -import com.google.cloud.domains.v1beta1.ContactNotice; -import com.google.cloud.domains.v1beta1.ContactSettings; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.protobuf.FieldMask; -import java.util.ArrayList; - -public class SyncConfigureContactSettings { - - public static void main(String[] args) throws Exception { - syncConfigureContactSettings(); - } - - public static void syncConfigureContactSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureContactSettingsRequest request = - ConfigureContactSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setContactSettings(ContactSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setValidateOnly(true) - .build(); - Registration response = domainsClient.configureContactSettingsAsync(request).get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_configurecontactsettings_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurecontactsettings/SyncConfigureContactSettingsRegistrationnameContactsettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurecontactsettings/SyncConfigureContactSettingsRegistrationnameContactsettingsFieldmask.java deleted file mode 100644 index 90296934..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurecontactsettings/SyncConfigureContactSettingsRegistrationnameContactsettingsFieldmask.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync] -import com.google.cloud.domains.v1beta1.ContactSettings; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureContactSettingsRegistrationnameContactsettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureContactSettingsRegistrationnameContactsettingsFieldmask(); - } - - public static void syncConfigureContactSettingsRegistrationnameContactsettingsFieldmask() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient - .configureContactSettingsAsync(registration, contactSettings, updateMask) - .get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_configurecontactsettings_registrationnamecontactsettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurecontactsettings/SyncConfigureContactSettingsStringContactsettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurecontactsettings/SyncConfigureContactSettingsStringContactsettingsFieldmask.java deleted file mode 100644 index ff937276..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurecontactsettings/SyncConfigureContactSettingsStringContactsettingsFieldmask.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync] -import com.google.cloud.domains.v1beta1.ContactSettings; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureContactSettingsStringContactsettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureContactSettingsStringContactsettingsFieldmask(); - } - - public static void syncConfigureContactSettingsStringContactsettingsFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - ContactSettings contactSettings = ContactSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient - .configureContactSettingsAsync(registration, contactSettings, updateMask) - .get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_configurecontactsettings_stringcontactsettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurednssettings/AsyncConfigureDnsSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurednssettings/AsyncConfigureDnsSettings.java deleted file mode 100644 index b6b809d5..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurednssettings/AsyncConfigureDnsSettings.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_configurednssettings_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1beta1.DnsSettings; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.longrunning.Operation; -import com.google.protobuf.FieldMask; - -public class AsyncConfigureDnsSettings { - - public static void main(String[] args) throws Exception { - asyncConfigureDnsSettings(); - } - - public static void asyncConfigureDnsSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureDnsSettingsRequest request = - ConfigureDnsSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .setValidateOnly(true) - .build(); - ApiFuture future = - domainsClient.configureDnsSettingsCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_configurednssettings_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurednssettings/AsyncConfigureDnsSettingsLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurednssettings/AsyncConfigureDnsSettingsLRO.java deleted file mode 100644 index a0e00a96..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurednssettings/AsyncConfigureDnsSettingsLRO.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_configurednssettings_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1beta1.DnsSettings; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.OperationMetadata; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class AsyncConfigureDnsSettingsLRO { - - public static void main(String[] args) throws Exception { - asyncConfigureDnsSettingsLRO(); - } - - public static void asyncConfigureDnsSettingsLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureDnsSettingsRequest request = - ConfigureDnsSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .setValidateOnly(true) - .build(); - OperationFuture future = - domainsClient.configureDnsSettingsOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_configurednssettings_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurednssettings/SyncConfigureDnsSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurednssettings/SyncConfigureDnsSettings.java deleted file mode 100644 index 9729dc8d..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurednssettings/SyncConfigureDnsSettings.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_configurednssettings_sync] -import com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest; -import com.google.cloud.domains.v1beta1.DnsSettings; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureDnsSettings { - - public static void main(String[] args) throws Exception { - syncConfigureDnsSettings(); - } - - public static void syncConfigureDnsSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureDnsSettingsRequest request = - ConfigureDnsSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setDnsSettings(DnsSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .setValidateOnly(true) - .build(); - Registration response = domainsClient.configureDnsSettingsAsync(request).get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_configurednssettings_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurednssettings/SyncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurednssettings/SyncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask.java deleted file mode 100644 index c06d6e26..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurednssettings/SyncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_configurednssettings_registrationnamednssettingsfieldmask_sync] -import com.google.cloud.domains.v1beta1.DnsSettings; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask(); - } - - public static void syncConfigureDnsSettingsRegistrationnameDnssettingsFieldmask() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_configurednssettings_registrationnamednssettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurednssettings/SyncConfigureDnsSettingsStringDnssettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurednssettings/SyncConfigureDnsSettingsStringDnssettingsFieldmask.java deleted file mode 100644 index bee96837..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configurednssettings/SyncConfigureDnsSettingsStringDnssettingsFieldmask.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_configurednssettings_stringdnssettingsfieldmask_sync] -import com.google.cloud.domains.v1beta1.DnsSettings; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureDnsSettingsStringDnssettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureDnsSettingsStringDnssettingsFieldmask(); - } - - public static void syncConfigureDnsSettingsStringDnssettingsFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - DnsSettings dnsSettings = DnsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient.configureDnsSettingsAsync(registration, dnsSettings, updateMask).get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_configurednssettings_stringdnssettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettings.java deleted file mode 100644 index 5047b4b9..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettings.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_configuremanagementsettings_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.ManagementSettings; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.longrunning.Operation; -import com.google.protobuf.FieldMask; - -public class AsyncConfigureManagementSettings { - - public static void main(String[] args) throws Exception { - asyncConfigureManagementSettings(); - } - - public static void asyncConfigureManagementSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureManagementSettingsRequest request = - ConfigureManagementSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = - domainsClient.configureManagementSettingsCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_configuremanagementsettings_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettingsLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettingsLRO.java deleted file mode 100644 index c0053c68..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configuremanagementsettings/AsyncConfigureManagementSettingsLRO.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_configuremanagementsettings_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.ManagementSettings; -import com.google.cloud.domains.v1beta1.OperationMetadata; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class AsyncConfigureManagementSettingsLRO { - - public static void main(String[] args) throws Exception { - asyncConfigureManagementSettingsLRO(); - } - - public static void asyncConfigureManagementSettingsLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureManagementSettingsRequest request = - ConfigureManagementSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - OperationFuture future = - domainsClient.configureManagementSettingsOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_configuremanagementsettings_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettings.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettings.java deleted file mode 100644 index cff56b57..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettings.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_configuremanagementsettings_sync] -import com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.ManagementSettings; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureManagementSettings { - - public static void main(String[] args) throws Exception { - syncConfigureManagementSettings(); - } - - public static void syncConfigureManagementSettings() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ConfigureManagementSettingsRequest request = - ConfigureManagementSettingsRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .setManagementSettings(ManagementSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Registration response = domainsClient.configureManagementSettingsAsync(request).get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_configuremanagementsettings_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask.java deleted file mode 100644 index 1c45c09d..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_configuremanagementsettings_registrationnamemanagementsettingsfieldmask_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.ManagementSettings; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask(); - } - - public static void syncConfigureManagementSettingsRegistrationnameManagementsettingsFieldmask() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient - .configureManagementSettingsAsync(registration, managementSettings, updateMask) - .get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_configuremanagementsettings_registrationnamemanagementsettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsStringManagementsettingsFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsStringManagementsettingsFieldmask.java deleted file mode 100644 index f4496a7b..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/configuremanagementsettings/SyncConfigureManagementSettingsStringManagementsettingsFieldmask.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_configuremanagementsettings_stringmanagementsettingsfieldmask_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.ManagementSettings; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.protobuf.FieldMask; - -public class SyncConfigureManagementSettingsStringManagementsettingsFieldmask { - - public static void main(String[] args) throws Exception { - syncConfigureManagementSettingsStringManagementsettingsFieldmask(); - } - - public static void syncConfigureManagementSettingsStringManagementsettingsFieldmask() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - ManagementSettings managementSettings = ManagementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = - domainsClient - .configureManagementSettingsAsync(registration, managementSettings, updateMask) - .get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_configuremanagementsettings_stringmanagementsettingsfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 126f9ba0..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_create_setcredentialsprovider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.DomainsSettings; -import com.google.cloud.domains.v1beta1.myCredentials; - -public class SyncCreateSetCredentialsProvider { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider(); - } - - public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsSettings domainsSettings = - DomainsSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - DomainsClient domainsClient = DomainsClient.create(domainsSettings); - } -} -// [END domains_v1beta1_generated_domainsclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 781bb9a7..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_create_setcredentialsprovider1_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.DomainsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsSettings domainsSettings = - DomainsSettings.newBuilder() - .setTransportChannelProvider( - DomainsSettings.defaultHttpJsonTransportProviderBuilder().build()) - .build(); - DomainsClient domainsClient = DomainsClient.create(domainsSettings); - } -} -// [END domains_v1beta1_generated_domainsclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/create/SyncCreateSetEndpoint.java deleted file mode 100644 index cea4fc30..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_create_setendpoint_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.DomainsSettings; -import com.google.cloud.domains.v1beta1.myEndpoint; - -public class SyncCreateSetEndpoint { - - public static void main(String[] args) throws Exception { - syncCreateSetEndpoint(); - } - - public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsSettings domainsSettings = DomainsSettings.newBuilder().setEndpoint(myEndpoint).build(); - DomainsClient domainsClient = DomainsClient.create(domainsSettings); - } -} -// [END domains_v1beta1_generated_domainsclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/deleteregistration/AsyncDeleteRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/deleteregistration/AsyncDeleteRegistration.java deleted file mode 100644 index 1ca3d24a..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/deleteregistration/AsyncDeleteRegistration.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_deleteregistration_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1beta1.DeleteRegistrationRequest; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.longrunning.Operation; - -public class AsyncDeleteRegistration { - - public static void main(String[] args) throws Exception { - asyncDeleteRegistration(); - } - - public static void asyncDeleteRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - DeleteRegistrationRequest request = - DeleteRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - ApiFuture future = domainsClient.deleteRegistrationCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_deleteregistration_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/deleteregistration/AsyncDeleteRegistrationLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/deleteregistration/AsyncDeleteRegistrationLRO.java deleted file mode 100644 index de8eb2e2..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/deleteregistration/AsyncDeleteRegistrationLRO.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_deleteregistration_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1beta1.DeleteRegistrationRequest; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.OperationMetadata; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.protobuf.Empty; - -public class AsyncDeleteRegistrationLRO { - - public static void main(String[] args) throws Exception { - asyncDeleteRegistrationLRO(); - } - - public static void asyncDeleteRegistrationLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - DeleteRegistrationRequest request = - DeleteRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - OperationFuture future = - domainsClient.deleteRegistrationOperationCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_deleteregistration_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/deleteregistration/SyncDeleteRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/deleteregistration/SyncDeleteRegistration.java deleted file mode 100644 index b3c7dbf5..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/deleteregistration/SyncDeleteRegistration.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_deleteregistration_sync] -import com.google.cloud.domains.v1beta1.DeleteRegistrationRequest; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.protobuf.Empty; - -public class SyncDeleteRegistration { - - public static void main(String[] args) throws Exception { - syncDeleteRegistration(); - } - - public static void syncDeleteRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - DeleteRegistrationRequest request = - DeleteRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - domainsClient.deleteRegistrationAsync(request).get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_deleteregistration_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/deleteregistration/SyncDeleteRegistrationRegistrationname.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/deleteregistration/SyncDeleteRegistrationRegistrationname.java deleted file mode 100644 index c60d317e..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/deleteregistration/SyncDeleteRegistrationRegistrationname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_deleteregistration_registrationname_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.protobuf.Empty; - -public class SyncDeleteRegistrationRegistrationname { - - public static void main(String[] args) throws Exception { - syncDeleteRegistrationRegistrationname(); - } - - public static void syncDeleteRegistrationRegistrationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - domainsClient.deleteRegistrationAsync(name).get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_deleteregistration_registrationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/deleteregistration/SyncDeleteRegistrationString.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/deleteregistration/SyncDeleteRegistrationString.java deleted file mode 100644 index ecb1af44..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/deleteregistration/SyncDeleteRegistrationString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_deleteregistration_string_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.protobuf.Empty; - -public class SyncDeleteRegistrationString { - - public static void main(String[] args) throws Exception { - syncDeleteRegistrationString(); - } - - public static void syncDeleteRegistrationString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - domainsClient.deleteRegistrationAsync(name).get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_deleteregistration_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/exportregistration/AsyncExportRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/exportregistration/AsyncExportRegistration.java deleted file mode 100644 index cca1ef26..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/exportregistration/AsyncExportRegistration.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_exportregistration_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.ExportRegistrationRequest; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.longrunning.Operation; - -public class AsyncExportRegistration { - - public static void main(String[] args) throws Exception { - asyncExportRegistration(); - } - - public static void asyncExportRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ExportRegistrationRequest request = - ExportRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - ApiFuture future = domainsClient.exportRegistrationCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_exportregistration_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/exportregistration/AsyncExportRegistrationLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/exportregistration/AsyncExportRegistrationLRO.java deleted file mode 100644 index 435ba35b..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/exportregistration/AsyncExportRegistrationLRO.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_exportregistration_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.ExportRegistrationRequest; -import com.google.cloud.domains.v1beta1.OperationMetadata; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; - -public class AsyncExportRegistrationLRO { - - public static void main(String[] args) throws Exception { - asyncExportRegistrationLRO(); - } - - public static void asyncExportRegistrationLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ExportRegistrationRequest request = - ExportRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - OperationFuture future = - domainsClient.exportRegistrationOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_exportregistration_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/exportregistration/SyncExportRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/exportregistration/SyncExportRegistration.java deleted file mode 100644 index ba549261..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/exportregistration/SyncExportRegistration.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_exportregistration_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.ExportRegistrationRequest; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; - -public class SyncExportRegistration { - - public static void main(String[] args) throws Exception { - syncExportRegistration(); - } - - public static void syncExportRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ExportRegistrationRequest request = - ExportRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - Registration response = domainsClient.exportRegistrationAsync(request).get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_exportregistration_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/exportregistration/SyncExportRegistrationRegistrationname.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/exportregistration/SyncExportRegistrationRegistrationname.java deleted file mode 100644 index 3592a8aa..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/exportregistration/SyncExportRegistrationRegistrationname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_exportregistration_registrationname_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; - -public class SyncExportRegistrationRegistrationname { - - public static void main(String[] args) throws Exception { - syncExportRegistrationRegistrationname(); - } - - public static void syncExportRegistrationRegistrationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - Registration response = domainsClient.exportRegistrationAsync(name).get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_exportregistration_registrationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/exportregistration/SyncExportRegistrationString.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/exportregistration/SyncExportRegistrationString.java deleted file mode 100644 index 899f2dfb..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/exportregistration/SyncExportRegistrationString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_exportregistration_string_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; - -public class SyncExportRegistrationString { - - public static void main(String[] args) throws Exception { - syncExportRegistrationString(); - } - - public static void syncExportRegistrationString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - Registration response = domainsClient.exportRegistrationAsync(name).get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_exportregistration_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/getregistration/AsyncGetRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/getregistration/AsyncGetRegistration.java deleted file mode 100644 index f4539b5a..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/getregistration/AsyncGetRegistration.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_getregistration_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.GetRegistrationRequest; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; - -public class AsyncGetRegistration { - - public static void main(String[] args) throws Exception { - asyncGetRegistration(); - } - - public static void asyncGetRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - GetRegistrationRequest request = - GetRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - ApiFuture future = domainsClient.getRegistrationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_getregistration_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/getregistration/SyncGetRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/getregistration/SyncGetRegistration.java deleted file mode 100644 index 0da1f00e..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/getregistration/SyncGetRegistration.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_getregistration_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.GetRegistrationRequest; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; - -public class SyncGetRegistration { - - public static void main(String[] args) throws Exception { - syncGetRegistration(); - } - - public static void syncGetRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - GetRegistrationRequest request = - GetRegistrationRequest.newBuilder() - .setName(RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - Registration response = domainsClient.getRegistration(request); - } - } -} -// [END domains_v1beta1_generated_domainsclient_getregistration_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/getregistration/SyncGetRegistrationRegistrationname.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/getregistration/SyncGetRegistrationRegistrationname.java deleted file mode 100644 index cc7db012..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/getregistration/SyncGetRegistrationRegistrationname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_getregistration_registrationname_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; - -public class SyncGetRegistrationRegistrationname { - - public static void main(String[] args) throws Exception { - syncGetRegistrationRegistrationname(); - } - - public static void syncGetRegistrationRegistrationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - Registration response = domainsClient.getRegistration(name); - } - } -} -// [END domains_v1beta1_generated_domainsclient_getregistration_registrationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/getregistration/SyncGetRegistrationString.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/getregistration/SyncGetRegistrationString.java deleted file mode 100644 index 440ee1f0..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/getregistration/SyncGetRegistrationString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_getregistration_string_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.RegistrationName; - -public class SyncGetRegistrationString { - - public static void main(String[] args) throws Exception { - syncGetRegistrationString(); - } - - public static void syncGetRegistrationString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - Registration response = domainsClient.getRegistration(name); - } - } -} -// [END domains_v1beta1_generated_domainsclient_getregistration_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/listregistrations/AsyncListRegistrations.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/listregistrations/AsyncListRegistrations.java deleted file mode 100644 index 60144e91..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/listregistrations/AsyncListRegistrations.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_listregistrations_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.ListRegistrationsRequest; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.Registration; - -public class AsyncListRegistrations { - - public static void main(String[] args) throws Exception { - asyncListRegistrations(); - } - - public static void asyncListRegistrations() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ListRegistrationsRequest request = - ListRegistrationsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - ApiFuture future = - domainsClient.listRegistrationsPagedCallable().futureCall(request); - // Do something. - for (Registration element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END domains_v1beta1_generated_domainsclient_listregistrations_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/listregistrations/AsyncListRegistrationsPaged.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/listregistrations/AsyncListRegistrationsPaged.java deleted file mode 100644 index 8e6229b0..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/listregistrations/AsyncListRegistrationsPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_listregistrations_paged_async] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.ListRegistrationsRequest; -import com.google.cloud.domains.v1beta1.ListRegistrationsResponse; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.common.base.Strings; - -public class AsyncListRegistrationsPaged { - - public static void main(String[] args) throws Exception { - asyncListRegistrationsPaged(); - } - - public static void asyncListRegistrationsPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ListRegistrationsRequest request = - ListRegistrationsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - while (true) { - ListRegistrationsResponse response = - domainsClient.listRegistrationsCallable().call(request); - for (Registration element : response.getRegistrationsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END domains_v1beta1_generated_domainsclient_listregistrations_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/listregistrations/SyncListRegistrations.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/listregistrations/SyncListRegistrations.java deleted file mode 100644 index b3853a5a..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/listregistrations/SyncListRegistrations.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_listregistrations_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.ListRegistrationsRequest; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.Registration; - -public class SyncListRegistrations { - - public static void main(String[] args) throws Exception { - syncListRegistrations(); - } - - public static void syncListRegistrations() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ListRegistrationsRequest request = - ListRegistrationsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - for (Registration element : domainsClient.listRegistrations(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END domains_v1beta1_generated_domainsclient_listregistrations_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/listregistrations/SyncListRegistrationsLocationname.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/listregistrations/SyncListRegistrationsLocationname.java deleted file mode 100644 index 723a6164..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/listregistrations/SyncListRegistrationsLocationname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_listregistrations_locationname_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.Registration; - -public class SyncListRegistrationsLocationname { - - public static void main(String[] args) throws Exception { - syncListRegistrationsLocationname(); - } - - public static void syncListRegistrationsLocationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (Registration element : domainsClient.listRegistrations(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END domains_v1beta1_generated_domainsclient_listregistrations_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/listregistrations/SyncListRegistrationsString.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/listregistrations/SyncListRegistrationsString.java deleted file mode 100644 index 8ad0109e..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/listregistrations/SyncListRegistrationsString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_listregistrations_string_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.Registration; - -public class SyncListRegistrationsString { - - public static void main(String[] args) throws Exception { - syncListRegistrationsString(); - } - - public static void syncListRegistrationsString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (Registration element : domainsClient.listRegistrations(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END domains_v1beta1_generated_domainsclient_listregistrations_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/registerdomain/AsyncRegisterDomain.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/registerdomain/AsyncRegisterDomain.java deleted file mode 100644 index a65fe82b..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/registerdomain/AsyncRegisterDomain.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_registerdomain_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1beta1.ContactNotice; -import com.google.cloud.domains.v1beta1.DomainNotice; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.RegisterDomainRequest; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.longrunning.Operation; -import com.google.type.Money; -import java.util.ArrayList; - -public class AsyncRegisterDomain { - - public static void main(String[] args) throws Exception { - asyncRegisterDomain(); - } - - public static void asyncRegisterDomain() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegisterDomainRequest request = - RegisterDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllDomainNotices(new ArrayList()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setValidateOnly(true) - .build(); - ApiFuture future = domainsClient.registerDomainCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_registerdomain_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/registerdomain/AsyncRegisterDomainLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/registerdomain/AsyncRegisterDomainLRO.java deleted file mode 100644 index 470934a4..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/registerdomain/AsyncRegisterDomainLRO.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_registerdomain_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1beta1.ContactNotice; -import com.google.cloud.domains.v1beta1.DomainNotice; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.OperationMetadata; -import com.google.cloud.domains.v1beta1.RegisterDomainRequest; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.type.Money; -import java.util.ArrayList; - -public class AsyncRegisterDomainLRO { - - public static void main(String[] args) throws Exception { - asyncRegisterDomainLRO(); - } - - public static void asyncRegisterDomainLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegisterDomainRequest request = - RegisterDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllDomainNotices(new ArrayList()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setValidateOnly(true) - .build(); - OperationFuture future = - domainsClient.registerDomainOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_registerdomain_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/registerdomain/SyncRegisterDomain.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/registerdomain/SyncRegisterDomain.java deleted file mode 100644 index 4bc45190..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/registerdomain/SyncRegisterDomain.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_registerdomain_sync] -import com.google.cloud.domains.v1beta1.ContactNotice; -import com.google.cloud.domains.v1beta1.DomainNotice; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.RegisterDomainRequest; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.type.Money; -import java.util.ArrayList; - -public class SyncRegisterDomain { - - public static void main(String[] args) throws Exception { - syncRegisterDomain(); - } - - public static void syncRegisterDomain() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegisterDomainRequest request = - RegisterDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllDomainNotices(new ArrayList()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setValidateOnly(true) - .build(); - Registration response = domainsClient.registerDomainAsync(request).get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_registerdomain_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/registerdomain/SyncRegisterDomainLocationnameRegistrationMoney.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/registerdomain/SyncRegisterDomainLocationnameRegistrationMoney.java deleted file mode 100644 index 6b577950..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/registerdomain/SyncRegisterDomainLocationnameRegistrationMoney.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_registerdomain_locationnameregistrationmoney_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.type.Money; - -public class SyncRegisterDomainLocationnameRegistrationMoney { - - public static void main(String[] args) throws Exception { - syncRegisterDomainLocationnameRegistrationMoney(); - } - - public static void syncRegisterDomainLocationnameRegistrationMoney() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - Registration response = - domainsClient.registerDomainAsync(parent, registration, yearlyPrice).get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_registerdomain_locationnameregistrationmoney_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/registerdomain/SyncRegisterDomainStringRegistrationMoney.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/registerdomain/SyncRegisterDomainStringRegistrationMoney.java deleted file mode 100644 index 5740c4f6..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/registerdomain/SyncRegisterDomainStringRegistrationMoney.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_registerdomain_stringregistrationmoney_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.type.Money; - -public class SyncRegisterDomainStringRegistrationMoney { - - public static void main(String[] args) throws Exception { - syncRegisterDomainStringRegistrationMoney(); - } - - public static void syncRegisterDomainStringRegistrationMoney() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - Registration response = - domainsClient.registerDomainAsync(parent, registration, yearlyPrice).get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_registerdomain_stringregistrationmoney_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/resetauthorizationcode/AsyncResetAuthorizationCode.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/resetauthorizationcode/AsyncResetAuthorizationCode.java deleted file mode 100644 index ff20d4b9..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/resetauthorizationcode/AsyncResetAuthorizationCode.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_resetauthorizationcode_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1beta1.AuthorizationCode; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest; - -public class AsyncResetAuthorizationCode { - - public static void main(String[] args) throws Exception { - asyncResetAuthorizationCode(); - } - - public static void asyncResetAuthorizationCode() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ResetAuthorizationCodeRequest request = - ResetAuthorizationCodeRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - ApiFuture future = - domainsClient.resetAuthorizationCodeCallable().futureCall(request); - // Do something. - AuthorizationCode response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_resetauthorizationcode_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCode.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCode.java deleted file mode 100644 index 7b647300..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCode.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_resetauthorizationcode_sync] -import com.google.cloud.domains.v1beta1.AuthorizationCode; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest; - -public class SyncResetAuthorizationCode { - - public static void main(String[] args) throws Exception { - syncResetAuthorizationCode(); - } - - public static void syncResetAuthorizationCode() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - ResetAuthorizationCodeRequest request = - ResetAuthorizationCodeRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - AuthorizationCode response = domainsClient.resetAuthorizationCode(request); - } - } -} -// [END domains_v1beta1_generated_domainsclient_resetauthorizationcode_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeRegistrationname.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeRegistrationname.java deleted file mode 100644 index 1fffee4a..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeRegistrationname.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_resetauthorizationcode_registrationname_sync] -import com.google.cloud.domains.v1beta1.AuthorizationCode; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.RegistrationName; - -public class SyncResetAuthorizationCodeRegistrationname { - - public static void main(String[] args) throws Exception { - syncResetAuthorizationCodeRegistrationname(); - } - - public static void syncResetAuthorizationCodeRegistrationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - AuthorizationCode response = domainsClient.resetAuthorizationCode(registration); - } - } -} -// [END domains_v1beta1_generated_domainsclient_resetauthorizationcode_registrationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeString.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeString.java deleted file mode 100644 index 57a5309c..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/resetauthorizationcode/SyncResetAuthorizationCodeString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_resetauthorizationcode_string_sync] -import com.google.cloud.domains.v1beta1.AuthorizationCode; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.RegistrationName; - -public class SyncResetAuthorizationCodeString { - - public static void main(String[] args) throws Exception { - syncResetAuthorizationCodeString(); - } - - public static void syncResetAuthorizationCodeString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - AuthorizationCode response = domainsClient.resetAuthorizationCode(registration); - } - } -} -// [END domains_v1beta1_generated_domainsclient_resetauthorizationcode_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveauthorizationcode/AsyncRetrieveAuthorizationCode.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveauthorizationcode/AsyncRetrieveAuthorizationCode.java deleted file mode 100644 index d20f50f5..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveauthorizationcode/AsyncRetrieveAuthorizationCode.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_retrieveauthorizationcode_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1beta1.AuthorizationCode; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest; - -public class AsyncRetrieveAuthorizationCode { - - public static void main(String[] args) throws Exception { - asyncRetrieveAuthorizationCode(); - } - - public static void asyncRetrieveAuthorizationCode() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveAuthorizationCodeRequest request = - RetrieveAuthorizationCodeRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - ApiFuture future = - domainsClient.retrieveAuthorizationCodeCallable().futureCall(request); - // Do something. - AuthorizationCode response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_retrieveauthorizationcode_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCode.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCode.java deleted file mode 100644 index 2f43f530..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCode.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_retrieveauthorizationcode_sync] -import com.google.cloud.domains.v1beta1.AuthorizationCode; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.RegistrationName; -import com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest; - -public class SyncRetrieveAuthorizationCode { - - public static void main(String[] args) throws Exception { - syncRetrieveAuthorizationCode(); - } - - public static void syncRetrieveAuthorizationCode() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveAuthorizationCodeRequest request = - RetrieveAuthorizationCodeRequest.newBuilder() - .setRegistration( - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString()) - .build(); - AuthorizationCode response = domainsClient.retrieveAuthorizationCode(request); - } - } -} -// [END domains_v1beta1_generated_domainsclient_retrieveauthorizationcode_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeRegistrationname.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeRegistrationname.java deleted file mode 100644 index eef24ed0..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeRegistrationname.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_retrieveauthorizationcode_registrationname_sync] -import com.google.cloud.domains.v1beta1.AuthorizationCode; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.RegistrationName; - -public class SyncRetrieveAuthorizationCodeRegistrationname { - - public static void main(String[] args) throws Exception { - syncRetrieveAuthorizationCodeRegistrationname(); - } - - public static void syncRetrieveAuthorizationCodeRegistrationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RegistrationName registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); - AuthorizationCode response = domainsClient.retrieveAuthorizationCode(registration); - } - } -} -// [END domains_v1beta1_generated_domainsclient_retrieveauthorizationcode_registrationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeString.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeString.java deleted file mode 100644 index 8b478860..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveauthorizationcode/SyncRetrieveAuthorizationCodeString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_retrieveauthorizationcode_string_sync] -import com.google.cloud.domains.v1beta1.AuthorizationCode; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.RegistrationName; - -public class SyncRetrieveAuthorizationCodeString { - - public static void main(String[] args) throws Exception { - syncRetrieveAuthorizationCodeString(); - } - - public static void syncRetrieveAuthorizationCodeString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String registration = - RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); - AuthorizationCode response = domainsClient.retrieveAuthorizationCode(registration); - } - } -} -// [END domains_v1beta1_generated_domainsclient_retrieveauthorizationcode_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveregisterparameters/AsyncRetrieveRegisterParameters.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveregisterparameters/AsyncRetrieveRegisterParameters.java deleted file mode 100644 index 7c3d0524..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveregisterparameters/AsyncRetrieveRegisterParameters.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_retrieveregisterparameters_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse; - -public class AsyncRetrieveRegisterParameters { - - public static void main(String[] args) throws Exception { - asyncRetrieveRegisterParameters(); - } - - public static void asyncRetrieveRegisterParameters() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveRegisterParametersRequest request = - RetrieveRegisterParametersRequest.newBuilder() - .setDomainName("domainName-1244085905") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - ApiFuture future = - domainsClient.retrieveRegisterParametersCallable().futureCall(request); - // Do something. - RetrieveRegisterParametersResponse response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_retrieveregisterparameters_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParameters.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParameters.java deleted file mode 100644 index 2242c08b..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParameters.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_retrieveregisterparameters_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest; -import com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse; - -public class SyncRetrieveRegisterParameters { - - public static void main(String[] args) throws Exception { - syncRetrieveRegisterParameters(); - } - - public static void syncRetrieveRegisterParameters() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveRegisterParametersRequest request = - RetrieveRegisterParametersRequest.newBuilder() - .setDomainName("domainName-1244085905") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - RetrieveRegisterParametersResponse response = - domainsClient.retrieveRegisterParameters(request); - } - } -} -// [END domains_v1beta1_generated_domainsclient_retrieveregisterparameters_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersLocationnameString.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersLocationnameString.java deleted file mode 100644 index 7e143cf0..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersLocationnameString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_retrieveregisterparameters_locationnamestring_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse; - -public class SyncRetrieveRegisterParametersLocationnameString { - - public static void main(String[] args) throws Exception { - syncRetrieveRegisterParametersLocationnameString(); - } - - public static void syncRetrieveRegisterParametersLocationnameString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - RetrieveRegisterParametersResponse response = - domainsClient.retrieveRegisterParameters(location, domainName); - } - } -} -// [END domains_v1beta1_generated_domainsclient_retrieveregisterparameters_locationnamestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersStringString.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersStringString.java deleted file mode 100644 index 5df582d8..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrieveregisterparameters/SyncRetrieveRegisterParametersStringString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_retrieveregisterparameters_stringstring_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse; - -public class SyncRetrieveRegisterParametersStringString { - - public static void main(String[] args) throws Exception { - syncRetrieveRegisterParametersStringString(); - } - - public static void syncRetrieveRegisterParametersStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - String domainName = "domainName-1244085905"; - RetrieveRegisterParametersResponse response = - domainsClient.retrieveRegisterParameters(location, domainName); - } - } -} -// [END domains_v1beta1_generated_domainsclient_retrieveregisterparameters_stringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrievetransferparameters/AsyncRetrieveTransferParameters.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrievetransferparameters/AsyncRetrieveTransferParameters.java deleted file mode 100644 index fce6f009..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrievetransferparameters/AsyncRetrieveTransferParameters.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_retrievetransferparameters_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse; - -public class AsyncRetrieveTransferParameters { - - public static void main(String[] args) throws Exception { - asyncRetrieveTransferParameters(); - } - - public static void asyncRetrieveTransferParameters() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveTransferParametersRequest request = - RetrieveTransferParametersRequest.newBuilder() - .setDomainName("domainName-1244085905") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - ApiFuture future = - domainsClient.retrieveTransferParametersCallable().futureCall(request); - // Do something. - RetrieveTransferParametersResponse response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_retrievetransferparameters_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParameters.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParameters.java deleted file mode 100644 index 60a6cf70..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParameters.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_retrievetransferparameters_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest; -import com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse; - -public class SyncRetrieveTransferParameters { - - public static void main(String[] args) throws Exception { - syncRetrieveTransferParameters(); - } - - public static void syncRetrieveTransferParameters() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - RetrieveTransferParametersRequest request = - RetrieveTransferParametersRequest.newBuilder() - .setDomainName("domainName-1244085905") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - RetrieveTransferParametersResponse response = - domainsClient.retrieveTransferParameters(request); - } - } -} -// [END domains_v1beta1_generated_domainsclient_retrievetransferparameters_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersLocationnameString.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersLocationnameString.java deleted file mode 100644 index ecb7132e..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersLocationnameString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_retrievetransferparameters_locationnamestring_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse; - -public class SyncRetrieveTransferParametersLocationnameString { - - public static void main(String[] args) throws Exception { - syncRetrieveTransferParametersLocationnameString(); - } - - public static void syncRetrieveTransferParametersLocationnameString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String domainName = "domainName-1244085905"; - RetrieveTransferParametersResponse response = - domainsClient.retrieveTransferParameters(location, domainName); - } - } -} -// [END domains_v1beta1_generated_domainsclient_retrievetransferparameters_locationnamestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersStringString.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersStringString.java deleted file mode 100644 index 54a177bb..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/retrievetransferparameters/SyncRetrieveTransferParametersStringString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_retrievetransferparameters_stringstring_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse; - -public class SyncRetrieveTransferParametersStringString { - - public static void main(String[] args) throws Exception { - syncRetrieveTransferParametersStringString(); - } - - public static void syncRetrieveTransferParametersStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - String domainName = "domainName-1244085905"; - RetrieveTransferParametersResponse response = - domainsClient.retrieveTransferParameters(location, domainName); - } - } -} -// [END domains_v1beta1_generated_domainsclient_retrievetransferparameters_stringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/searchdomains/AsyncSearchDomains.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/searchdomains/AsyncSearchDomains.java deleted file mode 100644 index 0dc97e35..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/searchdomains/AsyncSearchDomains.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_searchdomains_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.SearchDomainsRequest; -import com.google.cloud.domains.v1beta1.SearchDomainsResponse; - -public class AsyncSearchDomains { - - public static void main(String[] args) throws Exception { - asyncSearchDomains(); - } - - public static void asyncSearchDomains() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - SearchDomainsRequest request = - SearchDomainsRequest.newBuilder() - .setQuery("query107944136") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - ApiFuture future = - domainsClient.searchDomainsCallable().futureCall(request); - // Do something. - SearchDomainsResponse response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_searchdomains_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/searchdomains/SyncSearchDomains.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/searchdomains/SyncSearchDomains.java deleted file mode 100644 index 722f4b70..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/searchdomains/SyncSearchDomains.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_searchdomains_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.SearchDomainsRequest; -import com.google.cloud.domains.v1beta1.SearchDomainsResponse; - -public class SyncSearchDomains { - - public static void main(String[] args) throws Exception { - syncSearchDomains(); - } - - public static void syncSearchDomains() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - SearchDomainsRequest request = - SearchDomainsRequest.newBuilder() - .setQuery("query107944136") - .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - SearchDomainsResponse response = domainsClient.searchDomains(request); - } - } -} -// [END domains_v1beta1_generated_domainsclient_searchdomains_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/searchdomains/SyncSearchDomainsLocationnameString.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/searchdomains/SyncSearchDomainsLocationnameString.java deleted file mode 100644 index 081ef115..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/searchdomains/SyncSearchDomainsLocationnameString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_searchdomains_locationnamestring_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.SearchDomainsResponse; - -public class SyncSearchDomainsLocationnameString { - - public static void main(String[] args) throws Exception { - syncSearchDomainsLocationnameString(); - } - - public static void syncSearchDomainsLocationnameString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - String query = "query107944136"; - SearchDomainsResponse response = domainsClient.searchDomains(location, query); - } - } -} -// [END domains_v1beta1_generated_domainsclient_searchdomains_locationnamestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/searchdomains/SyncSearchDomainsStringString.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/searchdomains/SyncSearchDomainsStringString.java deleted file mode 100644 index f9894c2c..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/searchdomains/SyncSearchDomainsStringString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_searchdomains_stringstring_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.SearchDomainsResponse; - -public class SyncSearchDomainsStringString { - - public static void main(String[] args) throws Exception { - syncSearchDomainsStringString(); - } - - public static void syncSearchDomainsStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - String query = "query107944136"; - SearchDomainsResponse response = domainsClient.searchDomains(location, query); - } - } -} -// [END domains_v1beta1_generated_domainsclient_searchdomains_stringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/transferdomain/AsyncTransferDomain.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/transferdomain/AsyncTransferDomain.java deleted file mode 100644 index fa2da566..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/transferdomain/AsyncTransferDomain.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_transferdomain_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1beta1.AuthorizationCode; -import com.google.cloud.domains.v1beta1.ContactNotice; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.TransferDomainRequest; -import com.google.longrunning.Operation; -import com.google.type.Money; -import java.util.ArrayList; - -public class AsyncTransferDomain { - - public static void main(String[] args) throws Exception { - asyncTransferDomain(); - } - - public static void asyncTransferDomain() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - TransferDomainRequest request = - TransferDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setAuthorizationCode(AuthorizationCode.newBuilder().build()) - .setValidateOnly(true) - .build(); - ApiFuture future = domainsClient.transferDomainCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_transferdomain_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/transferdomain/AsyncTransferDomainLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/transferdomain/AsyncTransferDomainLRO.java deleted file mode 100644 index 28c60f9a..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/transferdomain/AsyncTransferDomainLRO.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_transferdomain_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1beta1.AuthorizationCode; -import com.google.cloud.domains.v1beta1.ContactNotice; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.OperationMetadata; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.TransferDomainRequest; -import com.google.type.Money; -import java.util.ArrayList; - -public class AsyncTransferDomainLRO { - - public static void main(String[] args) throws Exception { - asyncTransferDomainLRO(); - } - - public static void asyncTransferDomainLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - TransferDomainRequest request = - TransferDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setAuthorizationCode(AuthorizationCode.newBuilder().build()) - .setValidateOnly(true) - .build(); - OperationFuture future = - domainsClient.transferDomainOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_transferdomain_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/transferdomain/SyncTransferDomain.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/transferdomain/SyncTransferDomain.java deleted file mode 100644 index 95b4de2c..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/transferdomain/SyncTransferDomain.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_transferdomain_sync] -import com.google.cloud.domains.v1beta1.AuthorizationCode; -import com.google.cloud.domains.v1beta1.ContactNotice; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.TransferDomainRequest; -import com.google.type.Money; -import java.util.ArrayList; - -public class SyncTransferDomain { - - public static void main(String[] args) throws Exception { - syncTransferDomain(); - } - - public static void syncTransferDomain() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - TransferDomainRequest request = - TransferDomainRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setRegistration(Registration.newBuilder().build()) - .addAllContactNotices(new ArrayList()) - .setYearlyPrice(Money.newBuilder().build()) - .setAuthorizationCode(AuthorizationCode.newBuilder().build()) - .setValidateOnly(true) - .build(); - Registration response = domainsClient.transferDomainAsync(request).get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_transferdomain_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/transferdomain/SyncTransferDomainLocationnameRegistrationMoneyAuthorizationcode.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/transferdomain/SyncTransferDomainLocationnameRegistrationMoneyAuthorizationcode.java deleted file mode 100644 index 74edffb3..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/transferdomain/SyncTransferDomainLocationnameRegistrationMoneyAuthorizationcode.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_transferdomain_locationnameregistrationmoneyauthorizationcode_sync] -import com.google.cloud.domains.v1beta1.AuthorizationCode; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.type.Money; - -public class SyncTransferDomainLocationnameRegistrationMoneyAuthorizationcode { - - public static void main(String[] args) throws Exception { - syncTransferDomainLocationnameRegistrationMoneyAuthorizationcode(); - } - - public static void syncTransferDomainLocationnameRegistrationMoneyAuthorizationcode() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - Registration response = - domainsClient - .transferDomainAsync(parent, registration, yearlyPrice, authorizationCode) - .get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_transferdomain_locationnameregistrationmoneyauthorizationcode_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/transferdomain/SyncTransferDomainStringRegistrationMoneyAuthorizationcode.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/transferdomain/SyncTransferDomainStringRegistrationMoneyAuthorizationcode.java deleted file mode 100644 index e1ecbe66..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/transferdomain/SyncTransferDomainStringRegistrationMoneyAuthorizationcode.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_transferdomain_stringregistrationmoneyauthorizationcode_sync] -import com.google.cloud.domains.v1beta1.AuthorizationCode; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.LocationName; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.type.Money; - -public class SyncTransferDomainStringRegistrationMoneyAuthorizationcode { - - public static void main(String[] args) throws Exception { - syncTransferDomainStringRegistrationMoneyAuthorizationcode(); - } - - public static void syncTransferDomainStringRegistrationMoneyAuthorizationcode() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - Registration registration = Registration.newBuilder().build(); - Money yearlyPrice = Money.newBuilder().build(); - AuthorizationCode authorizationCode = AuthorizationCode.newBuilder().build(); - Registration response = - domainsClient - .transferDomainAsync(parent, registration, yearlyPrice, authorizationCode) - .get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_transferdomain_stringregistrationmoneyauthorizationcode_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/updateregistration/AsyncUpdateRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/updateregistration/AsyncUpdateRegistration.java deleted file mode 100644 index 10e69dae..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/updateregistration/AsyncUpdateRegistration.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_updateregistration_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.UpdateRegistrationRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateRegistration { - - public static void main(String[] args) throws Exception { - asyncUpdateRegistration(); - } - - public static void asyncUpdateRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - UpdateRegistrationRequest request = - UpdateRegistrationRequest.newBuilder() - .setRegistration(Registration.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = domainsClient.updateRegistrationCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_updateregistration_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/updateregistration/AsyncUpdateRegistrationLRO.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/updateregistration/AsyncUpdateRegistrationLRO.java deleted file mode 100644 index d9c080dd..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/updateregistration/AsyncUpdateRegistrationLRO.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_updateregistration_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.OperationMetadata; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.UpdateRegistrationRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateRegistrationLRO { - - public static void main(String[] args) throws Exception { - asyncUpdateRegistrationLRO(); - } - - public static void asyncUpdateRegistrationLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - UpdateRegistrationRequest request = - UpdateRegistrationRequest.newBuilder() - .setRegistration(Registration.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - OperationFuture future = - domainsClient.updateRegistrationOperationCallable().futureCall(request); - // Do something. - Registration response = future.get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_updateregistration_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/updateregistration/SyncUpdateRegistration.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/updateregistration/SyncUpdateRegistration.java deleted file mode 100644 index 36ca91b5..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/updateregistration/SyncUpdateRegistration.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_updateregistration_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.cloud.domains.v1beta1.UpdateRegistrationRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateRegistration { - - public static void main(String[] args) throws Exception { - syncUpdateRegistration(); - } - - public static void syncUpdateRegistration() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - UpdateRegistrationRequest request = - UpdateRegistrationRequest.newBuilder() - .setRegistration(Registration.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Registration response = domainsClient.updateRegistrationAsync(request).get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_updateregistration_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/updateregistration/SyncUpdateRegistrationRegistrationFieldmask.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/updateregistration/SyncUpdateRegistrationRegistrationFieldmask.java deleted file mode 100644 index 448347f3..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainsclient/updateregistration/SyncUpdateRegistrationRegistrationFieldmask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainsclient_updateregistration_registrationfieldmask_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.Registration; -import com.google.protobuf.FieldMask; - -public class SyncUpdateRegistrationRegistrationFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateRegistrationRegistrationFieldmask(); - } - - public static void syncUpdateRegistrationRegistrationFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DomainsClient domainsClient = DomainsClient.create()) { - Registration registration = Registration.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Registration response = domainsClient.updateRegistrationAsync(registration, updateMask).get(); - } - } -} -// [END domains_v1beta1_generated_domainsclient_updateregistration_registrationfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainssettings/searchdomains/SyncSearchDomains.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainssettings/searchdomains/SyncSearchDomains.java deleted file mode 100644 index edbce5e3..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/domainssettings/searchdomains/SyncSearchDomains.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_domainssettings_searchdomains_sync] -import com.google.cloud.domains.v1beta1.DomainsSettings; -import java.time.Duration; - -public class SyncSearchDomains { - - public static void main(String[] args) throws Exception { - syncSearchDomains(); - } - - public static void syncSearchDomains() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsSettings.Builder domainsSettingsBuilder = DomainsSettings.newBuilder(); - domainsSettingsBuilder - .searchDomainsSettings() - .setRetrySettings( - domainsSettingsBuilder.searchDomainsSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - DomainsSettings domainsSettings = domainsSettingsBuilder.build(); - } -} -// [END domains_v1beta1_generated_domainssettings_searchdomains_sync] diff --git a/samples/snippets/generated/com/google/cloud/domains/v1beta1/stub/domainsstubsettings/searchdomains/SyncSearchDomains.java b/samples/snippets/generated/com/google/cloud/domains/v1beta1/stub/domainsstubsettings/searchdomains/SyncSearchDomains.java deleted file mode 100644 index ca00d7cf..00000000 --- a/samples/snippets/generated/com/google/cloud/domains/v1beta1/stub/domainsstubsettings/searchdomains/SyncSearchDomains.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.stub.samples; - -// [START domains_v1beta1_generated_domainsstubsettings_searchdomains_sync] -import com.google.cloud.domains.v1beta1.stub.DomainsStubSettings; -import java.time.Duration; - -public class SyncSearchDomains { - - public static void main(String[] args) throws Exception { - syncSearchDomains(); - } - - public static void syncSearchDomains() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsStubSettings.Builder domainsSettingsBuilder = DomainsStubSettings.newBuilder(); - domainsSettingsBuilder - .searchDomainsSettings() - .setRetrySettings( - domainsSettingsBuilder.searchDomainsSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - DomainsStubSettings domainsSettings = domainsSettingsBuilder.build(); - } -} -// [END domains_v1beta1_generated_domainsstubsettings_searchdomains_sync] diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml deleted file mode 100644 index 2e6adbd7..00000000 --- a/samples/snippets/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - 4.0.0 - com.google.cloud - domains-snippets - jar - Google Cloud Domains Snippets - https://github.com/googleapis/java-domains - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - com.google.cloud - google-cloud-domains - 1.0.6 - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - diff --git a/synth.metadata b/synth.metadata deleted file mode 100644 index 46bc936a..00000000 --- a/synth.metadata +++ /dev/null @@ -1,168 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/java-domains.git", - "sha": "262f1c0f96abf5c2c6b3ccee1dd55999820b5690" - } - }, - { - "git": { - "name": "googleapis-gen", - "remote": "https://github.com/googleapis/googleapis-gen.git", - "sha": "9a27cb4181a8823727458705f4343f0dccdb40d6", - "internalRef": "378718217" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8eae0234a16b26c2ff616d305dbd9786c8b10a47" - } - } - ], - "generatedFiles": [ - ".github/CODEOWNERS", - ".github/ISSUE_TEMPLATE/bug_report.md", - ".github/ISSUE_TEMPLATE/feature_request.md", - ".github/ISSUE_TEMPLATE/support_request.md", - ".github/PULL_REQUEST_TEMPLATE.md", - ".github/blunderbuss.yml", - ".github/generated-files-bot.yml", - ".github/readme/synth.py", - ".github/release-please.yml", - ".github/snippet-bot.yml", - ".github/sync-repo-settings.yaml", - ".github/trusted-contribution.yml", - ".github/workflows/approve-readme.yaml", - ".github/workflows/auto-release.yaml", - ".github/workflows/ci.yaml", - ".github/workflows/samples.yaml", - ".kokoro/build.bat", - ".kokoro/build.sh", - ".kokoro/coerce_logs.sh", - ".kokoro/common.cfg", - ".kokoro/common.sh", - ".kokoro/continuous/common.cfg", - ".kokoro/continuous/java8.cfg", - ".kokoro/continuous/readme.cfg", - ".kokoro/dependencies.sh", - ".kokoro/nightly/common.cfg", - ".kokoro/nightly/integration.cfg", - ".kokoro/nightly/java11.cfg", - ".kokoro/nightly/java7.cfg", - ".kokoro/nightly/java8-osx.cfg", - ".kokoro/nightly/java8-win.cfg", - ".kokoro/nightly/java8.cfg", - ".kokoro/nightly/samples.cfg", - ".kokoro/populate-secrets.sh", - ".kokoro/presubmit/clirr.cfg", - ".kokoro/presubmit/common.cfg", - ".kokoro/presubmit/dependencies.cfg", - ".kokoro/presubmit/integration.cfg", - ".kokoro/presubmit/java11.cfg", - ".kokoro/presubmit/java7.cfg", - ".kokoro/presubmit/java8-osx.cfg", - ".kokoro/presubmit/java8-win.cfg", - ".kokoro/presubmit/java8.cfg", - ".kokoro/presubmit/linkage-monitor.cfg", - ".kokoro/presubmit/lint.cfg", - ".kokoro/presubmit/samples.cfg", - ".kokoro/readme.sh", - ".kokoro/release/bump_snapshot.cfg", - ".kokoro/release/common.cfg", - ".kokoro/release/common.sh", - ".kokoro/release/drop.cfg", - ".kokoro/release/drop.sh", - ".kokoro/release/promote.cfg", - ".kokoro/release/promote.sh", - ".kokoro/release/publish_javadoc.cfg", - ".kokoro/release/publish_javadoc.sh", - ".kokoro/release/publish_javadoc11.cfg", - ".kokoro/release/publish_javadoc11.sh", - ".kokoro/release/snapshot.cfg", - ".kokoro/release/snapshot.sh", - ".kokoro/release/stage.cfg", - ".kokoro/release/stage.sh", - ".kokoro/trampoline.sh", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "codecov.yaml", - "google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java", - "google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsSettings.java", - "google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/gapic_metadata.json", - "google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/package-info.java", - "google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStub.java", - "google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStubSettings.java", - "google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/GrpcDomainsCallableFactory.java", - "google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/GrpcDomainsStub.java", - "google-cloud-domains/src/test/java/com/google/cloud/domains/v1beta1/DomainsClientTest.java", - "google-cloud-domains/src/test/java/com/google/cloud/domains/v1beta1/MockDomains.java", - "google-cloud-domains/src/test/java/com/google/cloud/domains/v1beta1/MockDomainsImpl.java", - "grpc-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DomainsGrpc.java", - "java.header", - "license-checks.xml", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/AuthorizationCode.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/AuthorizationCodeOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureContactSettingsRequest.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureContactSettingsRequestOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureDnsSettingsRequest.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureDnsSettingsRequestOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureManagementSettingsRequest.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ConfigureManagementSettingsRequestOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ContactNotice.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ContactPrivacy.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ContactSettings.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ContactSettingsOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DeleteRegistrationRequest.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DeleteRegistrationRequestOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DnsSettings.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DnsSettingsOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DomainNotice.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DomainsProto.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ExportRegistrationRequest.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ExportRegistrationRequestOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/GetRegistrationRequest.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/GetRegistrationRequestOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ListRegistrationsRequest.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ListRegistrationsRequestOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ListRegistrationsResponse.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ListRegistrationsResponseOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/LocationName.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ManagementSettings.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ManagementSettingsOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/OperationMetadata.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/OperationMetadataOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegisterDomainRequest.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegisterDomainRequestOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegisterParameters.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegisterParametersOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/Registration.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegistrationName.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegistrationOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ResetAuthorizationCodeRequest.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/ResetAuthorizationCodeRequestOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveAuthorizationCodeRequest.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveAuthorizationCodeRequestOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersRequest.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersRequestOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersResponse.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersResponseOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/SearchDomainsRequest.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/SearchDomainsRequestOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/SearchDomainsResponse.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/SearchDomainsResponseOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/TransferLockState.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/UpdateRegistrationRequest.java", - "proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/UpdateRegistrationRequestOrBuilder.java", - "proto-google-cloud-domains-v1beta1/src/main/proto/google/cloud/domains/v1beta1/domains.proto", - "renovate.json", - "samples/install-without-bom/pom.xml", - "samples/pom.xml", - "samples/snapshot/pom.xml", - "samples/snippets/pom.xml" - ] -} \ No newline at end of file diff --git a/versions.txt b/versions.txt deleted file mode 100644 index f10ea574..00000000 --- a/versions.txt +++ /dev/null @@ -1,10 +0,0 @@ -# Format: -# module:released-version:current-version - -google-cloud-domains:1.0.6:1.0.7-SNAPSHOT -grpc-google-cloud-domains-v1beta1:0.8.6:0.8.7-SNAPSHOT -grpc-google-cloud-domains-v1alpha2:0.8.6:0.8.7-SNAPSHOT -grpc-google-cloud-domains-v1:1.0.6:1.0.7-SNAPSHOT -proto-google-cloud-domains-v1beta1:0.8.6:0.8.7-SNAPSHOT -proto-google-cloud-domains-v1alpha2:0.8.6:0.8.7-SNAPSHOT -proto-google-cloud-domains-v1:1.0.6:1.0.7-SNAPSHOT